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.

Cpanel & PHP Recompile -- Is there an easier way?

Discussion in 'General Discussion' started by bmcpanel, May 5, 2003.

  1. bmcpanel

    bmcpanel Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    546
    Likes Received:
    0
    Trophy Points:
    16
    On my server, I have to occasionally recompile PHP manually.

    However, I am having a bit of a problem.

    First, I cd to the PHP directory on CPanel... In my case, it is...

    cd /home/cpapachebuild/buildapache/php-4.2.3

    Then, I to a configure command...

    ./configure blah, blah, blah

    That goes fine.

    Then I make and make install.

    make

    make install

    Then, I reboot http.

    However, when I go to info.php to see the PHP info page, it shows that it did not recompile. It shows a last compile date of 3 months ago. What in the world am I doing wrong?
     
  2. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    The proper sequence of events is;

    ./configure --with-apxs=/usr/local/apache/bin/apxs etc
    <ENTER>
    then type
    make clean <ENTER>...... <--- You forgot this!
    make <enter>................
    make install <ENTER>.....
    restart apache type /etc/rc.d/init.d/httpd restart
     
  3. bmcpanel

    bmcpanel Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    546
    Likes Received:
    0
    Trophy Points:
    16
    Ahhhh. I will give the "make clean" thing a try. Thanks.
     
  4. bmcpanel

    bmcpanel Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    546
    Likes Received:
    0
    Trophy Points:
    16
    That worked, S_G. Thanks.
     
Loading...

Share This Page