Using XAMPP, how do i swap out PHP 5.3 for PHP 5.2?

后端 未结 8 809
情书的邮戳
情书的邮戳 2020-12-04 15:59

I\'m using XAMPP 1.7.2, but need to swap out PHP 5.3 for PHP 5.2 - how do I do this?

8条回答
  •  星月不相逢
    2020-12-04 16:10

    For OSX it's even easier. Your machine should come with a version of Apache already installed. All you need to do is locate the php lib for that version (which is likely 5.2.x) and swap it out.

    This is the command you'd run from terminal*

    cp /usr/libexec/apache2/libphp5.so /Applications/XAMPP/xamppfiles/modules/libphp5.so
    

    I tested this on 10.5 (Leopard), so ymmv. * all the caveats about this might break your system, make a backup, blah blah blah.

    Edit: On 10.4 (Tiger), Xampp 1.73, using the libphp5.so-files found at Mamp, this does not work at all.

提交回复
热议问题