• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

[Bug] httpd.include unconditionally doing php_admin_flag; Workarounds please?

J

Joachim

Guest
Using Plesk 7.5 on Debian Sarge with Apache 2.0; trying to get PHP to run as CGI under a suExec regime.

/etc/apache2/httpd.include as written by Plesk looks like this:

Code:
...
<Directory "/var/www/vhosts">
  ...
  php_admin_flag engine off
</Directory>

PHP is installed as CGI, not as a module, so Apache doesn't know what php_admin_flag is and will refuse to start.

Here's how the lines should look like:

Code:
...
<Directory "/var/www/vhosts">
  ...
  <IfModule mod_php4>
    php_admin_flag engine off
  </IfModule>
</Directory>

(There should probably be a corresponding section for PHP3, but I don't know how the syntax might vary.)

As a temporary fix, I'm still loading mod_php4, but it's just a waste of RAM (which isn't plentiful on that particular machine).

Is there another workaround, one that doesn't require loading mod_php3 or manually updating httpd.include after ever change?
 
Back
Top