For a fresh patch server it is worth to install the latest version of MySQL and PHP, If they are still not installed.
PHP and MySQL upgrade
Installation with the following command you can find existing PHP:
My server was u.a. to read:
PHP 5.3.2-1ubuntu4.18 with Suhosin-Patch (cli) (built: Sep 12 2012 19:12:47)
So an update is useful to the latest PHP version 5.4.12. There is a practical tutorial, What has worked for me without any problems. This makes both MySQL, PHP and Apache to the latest version updated with a few simple commands.
This can be checked by pressing PHP-v
PHP 5.4.12-1~lucid+1 (cli) (built: Feb 25 2013 18:20:00)
For safe operation of PHP, it is recommended to install the safety extension Suhosin, but only with old PHP 5.4. Versions or PHP 5.3.x works at the moment. A guide for installation and compilation of the Suhosin extension, that has worked for me without any problems you can find here.
Customize the php.ini
Who is not the hero console on the Ubuntu, so as I, He should install a small utility for manipulating files àéê:
sudo apt-get install aee
and the editing of files:
Looks and includes search and neat short codes, as well as notes on the top screen:
To determine which php.ini is used by Apache should in the PHP phpinfo() command() After the entry “Configuration file (php.ini) Path” searchable, for me, this is: /etc/php5/cgi.