D
D
Dmitry Kulikov2015-07-02 14:39:02
PHP
Dmitry Kulikov, 2015-07-02 14:39:02

How to update php correctly?

Hello, on the server was Php 5.3.3 Then I upgraded to version 5.4 According to this guide https://webtatic.com/packages/php54/
As a result, php -v shows 5.4.42
But phpinfo is still 5.3.3 What should be done in this case?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-07-03
@dmitryi_k

It was necessary to update like this:
rpm -Uvh rpms.famillecollet.com/enterprise/remi-release-6.rpm; yum --enablerepo=remi update php-\*
then service httpd restart

M
Mikhail Osher, 2015-07-02
@miraage

Feel free to use 5.6 if there are no compatibility issues.
Probably apache/nginx configs are looking at php5.3.
I don't know how you implemented it, modphp5 or php5-fpm - in any scenario, see http hosts configs.

D
Dmitry, 2015-07-02
@kasus

/etc/apache2/mods-available/php5.load
Change path from php 5.3 to 5.4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question