LinuxTechie

Well-Known Member
Jan 22, 2011
502
14
68
cPanel Access Level
Root Administrator
Hello,

To compress a file named myfile.txt to myfile.txt.gz and automatically delete the original uncompressed version, simply type

$ gzip myfile.txt

To convert it back to the original file, just type

$ gunzip myfile.txt.gz

Have a try!
 

horson

Member
Feb 14, 2011
8
0
51
tks, but i want to know How to open gzip set in httpd.conf which can make my website more quick
 

LinuxTechie

Well-Known Member
Jan 22, 2011
502
14
68
cPanel Access Level
Root Administrator
Hello,

Are you talking about the module mod_gzip. Please try executing the commands httpd -M | grep mod_gzip and httpd -l | grep mod_gzip to find whether the module is enabled in the server. If it is not enabled it can be done compiling apache using easyapache.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
tks, but i want to know How to open gzip set in httpd.conf which can make my website more quick
You are still giving relatively scant details, but from your description, I think you may be looking for mod_deflate. mod_deflate uses gzip to compress data transferred between httpd and the Web browser. mod_deflate is an option that is available in EasyApache, and it is listed in Step #6, Exhaustive Options List. It is labeled simply Deflate.
 

horson

Member
Feb 14, 2011
8
0
51
thank you. i want to know if rebuilding easy apache:"recompile Apache and php now" will impact local website running ?
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
Apache and PHP will stay in operation while EasyApache builds the new Apache and PHP. If there is any problem with the newly built Apache and PHP, EasyApache will copy the old, working versions back into place and restart Apache without your intervention. Your server will only start using the new Apache and PHP when EasyApache has successfully built them and been able to start them without encountering errors.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator