Setting Apache, Mysql, PHP

Follow : https://devanswers.co/install-apache-mysql-php-lamp-stack-ubuntu-20-04/ Common Errors : Failed! Error: SET PASSWORD has no significance for user ‘root’@’localhost’ as the authentication method used doesn’t store authentication data in the MySQL server. Please consider using ALTER USER instead if you want to change authentication parameters. Solution : Login as root, sudo mysql, ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password … Read more

Nambah Virtual Host Apache

Create a new directory in /var/www/ for your domain. Just replace mydomain.com with your own. sudo mkdir -p /var/www/mydomain.com 8.2. Create Virtual Host Create a virtual host configuration file replacing mydomain.com with your own. sudo nano /etc/apache2/sites-available/mydomain.com.conf Enter the following replacing mydomain.com with your own. <VirtualHost *:80> ServerAdmin webmaster@mydomain.com ServerName mydomain.com ServerAlias www.mydomain.com DocumentRoot /var/www/mydomain.com/public_html … Read more