So you want to reinstall PHP??
This is how you would reinstall php, for whatever reason, and keep the same config options.
First of all, you need to find out what ./configure options you used to install PHP in the first place. Go to the source folder, usually /usr/local/php-(version number). Open up config.status in your favorite editor and copy the ./configure line, which is probably at or around line 7.
Change directory into the PHP source folder. Run a clean, distclean, patch (if needed), configure (with the same options as in the config.status file), make, install, and finally restart apache.
# make clean
# make distclean
# ./configure (paste from config.status file)
# make && make install
# apachectl restartDone!!
Post a Comment