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
Ping behind proxy using httping March 5, 2021 You can use utility httping for that. It sends a HEAD request (by default) to a web server and measures the time it took to get a response. The utility is available through a number of repositories for different OS’es and Linux distros: Ubuntu: sudo apt install httping Alpine: sudo… Read More
Reset Root Password on Ubuntu 20 May 2, 2022 Step 1: Reboot your Ubuntu 20.04 LTS Operating System and load the GRUB menu by holding the Shift Key on Keyboard The first step is to start your computer machine and keep pressing the shift button on your keyboard until the GRUB menu appears, as shown in the picture below:… Read More
Linux Remove All Partitions or Data And Create Empty Disk December 13, 2016 Use the following dd command to remove data from /dev/hdX: dd if=/dev/zero of=/dev/hdX bs=512 count=1 OR for sata disk, use the following syntax: dd if=/dev/zero of=/dev/sdX bs=512 count=1 In this example, empty sata disk /dev/sdb, enter (you must be login as the root user): fdisk /dev/sdb dd if=/dev/zero of=/dev/sdb bs=512… Read More