Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    1

    Recompiling PHP - Back to basics...


    Hi all,

    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:
    1. Download the relevant version of PHP and required libraries etc
    2. Run "./configure .....", using the same details as are displayed by phpinfo()
    3. Run "make"
    4. Run "make install"
    5. Restart web server


    Does that sound about right?

    Thanks

    Steve

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •