Find the answer to your Linux question:
Results 1 to 5 of 5
Hi I have a virtual dedicated server with Godaddy. It currently has Apache 2 and PHP 4.2.x install on it. I'm trying to put PHP 4.3.10 on it. PHP 4.3.10 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    20

    Can't install new PHP on Server


    Hi

    I have a virtual dedicated server with Godaddy. It currently has Apache 2 and PHP 4.2.x install on it. I'm trying to put PHP 4.3.10 on it.

    PHP 4.3.10 is on the machine, but Apache is still using the same version. I think this is because I didn't specify --with-apsx2-dir=path/to/apache. I didn't do it, because I don't know the path to Apache. I can't find it anywhere on the server.

    I have full root priviledges, and I can start/stop apache with apachectl. Because It's "virtual dedicated" I'm thinking that there is a "master apache".... and the 4 or 5 different "virtual servers" on the machine can stop or start their portion of apache. Is it possible that it's set up this way?

    I still have an httpd.conf file and everything.... and a directory for modules.... but I can't for the life of me find the path to apache so that PHP ./configure can create the libphp4.so file.....

    What am I to do here? I've been racking my brain over this one....


    Thanks,
    Alexandre

  2. #2
    Linux Newbie
    Join Date
    Dec 2004
    Location
    Barrie, Ontario
    Posts
    219
    Apache is generally found in /usr/local/apache2 or /usr/local/apache. If it's not there, just try 'locate httpd' and it should give you the location of the httpd control script, which should be the '/bin/' under it.

    Another easy way to locate it is to do:
    Code:
    grep ServerRoot /path/to/my/httpd.conf
    Incidentally, just in case you typoed it in your configure script, it's '--with-apxs2=/usr/local/apache2/bin/apxs', not '--with-apsx2-dir'

    PS: Why you are at it, why don't you go ahead and install PHP 4.3.11, which just came out yesterday, instead of putting all the work into 4.3.10?
    Blog - KB5UMQ - Linux User #272983
    3 Rules:
    1) "It doesn't work..." is simply not useful information.
    2) Don't cross post!
    3) If you are asking for help, start by telling us your distro/os and version.

  3. #3
    Just Joined!
    Join Date
    Mar 2005
    Posts
    20
    httpd: /usr/sbin/httpd.worker /usr/sbin/httpd /etc/httpd /usr/lib/httpd /usr/share/man/man8/httpd.8.gz

    httpd script is located in:
    /usr/sbin/

    Also: /etc/httpd is a folder that contains five other folders:
    conf
    conf.d
    logs (alias)
    modules (alias)
    run (alias)

    I'll try pointing PHP to that folder..... There is no apache folder in existance.

    Thanks,
    Alexandre

  4. #4
    Just Joined!
    Join Date
    Mar 2005
    Posts
    20
    Hey

    tried installing PHP while pointing --with-apsx=/usr/sbin/apsx (thats what the last installation on my server pointed to after looking at php_info() ). Didn't work. Also tried pointing to the folder /etc/httpd/. Also didn't work. It's obviously not installing the libphp4.so apache module.... apache won't recognize the new php.

    Any ideas? This is ridiculous..... GoDaddy still hasn't answered my trouble ticket too......

    Thanks,
    Alexandre

  5. #5
    Linux Newbie
    Join Date
    Dec 2004
    Location
    Barrie, Ontario
    Posts
    219
    It's apxs, not apsx... In your case, since apxs is /usr/sbin/apxs, this should work for you:
    Code:
    --with-apxs2=/usr/sbin/apxs
    Blog - KB5UMQ - Linux User #272983
    3 Rules:
    1) "It doesn't work..." is simply not useful information.
    2) Don't cross post!
    3) If you are asking for help, start by telling us your distro/os and version.

Posting Permissions

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