Find the answer to your Linux question:
Results 1 to 2 of 2
I was wondering if anyone can help me with a problem I am having installing PHP 5 on my CentOS server? I followed the install instructions PHP provides to no ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    3

    Installing PHP 5


    I was wondering if anyone can help me with a problem I am having installing PHP 5 on my CentOS server?

    I followed the install instructions PHP provides to no avail. I get this error when trying to start httpd:

    httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: sapi_globals

    Any ideas?

  2. #2
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510
    I'm not specifically familiar with CentOS's arrangement, but it's an RPM distribution, so you can use the RPM database to check for corruption.

    The rpm -V command tests an installed package for changes or corruption. The rpm -qa command lists all installed RPMs that match the argument. You can combine these to test all of your installed PHP RPMs like this. If all is well, you will get no output. If any file is changed in any way, it will be listed with a code that says how it was changed.
    Code:
    rpm -V $(rpm -qa '*php*')
    Similarly, you can test all your apache files like this. You may have several configuration files and directories changed that are no problem, but investigate any file you see that's modified that shouldn't be.
    Code:
    rpm -V $(rpm -qa '*apache*')
    Of course you should also check for updates. If there is a bug, CentOS may have released an RPM update to fix it.

Posting Permissions

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