Find the answer to your Linux question:
Results 1 to 3 of 3
Hi. I use Fedora-5 Linux as my Operating System. Recently I installed most resent versions of Apache web-server and PHP on my system. I installed and tested Apache, first, and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2006
    Posts
    2

    Question Getting Apache and PHP working simultaneously Problem


    Hi.
    I use Fedora-5 Linux as my Operating System. Recently I installed most resent versions of Apache web-server and PHP on my system. I installed and tested Apache, first, and it was successful. Next, I installed PHP, however, after the installation I noticed that Apache wouldn't start (i.e. httpd will not start, restart or reload). While troubleshooting, I observed that when I remove the line shown below from the httpd.conf file, Apache would work fine, with no problems.

    LoadModule php5_module /usr/lib/httpd/modules/libphp5.so

    But this line of code is used by PHP. The libphp5.so is located in the path shown in above, and I copied the php.ini file to the recommended location. Could anyone please assist me, because I am confused and I don't know how to fix this problem.

    Thanks.

  2. #2
    Just Joined!
    Join Date
    Feb 2006
    Posts
    2

    Question Update

    I was able to get httpd running again by using this command

    /usr/local/apache/bin/apachectl start

    However, when I checked the loaded module (/usr/sbin/httpd -M), I get the following error message:

    httpd: Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/httpd/modules/libphp5.so into server: /usr/lib/httpd/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied

    I changed the permissions of the "libphp5.so" file to 777, but I still got the same responce.
    Please help.

  3. #3
    Just Joined!
    Join Date
    Dec 2007
    Posts
    1
    Were you ever able to figure out how to fix this? I just encountered this and am not sure how to resolve. I am porting php sites over to a 64 bit server from a 32bit server.

    # service httpd start
    Starting httpd: Syntax error on line 8 of /etc/httpd/conf.d/php.conf:
    Cannot load /usr/lib/httpd/modules/libphp5.so into server: /usr/lib/httpd/modules/libphp5.so: cannot open shared object file: No such file or directory
    [FAILED]


    # grep ^LoadModule /etc/httpd/conf.d/php.conf
    LoadModule php5_module /usr/lib/httpd/modules/libphp5.so

    # locate libphp
    /usr/lib/httpd/modules/libphp5.so


    Thanks,

  4. $spacer_open
    $spacer_close

Posting Permissions

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