• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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: 26
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