Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question Getting Apache and PHP working simultaneously Problem

    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/

    But this line of code is used by PHP. The 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.


  2. #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/ into server: /usr/lib/httpd/modules/ cannot restore segment prot after reloc: Permission denied

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

  3. #3
    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/ into server: /usr/lib/httpd/modules/ cannot open shared object file: No such file or directory

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

    # locate libphp


  4. $spacer_open

Posting Permissions

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