vivek
Jan 7 2005, 12:44 PM
Hello Friends,
I am getting this errors while Gallery Configuration. I have tried adding those lines in httpd.conf and also in .htaccess file but doesnt work. Checked lots of forums and they suggested the same and i have done all accordingly. but cant resolve the issue
Apache is not obeying the 'php_value' lines in your .htaccess file. Try entering the following into your web server's httpd.conf file:
AllowOverride Options FileInfo
If you are running PHP in CGI mode, this message is unavoidable
Server Gurus please help me out.
Thank You,
Vivek.
TheLinuxGuy
Jan 8 2005, 11:58 PM
Are you running phpsuexec? If so you cannot use that.
Manuel
Jun 26 2005, 11:41 PM
Hell,
May I know the reason of this conflict... of phpsuexec and .htaccess php valu?
Thanks,
gpan
Jun 27 2005, 03:25 PM
Yes. PHPSUexec does not load values from the directory .htaccess (though it might be something the cPanel folk could consider implementing some day)
Actually isnt a problem of cPanel folk people implementing it. It just how it is supposed to work:
Without phpsuexec and PHP as an Apache module, Apache is who executes the PHP code through the PHP module, so that's why flags inside .htaccess (and in httpd.conf) works: because those are flags for Apache, and Apache is who is running php.
When you use phpsuexec, your PHP is configured as CGI. When this happens, Apache doesnt know anything about PHP. It just knows a request has been made for a .php file and that the parser for it is a CGI called PHP. In this scenario, for every request PHP is called under the virtual domain owner user, it produces a HTML output, Apache gets it and gives it to the client, and PHP session exits. PHP is run in a very similar way than running it in client (CLI) mode, so it only knows about php.ini and nothing about .htaccess or httpd.conf, which are files of no use for PHP in this case.
gpan
Jul 4 2005, 07:15 PM
Yes, but if you want you can write a cgi wrapper to check .htaccess also - and parse/inject the flags in prior to script execution (its just theory, you're not goin going to see this happen folks)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.