PDA

View Full Version : php not loading


scouture
21st May 2007, 15:26
i just installed httpd, php5, mysql and all the dependencies needed with yum on fc6. my php.conf loads up the correct module and httpd.conf points to conf.d where php.ini is located. however, php pages don't get handled on the server side (i see the code). what could cause this problem? is there a log somewhere that could tell me if the php module is being properly loaded?

thanks
seb

falko
22nd May 2007, 18:18
What's in /etc/httpd/conf.d/php.conf?

scouture
22nd May 2007, 22:30
LoadModule php5_module modules/libphp5.so

AddHandler php5-script .php
AddType text/html .php

DirectoryIndex index.php

scouture
22nd May 2007, 22:53
ok nevermind, i guess it is working (i just did a phpinfo() from my root dir) but here is the problem im facing.
I installed phpmyadmin (again with yum) and when I goto localhost/phpMyAdmin/ I see the php code. infact any page i go in in that directory shows me the php code. could it be that that dir is not configured to handle php. i know its not in my /var/www/html/ dir so could that be the problem??

scouture
22nd May 2007, 23:13
Never mind.. I'm not sure what i did but it works now. thanks