Page 1 of 1

Lampp 1.8.0 internal server error 500 with php_value

PostPosted: 31. January 2013 01:30
by awk
Hey everyone! I'm quite new to the world of websites and web hosting. I'm fellow programmer learning C++, SQL and Python. However I had to setup a website for my needs but I occur at downloading my index.php file and an internal server error everytime I try to access my website hosted under OpenSuSE 12.2 using Lampp 1.8.0. My website required me to enable certain apache and php modules though ... However I'm stuck at this issue of mine from three days now, my last hope is getting a sensible assistance from the community of Xampp!

Apache modules enabled: mod_rewrite, mod_headers, mod_expires, mod_deflate

PHP modules enabled: php_curl, php_openssl, php_soap, php_gd

On the PHP modules I noticed xampp doesn't have php_gd but has phpgd2, so I enabled it following prime logic.

My error log says:
[Thu Jan 31 02:02:49.674549 2013] [core:alert] [pid 4111] [client 66.249.76.177:52586] /opt/lampp/htdocs/.htaccess:
Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration

The only line that uses php_value in my .htaccess file is: php_value zlib.output_compression off

Thanks everyone for participating in my issue in advance! I'm looking forward any suggestions how to fix it. :)

~ Awk

Re: Lampp 1.8.0 internal server error 500 with php_value

PostPosted: 01. February 2013 17:30
by JonB
OK -

After some research using the XAMPP phpinfo() page and PHP Docs
http://localhost/xampp/phpinfo.php

I think you can simply remove that line and things will be OK - because:

http://www.php.net/manual/en/zlib.confi ... sion-level

(which to me seems to indicate that is a php.ini only setting - and that may be the cause of your error)

NEVER-THE-LESS the value is defaulted 'off' anyway.

In the Zlib section of phpinfo():

Code: Select all
zlib.output_compression     Off   Off
zlib.output_compressionLevel   -1   -1
zlib.output_handler  no value no value


Try it out and let me know -
8)