Find the answer to your Linux question:
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 & ...
  1. #1
    Linux 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.

    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>
    Listing open files of the httpd process shows that php is loaded.

    Code:
    /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
    Thanks

  2. #2
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228
    Figured it out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...