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 Create an index.html file for testing. sudo nano /var/www/mydomain.com/index.html Enter the following: /var/www/mydomain.com/public_html/index.html <html> <head> <title>Welcome!</title> </head> <body> <h1>Welcome to mydomain.com!</h2> </body> </html> Save and exit (press CTRL + X, press Y and then press ENTER) … Read more