473,606 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Q: Uncompressing ~400K files on Apache Server

How to Q: Uncompressing ~400K files on Apache Server

Hello All,

I have ~400K html files on my local XP machine and I’d like to
compress the files, upload them onto my host (apache - pair.com) and
uncompress them there.

I’ve done this with less files (~10K) before – using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.

Any suggestions on what options I have?

Thanks,

SS
Sep 4 '08 #1
5 2378
..oO(se******** *@gmail.com)
>How to Q: Uncompressing ~400K files on Apache Server

Hello All,

I have ~400K html files on my local XP machine and I’d like to
compress the files, upload them onto my host (apache - pair.com) and
uncompress them there.

I’ve done this with less files (~10K) before – using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.

Any suggestions on what options I have?
Split the files (10x40K or so) or try another packer like 7zip.

Micha
Sep 4 '08 #2
On Sep 4, 4:13*pm, senadsli...@gma il.com wrote:
How to Q: Uncompressing ~400K files on Apache Server

Hello All,

I have ~400K html files on my local XP machine and I’d like to
compress the files, upload them onto my host (apache - pair.com) and
uncompress them there.

I’ve done this with less files (~10K) before – using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.

Any suggestions on what options I have?
Your options will depend on what your host allows. I am on Unix/Linux/
Apache. My host provides easy to use compression for zip, gzip, and
bzip2. It also provides decompression for these and some other
compressed files you wish to upload. Gzip is a favorite on Apache
servers. The program 7-zip as suggested to you will allow use of these
formats and more on your computer. It is free and can be downloaded at
http://www.7-zip.org/ .

Some of the better ftp agents also may help. I use CuteFTP7 Pro. For
instance you may have a folder that contains a huge number of files,
and you are tempted to zip it to avoid having to upload many files.
When this does not work for whatever reason, you can open the folder
you want to upload and highlight blocks of files that are not too
excessive. Then you just select where on the server you want to upload
the files on another pane of the FTP agent. You hit the upload button
and you may leave and do something else. The FTP agent automatically
uploads all of the files you have highlighted and uploads two files at
once when the server is not too busy and allows multiple connections.
The FTP agent reconnects when the connection is broken, and it takes a
fairly bad problem for it to give up uploading. If it does have a
problem, you at least have some of the files you highlighted uploaded
and do not have to start all over.

Also worth noting is your isp. Even for the fastest DSL and cable
connections, upload usually is much slower than download. Some isps
have a time limit at which the disconnect from you server. If you have
a huge file, it might not be able to upload within this time limit no
matter if the file is zipped or not.
Sep 5 '08 #3
se*********@gma il.com wrote:
How to Q: Uncompressing ~400K files on Apache Server

Hello All,

I have ~400K html files on my local XP machine and I’d like to
compress the files, upload them onto my host (apache - pair.com) and
uncompress them there.

I’ve done this with less files (~10K) before – using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.

Any suggestions on what options I have?

Thanks,

SS
This issue doesn't seem to have anything to do with PHP, but there are
other compression algorithms available besides ZIP, such as gzip or
bzip2 (both available on *nix).

--
Curtis
Sep 5 '08 #4
On 4 Sep, 22:13, senadsli...@gma il.com wrote:
How to Q: Uncompressing ~400K files on Apache Server

Hello All,

I have ~400K html files on my local XP machine and I’d like to
compress the files, upload them onto my host (apache - pair.com) and
uncompress them there.

I’ve done this with less files (~10K) before – using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.

Any suggestions on what options I have?

Thanks,

SS
Why? ssh will compress on the fly.

C.
Sep 5 '08 #5
Hi,

C. (http://symcbean.blogspot.com/) wrote:
I’ve done this with less files (~10K) before – using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.
[...]
Why? ssh will compress on the fly.
not by default, though.

Otherwise, I agree. Just use WinSCP (or similar), configure it to use
compression.

-hwh
Sep 5 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2883
by: Titus Cheung | last post by:
Hello, Just installed Apache and PHP. Edited the .conf file for the appropariate addtype lines, and Apache itself is working. However, when I type in the URL for the test script, the browser behaves as if it is going to download the file and ask if I want to open, or save it. Any ideas of why this is happening? Thanks
2
14159
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip Smarty-2.6.7.tar.gz on a system running WindowsXP SP2. Apache and PHP tested out fine. After adding Smarty, I ran the following http://localhost/testphp.php
2
2606
by: Harold Ensle | last post by:
Has anyone ever had this problem? I have been compiling servlet files, correcting them, recompiling them and seeing the changes on the next URL request. So everything was going smoothly. Suddenly I could no longer change the .class files. That is, they were changed but the URL was apparently calling a cached version which would not update. When Apache was restarted, it would then finally update. Needless to say this is very undesirable...
4
2789
by: MLH | last post by:
A programmer developed an AMP (Apache/MySQL/PHP) application for me. When he was done, he sent me the PHP files and the MySQL dump file. Now, when I connect to the application on my LAN using http://192.168.1.106/~mlh/credifree/index.php the AMP app still thinks the data resides somewhere else. It runs fine - as long as I leave my LAN's external internet connection up. But if I unplug my LAN from the world, my app locks up. Before I...
3
12249
by: Oliver | last post by:
Hello! I am really stuck... I have searched the whole internet to find a dll or a API which I can use in .NET C# to uncompress all the major archiv files but I really didnt find anything whith suites my needs. Do you know where to find such an api or dll? All it needs to do is ->uncompressing<- the major archiv files as well as reading out the ->header informations<- of an archiv file?
3
2051
by: Dean Richardson | last post by:
Hi, I'm having trouble uploading files via a PHP script. Whenever I upload a file greater than 10K, the file gets corrupted. However, text files upload OK. When I check the FTP Server log I find this:
3
4837
by: ManWithNoName | last post by:
Hi guys. I’m still occupied with school, however, I can’t quite help thinking about a part of my project that I’m very curious about. I want to protect files and folders on the web server, so that no one can access the files through the web server OS (using e.g. windows explorer to see, open and edit the html or php files). I want to clarify: I do not want to “hide” the html source file, or any other file that otherwise is accessible...
24
9846
by: Gary Hasler | last post by:
I want apache to parse all .html files for php code. Our 'real' web server is rented from ICDsoft ( php 5 on Apache on Linux whatever), and their instruction is to add the following to the .htaccess file: AddHandler application/x-httpd-php .html ....which works great. However, our local in-office server for testing and viewing our sites is Apache 2.0.55 with PHP 4.4.4 on Windows XP Pro. I have read everything I can find, and have...
6
7587
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not work. Please review my work and let me know if you see that one little thing that is throwing me for a loop. HTTPD.CONF # # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the...
0
8010
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7942
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8433
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8429
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8084
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8300
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6761
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5963
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3969
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.