Re: How to change php version
| From: | EyeLand | Date: | Wed, 11 Jun 2014 10:51:58 +0000 |
| Subject: | Re: How to change php version | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323446@lists.php.net to get a copy of this message | ||
1) on /var/www/clients/client0/web5/web/.htaccess I add AddHandler
x-httpd-php52 .php
2) I create file info.php with <?php phpinfo(); ?> on
http://wp.ournet.biz/info.php, but when access that
file start
download
2014-06-10 10:38 GMT+03:00 Design in Motion Webdesign <info@designinmotion.be>:
> I agree with Chris. But if you really want to swith PHP version, you can add
> the following line to your .htaccess file:
>
> AddHandler x-httpd-php52 .php
>
> Assuming that php version 5.2 is available on the server of course.
>
> Best regards.
> Steven
3) can you recommend how do (article/manual) step by step for
"build/install this from
source -- taking *great care* to be certain to install it in other
than the default location (e.g., /usr/local/bin, rather than
/usr/bin) so that it doesn't trample on your existing 5.4.4 version"
2014-06-11 4:10 GMT+03:00 lists-php
<replies-lists-e7x6-php@listmail.innovate.net>:
> I suspect that you are going to need to build/install this from
> source -- taking *great care* to be certain to install it in other
> than the default location (e.g., /usr/local/bin, rather than
> /usr/bin) so that it doesn't trample on your existing 5.4.4 version.
>
> Installing from an old rpm will likely blow away your 5.4.4 version,
> which could cause things like the installed phpmyadmin to stop
> working.
>
> Note -- the 5.4.4 release will have, among other things, security
> fixes. So, going back to 5.2.17 will probably leave you with some
> vulnerabilities.
>
> I obviously have no knowledge of your application, but I don't think
> that anything so major changed that would keep a 5.2.17-centric
> application from working in a 5.4.4 environment. I have made
> applications built for much older versions of php work with 5.4,
> without great pain. I suspect that a couple of careful changes to
> the default php.ini would take care of the majority of the
> compatibility issues.
>
> - Richard