On 04/30/2010 09:00 AM, Robert P. J. Day wrote:

hmmmmmmm ... apparently, it's not as simple as i thought. i'm on a test,
fresh install of fedora 13 beta, i've installed apache 2 and started it,
i've done a

# yum install php

and i can see:

# rpm -qa "*php*"
php-5.3.2-1.fc13.x86_64
php-cli-5.3.2-1.fc13.x86_64
php-common-5.3.2-1.fc13.x86_64
#

i created /var/www/html/phpinfo.php which, unsurprisingly, simply runs
phpinfo(), i've checked that there is a /etc/httpd/conf.d/php.conf file,
i've verified that there is a shared object
/usr/lib64/httpd/modules/libphp5.so ... and yet, when i browse to
localhost's phpinfo.php, i see only (verbatim):

<?php
phpinfo();
?>

"httpd -M" verifies that, yes, php5_module is loaded. so, again, what
have i done stupidly? and even if it's a trivial solution, i'm going to
verify that a fresh install of fedora 13 with both httpd and php doesn't
support php, which is just weird.

rday

p.s. at this point, this clearly belongs on the main php list but, since
i started it here, i might as well finish it here.


Regardless of what httpd -M says, did you stop and start Apache
after installing PHP?  (For historical reasons I never trust "restart").

And does httpd.conf have a line like "Include conf.d/*.conf"?

And (to triple-check) does /etc/httpd/conf.d/php.conf have the line:
AddType application/x-httpd-php .php


Chris

--
Email: christopher.jo...@oracle.com
Tel:  +1 650 506 8630
Blog:  http://blogs.oracle.com/opal/
Free PHP Book: http://tinyurl.com/ugpomhome

Reply via email to