I'm having some config issues with a new web host. Web Host version info at the end of the post...
I have settings in my .htaccess to turn on compression in php, I then setup a handler to compress standard .txt .htm .html files.
# turn on PHP compression
php_flag zlib.output_compression on
php_value zlib.output_compression_level 1
php_value zlib.output_handler ob_gzhandler
# turn on compress for text based files
AddHandler compress .html
AddHandler compress .htm
AddHandler compress .txt
Action compress /compress/compress.php
Firstly, the php_flag generates an error in the error log, and tries to show a 500 page.
[Mon Jun 27 14:54:48 2005] [alert] [client 62.49.188.139] /home/icemark/public_html/.htaccess: Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration
Reading up on this suggests that my host does not have AllowOverride option set to allow me to do this, but they have told me that it is set to 'ALL'.
Secondly, if I remove the php_value commands, then the .htaccess works. THe handlers get set up, at least I can see them in CPanel as if I'd added them there, however, the Action command appears not to work.
My webhost does not appear to know what the problem is and have suggested that it is something to do with CPanel or PHP - any help on this would be massively appreciated.
One interesting aside; the CPanel does not show the same PHP version that php_info() does. Cpanel shows 4.3.11 but php_info show 5.04 which is the version that my host tells me is installed.
**** Version Info *****
Apache version 1.3.33 (Unix)
MySQL version 4.1.11-standard
PHP version 5.04
PERL version 5.8.4
Kernel version 2.4.21-32.0.1.ELsmp
cPanel version 10.2.0-RELEASE-82
cPanel Pro Version 1.0 (RC2)
php info:
Configure Command './configure' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-mcrypt' '--enable-magic-quotes' '--with-mysql' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-xmlrpc' '--with-zlib'
Server API CGI
Virtual Directory Support disabled
PHP API 20031224
PHP Extension 20041030
Zend Extension 220040412
Debug Build no
Thread Safety disabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp, unix



LinkBack URL
About LinkBacks
Reply With Quote




