How To Set Up The Htaccess File On Apache
How To Set Up The Htaccess File On Apache
https://www.linode.com/docs/web-servers/apache/how-to-set-up-htaccess-on-apache/
Install PHP
$ sudo apt install php5.6
$ sudo apt install php7.0
$ sudo apt install php7.1
To set the PHP version that will work with Apache web server, use the
commands below. First disable the current version with the a2dismod
command and then enable the one you want with the a2enmod command.
$ sudo a2dismod php7.0
$ sudo a2enmod php7.1
$ sudo systemctl restart apache2
After switching from one version to another, you can find your PHP
configuration file, by running the command below.
------------ For PHP 5.6 ------------
$ sudo update-alternatives --set php /usr/bin/php5.6
$ php -i | grep "Loaded Configuration File"
$ jobs
[1]+ Running sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
$ mysql -u root
mysql> quit