Problem enabling Gzip

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-19-2007, 01:36 PM
ozo ozo is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 50
By default in my .htaccess file the definition for Gzip is as follows:
##### Gzip Begin #####
## To enable Gzip and decrease the load times of your Pligg site
## change /home/path/to to your absolute server path and remove the two # from both lines
##php_value auto_prepend_file /home/path/to/begin_gzip.php
##php_value auto_append_file /home/path/to/end_gzip.php

I change these too lines by removing comments:
php_value auto_prepend_file /home/meshedli/to/begin_gzip.php
php_value auto_append_file /home/meshedli/to/end_gzip.php

and I get INTERNAL SERVER ERROR. A 500 Internal Server Error. Can anyone please tell me what I am doing wrong. When I recomment those two lines the error goes, but I need gzip working.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 05-19-2007, 01:59 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
/home/meshedli/to/begin_gzip.php

I doubt that is the path to the file - you need to get rid of the to/ in the path, and then make sure you have the full path to the file there.
Reply With Quote
  #3 (permalink)  
Old 05-19-2007, 02:58 PM
ozo ozo is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 50
Thanks for that tip.

i tried changing the abolute path but was still unsuccessful.php_value

auto_prepend_file /home/meshedli/public_html/begin_gzip.php
php_value auto_append_file /public_html/meshedli/to/end_gzip.php

I believe i am getting something wrong in my path. Could anyone show me a sample abolute path to the .php files. My begin_zip.php and end_gzip.php are in my public_html folder and my absolute server path is /home/meshedli

thank you.
Reply With Quote
  #4 (permalink)  
Old 05-19-2007, 03:00 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
I'd have thought they should be:

php_value auto_prepend_file /home/meshedli/public_html/begin_gzip.php
php_value auto_append_file /home/meshedli/public_html/end_gzip.php
Reply With Quote
  #5 (permalink)  
Old 05-19-2007, 03:09 PM
ozo ozo is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 50
Simon thanks for the response. I tired this

php_value auto_prepend_file /home/meshedli/public_html/begin_gzip.php
php_value auto_append_file /home/meshedli/public_html/end_gzip.php

and I still get the Internal Server Error. I have gotten a confirmation from my host that gzip is supported. I am still daunted. Any help will be well appreciated.
Reply With Quote
  #6 (permalink)  
Old 05-19-2007, 04:03 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Why don't you just ask your host what your absolute server path is?
Reply With Quote
  #7 (permalink)  
Old 05-19-2007, 04:50 PM
ozo ozo is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 50
I have contacted my host they said my absolute path is /home/meshedli/

Although I did discover this error in my logs:

/home/meshedli/public_html/.htaccess: Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration

I believe this is the source of the problem, but I dont fully understand what I have to do to correct it.

Any help would be really appreciated.

Thanks, Ozo
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gzip Technique That Boosted my load times Adaman Questions and Comments 21 02-28-2008 07:31 AM
gzip for n00bs tones Questions and Comments 0 08-09-2007 07:53 AM
issue/idea? enabling GZip kills PrivateMessages in Safari daveyc Questions and Comments 4 03-25-2007 01:27 AM
[Fixed] problem adding gzip code in htaccess zearth Questions and Comments 15 02-12-2007 09:27 AM
Problem form doesn't work! nabil Questions and Comments 1 04-01-2006 09:53 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development