Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member bmcpanel's Avatar
    Join Date
    Jun 2002
    Posts
    546

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

    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. #2
    Member
    Join Date
    Mar 2003
    Posts
    863

    Default

    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. #3
    Member bmcpanel's Avatar
    Join Date
    Jun 2002
    Posts
    546

    Default

    Originally posted by sexy_guy
    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
    Ahhhh. I will give the "make clean" thing a try. Thanks.

  4. #4
    Member bmcpanel's Avatar
    Join Date
    Jun 2002
    Posts
    546

    Default

    That worked, S_G. Thanks.

Similar Threads & Tags
Similar threads

  1. Recompile on PHP
    By robthemanbob in forum New User Questions
    Replies: 2
    Last Post: 03-12-2009, 02:41 PM
  2. How to recompile PHP
    By ahostli in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-28-2006, 09:18 PM
  3. Just recompile only PHP
    By benito in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-17-2006, 10:48 AM
  4. Recompile the PHP with CPANEL
    By JoanaP in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-30-2003, 03:00 AM
  5. Recompile PHP ...Please help
    By evolver in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-08-2003, 03:27 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube