Results 1 to 2 of 2
Greetings,
I'm trying to set up a CentOS 5.5 as a web-server. I installed httpd, mysql, and php using the 'Add/Remove Software' GUI. I used chkconfig to get httpd & ...
- 04-13-2011 #1Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
[SOLVED] Can't get php to work on CentOS
Greetings,
I'm trying to set up a CentOS 5.5 as a web-server. I installed httpd, mysql, and php using the 'Add/Remove Software' GUI. I used chkconfig to get httpd & mysql to start during bootup. Didn't see a startup script for php. I tried a simple php but it didn't work. What am I missing.
Listing open files of the httpd process shows that php is loaded.Code:<html> <head></head> <body> Agent: So who do you think you are, anyhow? <br /> <?php // print output echo 'Neo: I am Neo, but my people call me The One.'; ?> got here <br /> </body> </html>
ThanksCode:/root> lsof -p 2525 | grep -i php httpd 2525 apache mem REG 253,0 3197864 3996081 /usr/lib64/httpd/modules/libphp5.so httpd 2525 apache mem REG 253,0 32344 4257867 /usr/lib64/php/modules/dbase.so
- 04-14-2011 #2Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
Figured it out.


