I've set up a test site on my computer (it happens to use Win ME) with Apache2.0.36 and PHP 4.2.1 and MySQL. It all seems to works fine.

But I'm trying to set up a PHP-based online photoalbum system called Gallery (http://gallery.jacko.com/index.php). It is a Linux project, but works equally on Windows.

The trouble is, in the setup folder there's a .htaccess file, and when trying to run setup, Apache complains with an Error 500:

Error message:
C:/Apache2/htdocs/nuke/modules/gallery/setup/.htaccess: Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration

What gives? php_value not valid on Apache2?? If I comment that out, it complains about the next line with php_flag. Only when I disable .htaccess by renaming it can the setup run, without setting the values in .htaccess. I'd prefer not to set it in the main httpd.conf file, but to have it work as it should. I set OptionsOverride All in Apache (it's just an intranet site). I used the standard msi installer from Apache and PHP zip manual install.
The .htaccess file is as follows:

php_value auto_prepend_file php_value_ok.php
php_flag magic_quotes_gpc off
php_flag register_globals on

Options FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule (index.php)$ index.php?init_mod_rewrite=1&ampersandbroken= [QSA]
</IfModule>

Something I should be enabling or setting? Problems with Apache2?

    a month later

    I do not see any responces to your post but was hoping you might have found a way to fix this. I am having the same issue as you. I am trying to set up Apache2/PHP/MySQl to load from CD for I can distribute my portfolio vis CD. I'm at a loss at this point. Everything works great but all the form work I have done and want to show require that the register_globals flag be set to ON. Due to the nature of PHP which looks for the php.ini file in the c drive and the fact that I want to use a CD which doesn't require anything loaded on the system that is viewing this... (run on sentence =) I need to use the .htaccess method. Any help you can provide would be great.

    -Nik

      Write a Reply...