Find the answer to your Linux question:
Results 1 to 5 of 5
I get this error message whenever I try to start apache now that I've compiled PHP5.0.3rc1 with GD. quote: -------------------------------------------------------------------------------- Failed to start apache : Starting httpd: Syntax error on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Posts
    3

    libpng.so.3 error after compiling php5.0.3rc1 with gd


    I get this error message whenever I try to start apache now that I've compiled PHP5.0.3rc1 with GD.



    quote:
    --------------------------------------------------------------------------------
    Failed to start apache :
    Starting httpd: Syntax error on line 190 of /etc/httpd/conf/httpd.conf:
    Cannot load /usr/lib/httpd/modules/libphp5.so into server: libpng.so.3: failed to map segment from shared object: Permission denied
    [FAILED]
    --------------------------------------------------------------------------------



    My server is Fedora core 3, and I've got libgd, libgd-devel, libgd-progs, libpng, libpng-devel, libjpeg, and libjpeg-devel all installed.

    I've confirmed that libpng.so.3 is in my /usr/lib/ folder and I even chmod'd it to 777 to make sure I had ok permissions.

    Does anyone have any thoughts for me?

    Ian

  2. #2
    Linux Enthusiast
    Join Date
    Jun 2002
    Location
    San Antonio
    Posts
    621
    Hmm . . .

    You may have more than one version of libpng.so.3, try to run a locate on it. Also, try to run an 'ldd /usr/lib/httpd/modules/libphp5.so' to see where the actual libraries it is trying to load are located.

    Interesting error though, I would like to know what is up.

    Best,

    Samuel
    I respectfully decline the invitation to join your delusion.

  3. #3
    Just Joined!
    Join Date
    Dec 2004
    Posts
    3
    I've done both those things. At least we think alike though!

  4. #4
    Linux Newbie
    Join Date
    Aug 2004
    Location
    Houston Texas
    Posts
    192
    what's in the line 190 in your httpd.conf file?

  5. #5
    Just Joined!
    Join Date
    Dec 2004
    Posts
    3
    LoadModule php5_module /usr/lib/httpd/modules/libphp5.so

Posting Permissions

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