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

bmcpanel

Well-Known Member
Jun 1, 2002
544
0
316
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?
 

sexy_guy

Well-Known Member
Mar 19, 2003
847
0
166
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
 

bmcpanel

Well-Known Member
Jun 1, 2002
544
0
316
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.