Two PHP versions

Discussion in 'General' started by erkan, Apr 4, 2013.

  1. erkan

    erkan New Member

  2. MaddinXx

    MaddinXx HowtoForge Supporter

    You have to recompile with the newer version. If you want to replace it (e.g. 5.4.12 with 5.4.13) make sure to have same "provides" name.

    E.g. use php-5.4 rather than php-5.4.12 (otherwise they will get installed side by side).

    On the other hand, you could install every version by it's own (I do it like this) and switch from within ISPConfig.
     
  3. erkan

    erkan New Member

    So if I have PHP 5.4.12 and when 5.4.13 comes I can install it side by side and make a new PHP version in ISP Config for 5.4.13?

    But after some time I get a lot of PHP versions, can I remove the old version from the server? I won't use it anymore after the new version so why keep it.
     
  4. MaddinXx

    MaddinXx HowtoForge Supporter

    Yes, you can have as many versions as you want. Removing them should be as easy as deleting all files of it (in /opt/ /etc/ etc.)

    You might not want to keep every version within a version (5.4.12, 5.4.13 etc.) but probably one of each "main" release (5.3.x, 5.4.x, 5.2.x) if a clients needs a specific one.
     
  5. erkan

    erkan New Member

    Ok I see.

    But it seems like a lot of work compared to just replace the old version.

    If I want to be able to replace the old version with a new should I name the directory 5.4 instead of 5.4.12? Do I have to uninstall the old version before installing the new on or can I install the new one over the old one? I'm not sure I follow you there.
     

Share This Page