• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Introduction of PHP 5.4

E

EdwardDekker

Guest
Hi,

I have today searching to a PHP 5.4 ini file of PHP, because the new PHP 5.4 have arrived and I'll want to be prepared (hopefully you'll will also).

Here a how-to for Linux.

1. Retreive my file by (right-click mouse and copy the link):
wget http://download.edwarddekkerhosting.nl/php54.ini-production.txt > /etc/php54-new.ini

1.2 Or create a new file by:
Code:
vi /etc/php54-new.ini
Insert all of the contents from the link into your server and adjust the parameters at your own will.

2. Move old /etc/php.ini file to a backup.
3. Rename new /etc/php54-new.ini to /etc/php.ini
4. Restart your httpd/apache server
Code:
"/usr/sbin/httpd -k restart" or "/usr/sbin/apache -k restart"
5. Run:
Code:
/usr/local/psa/admin/bin/httpdmng --reconfigure-all
Now all of your domains should be updated too to PHP 5.4.
 

Attachments

  • php54.ini-production.txt
    63.8 KB · Views: 25
What is the point exactly of not upgrading PHP to 5.4, but only using its configuration file?

Note: PHP 5.4 brings significant changes. Features like register_globals, magic_quotes and safe_mode are no longer available for instance, which might break sites depending on them. I'd do a lot of testing first before upgrading to PHP 5.4.

See the following links for more information:

http://www.php.net/archive/2012.php#id2012-03-01-1
http://www.php.net/releases/5_4_0.php
http://www.php.net/migration54
 
Why not

Well, when you'll not updating the PHP.ini file you will get some problems when the PHP version will be updated from 5.3 to 5.4.

These old settings are obsolete and have to replaced with new settings. So, my thought will be if the new file already be present than you don't have to change the configuration file any more.
 
I'd update the configuration file when updating the software itself, not before (or after) that. I don't see the benefit of using a configuration file that's intended to be used with another version of the software than the version installed. I'd just find that confusing and regard it as a possible source for errors and bugs, since you might have settings that are not used and might be missing settings that you do want to set.
 
Back
Top