Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Nov 2005
Recompiling PHP - Back to basics...
Got a server running CentOS 5, with PHP 5.1.6. I need ZIP facilities enabled and as far as I understand I'm supposed to reconfigure PHP with the correct options etc.
Just wanted to check the basics here seeing as I have spent the last 4 days trying to recover a badly busted server as a result of updates going wrong!
Is this the correct procedure:
- Download the relevant version of PHP and required libraries etc
- Run "./configure .....", using the same details as are displayed by phpinfo()
- Run "make"
- Run "make install"
- Restart web server
Does that sound about right?
It really depends on how php was installed. If you compiled from source, then the above would probably work. If you installed using rpms, you need to get the php source rpm and rebuild it with the --enable-zip option.