sudo a2dismod php7.2
sudo a2enmod php5.6
sudo service apache2 restart
OR
sudo update-alternatives --set php /usr/bin/php5.6
sudo update-alternatives --set phar /usr/bin/phar5.6
sudo update-alternatives --set phar.phar /usr/bin/phar.phar5.6
sudo update-alternatives --set phpize /usr/bin/phpize5.6
sudo update-alternatives --set php-config /usr/bin/php-config5.6
Month: January 2019
SQL Query
SELECT column1, column2, ... FROM table_name LIMIT offset, count;
Mysql User Command
- DROP USER ‘username’@’localhost’;
- show databases;
- select User from mysql.user;
How to create a new user in mysql with all privileges
- mysql -u username -p then press enter
- type password
- CREATE USER ‘newuser’@’localhost’ IDENTIFIED BY ‘password’;
- GRANT ALL PRIVILEGES ON * . * TO ‘newuser’@’localhost’;
- FLUSH PRIVILEGES;
How to install python 3.6 in ubuntu
- Open terminal using keyboard ctrl+alt T
- sudo add-apt-repository ppa:jonathonf/python-3.6
- sudo apt-get update
- sudo apt-get install python3.6
- sudo update-alternatives –install /usr/bin/python3 python3 /usr/bin/python3.5 1
- sudo update-alternatives –install /usr/bin/python3 python3 /usr/bin/python3.6 2
- sudo update-alternatives –config python3
- python3 -V then show : Python 3.6.1+