|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-02-05 21:39 UTC] michael at stellarent dot com
Description: ------------ Hi, This does not work: <IfModule sapi_apache2.c> php_admin_flag engine on </IfModule> My compilation is fine, no errors, and I know php works. This for instance works: <IfModule mod_php5.c> php_admin_flag engine on </IfModule> I am compiling from .src.rpm, with: --with-apxs2=/usr/sbin/apxs I have tried everything I could think of, but still no joy. Any ideas? Expected result: ---------------- my php script to be executed. Actual result: -------------- the php script is not executed, instead I get the "Save File..." dialogue box. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 06:00:01 2025 UTC |
Below is an extract of the httpd.include which is re-written by Plesk. The top section switches off php globally, and for each vhost, sapi_apace2.c is used to switch php on. But since sapi_apache2.c is evaluating to false, php remains switched off. It would be useless for me to change the file from sapi_apache2.c to mod_php5.c because the changes will be lost the next time a new domain is added. In any case, why does sapi_apache2.c evaluate to false? I don't get it? ------------------------------------------- <Directory "/home/httpd/vhosts"> AllowOverride All Options SymLinksIfOwnerMatch Order allow,deny Allow from all php_admin_flag engine off </Directory> <VirtualHost \ ***ip remmed out***:80 \ > ServerName default UseCanonicalName Off DocumentRoot /home/httpd/vhosts/default/htdocs ScriptAlias /cgi-bin/ "/home/httpd/vhosts/default/cgi-bin/" <IfModule mod_ssl.c> SSLEngine off </IfModule> <Directory "/home/httpd/vhosts/default/cgi-bin/"> AllowOverride None Options None Order allow,deny Allow from all </Directory> <Directory /home/httpd/vhosts/default/htdocs> <IfModule sapi_apache2.c> php_admin_flag engine on php_admin_value open_basedir "/home/httpd/vhosts/default/htdocs:/tmp" </IfModule> </Directory> </VirtualHost>