Re: PHP won't interpret in Apache+Perl+PHP
| From: | John W. Cocula | Date: | Thu, 27 Jun 2002 13:21:04 +0000 |
| Subject: | Re: PHP won't interpret in Apache+Perl+PHP | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-7510@lists.php.net to get a copy of this message | ||
Adam Voigt wrote:
... AddModule mod_php4.c ... AddModule mod_perl.c ... <IfModule mod_php4.c> AddType application/x-httpd-php .php4 .phtml .php .inc AddType application/x-httpd-php-source .phps php_admin_flag engine on php_admin_flag safe_mode off </IfModule> <IfModule mod_php3.c> AddType application/x-httpd-php3 .php3 .php .inc AddType application/x-httpd-php3-source .phps </IfModule> <IfModule mod_php.c> AddType application/x-httpd-php .phtml </IfModule> ... Alias /store/ "/usr/local/apache/htdocs/store/" <Directory "/usr/local/apache/htdocs/store">Doubtful the PHP engine is getting hit at all, usually you would get some pretty nasty errors or crashes if the PHP engine dies, but if it's just sending raw code back, it's most likely a misconfiguration of Apache. What configure line did you use on Apache?I agree that it's got to be a config issue. Here are the salient lines from my httpd.conf. Any thoughts? Thanks!
Options Indexes FollowSymlinks MultiViews
AllowOverride All
SetHandler default-handler
<Files ~ "\.inc$">
Order allow,deny
Deny from all
Satisfy All
</Files>
</Directory>
...
<Location />
...
SetHandler perl-script
...
</Location>
<Location /store>
Options Indexes FollowSymlinks MultiViews
AllowOverride Options All
SetHandler default-handler
</Location>