12/16/2023 0 Comments Ubuntu install phpmyadmin php5.6sudo chmod -R 755 /var/www/html/domainname sudo mkdir -p /var/www/html/domainname/public sudo a2dissite 000-defaultĬreate website directories. Step 9 – Configure Apacheĭisable default Apache configuration. Once we have modified PHP settings, we need to restart Apache for the changes to take effect. Hit F6 for search inside the editor and update the following values for better performance. So, open php.ini file by using execute the following command on command prompt: sudo nano /etc/php/8.1/apache2/php.ini To configure PHP by changing some values in php.ini file. 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 the PHP installed has been complete, we can use the following command to check the version of installed php: php -v Output Install PHP using the following command is as follow: 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 Next, will be asked to remove the anonymous user, restrict root user access to the local machine, remove the test database, and reload privilege tables. If we set up the validate password plugin, the script will show we the strength of we new password. On the next prompt, 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 we want to set up the validate password plugin or any other key to move to the next step. 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 we to easily improve the MySQL server security. Mysql Ver 8.0.28-0ubuntu4 for Linux on x86_64 ((Ubuntu)) Step 6 – Secure MySQL To check mysql version using the following command: sudo mysql -V Output Process: 13836 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, statu> 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: We can verify that the MySQL server status is running, type: sudo service mysql status Install and configure mysql on ubuntu 22.04 by using the following commands: is as follows: sudo apt install mysql-server └─12785 /usr/sbin/apache2 -k start Step 5 – Install MySQL 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. Once Apache is installed and firewall configuration has been finished, we can check Apache version using the following command: is as follows: sudo apachectl -v OutputĮvery process in Apache is managed with the systemctl command. OpenSSH (v6) ALLOW Anywhere (v6) Step – 4 Check Apache Installation With this command we can view the status of UFW. Then enable apache full by using the following command is as follows: sudo ufw allow 'Apache Full' If we are not going to use SSL we need to enable only the Apache profile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |