The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php 5

Discussion in 'General Discussion' started by kite, Jun 19, 2005.

  1. kite

    kite Registered

    Joined:
    Jun 19, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    I am have attempted to upgrade Apache and PHP on my server. It seems as though when I do the rebuild apache thing within WHM.

    After I run the rebuild script it appears as if everything was setup correctly but, after viewing the http headers I am still running the pervious configuration of apache and after using the phpinfo() function from php and it is called via Apache I still show usuing the same version of PHP.

    I was bothered by this so I decided to upgrade manually I got Apache 2 setup and configured PHP5 but same result after calling the phpinfo() function it still reflects that of PHP4.

    Upon running php -v from the command line from a shell account on the server I am able to see the install went threw because it is telling me that I am using PHP5.

    So my question is: I noticed within /home/virthttpds/usr/lib there is a directory called php is this utilized by cPanel for virtual hosts? Should I set this directory with --prefix=/home/virthtt/blah?

    I guess I am not understanding the relevance of this directory.

    Another question is within /usr/local/apache/bin I find apxs as well within /etc/httpd/bin/ I am not worried so much about using Apache 2 so I just wanted to make sure I had the correct apxs defined within my PHP configuration, so if anyone could help me by understanding which one of these it utilized by the default /etc/rc.d/init.d/httpd?

    Thank you in advance for any help.
     
  2. kite

    kite Registered

    Joined:
    Jun 19, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    I have since seemed to have fixed the issue, thank you :)
     
  3. TheLimey

    TheLimey Registered

    Joined:
    Jun 2, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi. We're also having this problem.

    cPanel shows PHP5.0.4 but phpinfo() shows PHP4.4.0

    Would you mind sharing how you solved the problem?

    Thanks.
     
Loading...

Share This Page