Next, provide MySQL application password for phpMyAdmin. Install PhpMyAdmin sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curlĪs we’re using Apache as the web server, keep the default selection. Replace abc.com with your domain name / IP address. Go to and check that expected web page is rendered. Create a directory named abc.com inside /var/cd abc.com ![]() Now, it’s better to do some quick test to verify virtual host is working properly. sudo nano /etc/apache2/mods-enabled/dir.confĭirectoryIndex index.php index.html index.cgi index.xhtml index.htm ServerAlias ServerAdmin /var/Apache user and set permissions for /var/www directory sudo adduser ubuntu www-dataĬhange DirectoryIndex settings so that. Sample virtual host file for Laravel application Creating Virtual Hosts cd /etc/apache2/sites-available/ You would run following command to install other php extensions. Install PHP sudo apt install php libapache2-mod-php php-mysql After that your MySQL setup will be secured and you’re good to go for the next section. When promoted for the password enter the password you just set with above query. Then start mysql_secure_installation again. > ALTER USER IDENTIFIED WITH mysql_native_password BY 'MYSQL_ROOT_PASSWORD_HERE' After logged in, enter following SQL query. Start the MySQL client and login as root. Sudo killall -9 mysql_secure_installation Open another terminal and terminate mysql_secure_installation process. If you didn’t encounter above issue, just skip following part and move to Install PHP section. MySQL Failed! Error: SET PASSWORD has no significance for user as the authentication method used doesn’t store authentication data in the MySQL server. Install MySQL sudo apt install mysql-serverĭuring MySQL secure installation, you might find following issue. Let’s do some quick test by visiting public IP address.Įverything is fine if you can see default Apache web page as below. Otherwise it is required to open this port so that your web server can handle incoming request from web clients. Make sure Firewall allows Apache to listen via port 80. ![]() If your Ubuntu version is 20.04, please check out my previous article. You can try this in your local computer or production environment. It is assumed that you have a stable Ubuntu setup. LAMP stands for Linux (Operating System), Apache (Web Server), MySQL (Database Server) and PHP(Runtime Environment). In this tutorial, you will learn how to install LAMP stack on Ubuntu 22.04.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |