![]() ![]() You can install it using the below command. PhpMyAdmin is a tool to manage MySQL database easily. ServerAlias DocumentRoot /var/sudo a2ensite nf Step 10: Install PhpMyAdmin Paste the following configurations in the new file. sudo nano /etc/apache2/sites-available/ nf Sudo chown -R www-data:www-data /var/www/html/domainnameĬreate a new virtual host configuration. sudo chmod -R 755 /var/www/html/domainname sudo mkdir -p /var/www/html/ domainname/public sudo a2dissite 000-defaultĬreate website directories. Prepare yourself for a role working as an Information Technology Professional with Linux operating system Step 9: Configure Apacheĭisable default Apache configuration. Once you have modified your PHP settings you need to restart your Apache for the changes to take effect. Hit F6 for search inside the editor and update the following values for better performance. Now we configure PHP for Web Applications by changing some values in php.ini file.įor PHP 7.4 with Apache the php.ini location will be in following directory. With Zend OPcache v8.1.5, Copyright (c), by Zend Technologies Step 8: Configure PHP Zend Engine v4.1.5, Copyright (c) Zend Technologies Once PHP is installed you can check the version using the following command. sudo apt install php8.1-fpm php8.1 libapache2-mod-php8.1 php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-gd php8.1-imagick php8.1-cli php8.1-imap php8.1-mbstring php8.1-opcache php8.1-soap php8.1-zip php8.1-intl php8.1-bcmath unzip -y ![]() So you can install PHP using the following command. Step 7: Install PHPīy default Ubuntu 22.04 has the latest PHP 8.1 repository added. Next, you’ll be asked to remove the anonymous user, restrict root user access to the local machine, remove the test database, and reload privilege tables. If you set up the validate password plugin, the script will show you the strength of your new password. On the next prompt, you will be asked to set a password for the MySQL root user. There are three levels of password validation policy, low, medium, and strong. ![]() Press y if you want to set up the validate password plugin or any other key to move to the next step. You will be asked to configure the VALIDATE PASSWORD PLUGIN which is used to test the strength of the MySQL users passwords and improve the security. MySQL installation comes with a script named mysql_secure_installation that allows you to easily improve the MySQL server security. Mysql Ver 8.0.28-0ubuntu4 for Linux on x86_64 ((Ubuntu)) Step 6: Secure MySQL Process: 13836 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, statu>Ĭheck MySQl version using the below command. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Fri 00:38:45 UTC 11s ago The output should show that the service is enabled and running: To verify that the MySQL server is running, type: sudo service mysql status Once the installation is completed, the MySQL service will start automatically. In Ubuntu 22.04 MySQL 8 is included by default in the Jammy Jellyfish repositories, so you can install it easily using the apt install command. Now we have Apache installed and configured Firewall. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Fri 00:34:49 UTC 2min 52s ago Check the status of Apache with the following command. OpenSSH (v6) ALLOW Anywhere (v6) Step: 4 Check Apache InstallationĪs we have installed Apache in step 2 it should be started automatically and already be up and running.Ĭheck Apache version using the below command sudo apachectl -v OutputĮvery process in Apache is managed with the systemctl command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |