#1
  1. EAT LEET!
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Sep 2004
    Location
    Seattle, WA
    Posts
    446
    Rep Power
    15

    Exclamation Apache & PHP Help(Linux Guru Please)


    Ok, I'll outline the setup and the problem
    1. I have Apache 1.3 installed, which is a standard RH9 included RPM version
    2. I have PHP 4.2.2 installed as well as a RH9 included RPM
    3. There is a server management console called Plesk on there, which has dependencies to the Apache and PHP RPM's
    4. I need to get additional functionality from PHP, that isn't included with the RPM version, and therefor I installed a secondary version of PHP (4.3.9) from a Tar-ball, which I configured and compiled myself (non-RPM version)
    5. I need to link this updated version of PHP into Apache, so it will use the one I compiled myself instead of the older RPM version

    Ok, now the error:
    6. When I update the link in Apache's config file, to point it to the PHP library file for Apache that comes with the version I compiled myself, I get an error

    "Cannot load libphp4.so into server
    undefined symbol: ap_block_alarms"

    "httpd could not be started"

    What am I doing wrong? Thank You
  2. #2
  3. Extremely Googled
    SEO Chat Good Citizen (1000 - 1499 posts)

    Join Date
    Dec 2004
    Posts
    1,035
    Rep Power
    501
    I'm not 100% sure on the answer but a couple of things

    1. Where did you compile this new version? You say you compiled it yourself but you then mention a tarball extraction. You should compile it on the server you intend to run it on if that's not what you've done here.

    2. You really need to use 4.3.10 because there are some serious flaws in 4.3.9
  4. #3
  5. EAT LEET!
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Sep 2004
    Location
    Seattle, WA
    Posts
    446
    Rep Power
    15
    1. Compiled on the server it is going to run on

    2. Using 4.3.10

    I just can't get Apache too start up without getting the above errors. Please advise if you have a solution.
  6. #4
  7. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Dec 2004
    Posts
    1
    Rep Power
    0
    Originally Posted by Highland
    I'm not 100% sure on the answer but a couple of things

    1. Where did you compile this new version? You say you compiled it yourself but you then mention a tarball extraction. You should compile it on the server you intend to run it on if that's not what you've done here.

    2. You really need to use 4.3.10 because there are some serious flaws in 4.3.9
    Alright, let me just respond to this (I'm actually the person maintaining the server and trying to solve the issue)

    I've been doing some more digging and have some across some more stuff, which I know is related to this.

    When I look at a PHPINFO() page I see that the current setup (PHP 4.2.2) was compiled with the "--with-apxs2=...." switch, and PHP is set up for the Apache 2.0 API. So, when I include that same switch when I configure and compile PHP 4.3.10, I get an error saying:

    =====
    Configuring SAPI modules
    checking for AOLserver support... no
    checking for Apache 1.x module support via DSO through APXS... no
    checking for Apache 1.x module support... no
    checking for member fd in BUFF *... (cached) yes
    checking for mod_charset compatibility option... no
    checking for Apache 2.0 filter-module support via DSO through APXS... no
    checking for Apache 2.0 handler-module support via DSO through APXS... apxs:Error: Invalid query string `BINDIR'
    apxs:Error: Invalid query string `MPM_NAME'
    apxs:Error: Invalid query string `APU_BINDIR'
    apxs:Error: Invalid query string `APR_BINDIR'
    ./configure: line 1: /apr-config: No such file or directory
    ./configure: line 1: /apu-config: No such file or directory
    configure: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)
    ==============

    PHP seems to think that Apache is only version 1.3. However, if I run a HTTPD -v I get this:

    ==============

    Server version: Apache/2.0.40
    Server built: Nov 27 2003 11:04:06

    ==============

    So the server definitely is Apache 2.

    Now, if I compile PHP totally the same, but change --with-apxs2 to --with-apxs it compiles and builds like a charm, but of course it won't tie into Apache, since the versions aren't the same... So this seems like quite a catch 22....
  8. #5
  9. Extremely Googled
    SEO Chat Good Citizen (1000 - 1499 posts)

    Join Date
    Dec 2004
    Posts
    1,035
    Rep Power
    501
    Hmm... that is strange. It's almost like they're reading two separate installs.

    on the phpinfo page scroll down to the Environment section. What is listed for the Server_software section?
  10. #6
  11. EAT LEET!
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Sep 2004
    Location
    Seattle, WA
    Posts
    446
    Rep Power
    15
    Well too make a long story short. Thank you Highland for your help. For now we moved it too a windows box to fix the problem. Smooth running so far.

Similar Threads

  1. Site in PHP...best way to optimize for Google
    By sfimirat in forum Google Optimization
    Replies: 6
    Last Post: Dec 28th, 2004, 04:43 PM
  2. Dynamic .js file using PHP
    By JRM in forum Web Design, Coding and Programming
    Replies: 6
    Last Post: Sep 10th, 2004, 03:51 PM
  3. PHP pages and php path info
    By JRM in forum Web Design, Coding and Programming
    Replies: 2
    Last Post: Aug 19th, 2004, 05:47 PM
  4. spydertrax & php
    By puterbug in forum Web Design, Coding and Programming
    Replies: 2
    Last Post: May 26th, 2003, 09:43 AM

IMN logo majestic logo threadwatch logo seochat tools logo