开发者

.php files not being parsed by HTTPD

开发者 https://www.devze.com 2023-01-30 10:13 出处:网络
Update: My problem was with httpd.conf after all, not php.ini. I was missing the following: <FilesMatch \\.php$> SetHandler application/x-httpd-php </FilesMatch>

Update:

My problem was with httpd.conf after all, not php.ini. I was missing the following:

<FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch>

http://wiki.apache.org/httpd/PHPDownload

(check other answers below too)

Original Question I'd like a way to test my php.ini file, because my server c开发者_如何学Gourrently cannot parse .php files. I'm having problems with my MimeTypes for PHP and I don't see any errors when I restart HTTPD.


If apache (or what web server you use) does not pass the control to the php - then you forgot to add AddType application/x-httpd-php .php into your httpd.conf

0

精彩评论

暂无评论...
验证码 换一张
取 消