Hello

I have compiled php with force-cgi-redirect, placed it in a folder
called cgi in my web tree and placed an .htaccess file with
Action custom-php /cgi/php
AddType custom-php .php
in the web root.

When trying to access a php file, I get an file not found on this
server error. The log says that
/usr/share/httpd/htdocs/cgi/php/test.php does not exist.

I have tried turning cgi.force_redirect to 0 and 1 in php.ini.

The same web tree is accessible from another boot. It works fine
there. Same tree, same php bnary, same htaccess. I have copied the
httpd.conf file over. No luck

The "bad" apache config includes some of these options which I do noty
think affect this but I am running out of ideas:
--enable-module=most
--enable-shared=max
--enable-module=auth_db
--enable-module=mmap_static
--disable-module=auth_dbm
--with-layout=GNU

I am baffled as to why this is not working. I have used this method,
php config, htaccess for a long time. But this new linux distro's
setup somehow affects things and I have no idea where. They are
similar versions (1.3.26 and 1.3.27)

Any ideas? I've been at this for days 🙁

    Write a Reply...