Update PHP 5.4 on Debian 6 Squeeze Rumi, June 6, 2014 Set up Dotdeb First add Dotdeb to your Apt sources: sudo vim /etc/apt/sources.list /etc/apt/sources.list deb http://packages.dotdeb.org squeeze all deb-src http://packages.dotdeb.org squeeze all deb http://packages.dotdeb.org squeeze-php54 all deb-src http://packages.dotdeb.org squeeze-php54 all Save & Exit. Now go for the next- curl http://www.dotdeb.org/dotdeb.gpg | sudo apt-key add -sudo apt-get update Now Install PHP 5.4 sudo apt-get dist-upgrade Test it- php -v I found there were a couple of warning messages – I had to remove the old Suhosin & APC configuration files, and manually re-install APC: sudo rm /etc/php5/conf.d/suhosin.ini sudo rm /etc/php5/conf.d/apc.ini sudo apt-get install php5-apc Optionally install MySQL 5.5 If you get this message: The following packages have been kept back: mysql-server It’s probably because Dotdeb includes MySQL 5.5 and Squeeze includes MySQL 5.1. You can choose to upgrade with this command: sudo apt-get install mysql-server You may find phpMyAdmin gives a warning like this: Your PHP MySQL library version 5.1.66 differs from your MySQL server version 5.5.30. This may cause unpredictable behavior. You can fix this by installing the new MySQL Native Driver extension: sudo apt-get install php5-mysqlnd Related Administrations Configurations (Linux) Debianphp
How to see time stamps in bash history? April 22, 2020 Is there any way I can see at what time the commands were executed from the bash history? We can see the order but is there any way I can get the time also? Bottom-Line: Execution time in the Bash history: HISTTIMEFORMAT=”%d/%m/%y %T ” # for e.g. “29/02/99 23:59:59” HISTTIMEFORMAT=”%F… Read More
Cloning Openvz Proxmox PVE container guest machine November 4, 2015December 13, 2016 I first created a ‘template’ vm containing all stuff I need and using a temporarily ip adres. In the network config file of eth0 (/etc/sysconfig/network-scripts/ifcfg-eth0) I comment out the HWADDRESS line, else it will not come up with another mac address… Stop this ‘template’ vm as it is just used… Read More
Increase file upload size limit in PHP-Nginx June 9, 2014 To change max file upload size to 100MB Edit… vim /etc/php5/fpm/php.ini Set… upload_max_filesize = 100M post_max_size = 100M Related Read More