Sudo chown -R www-data:www-data /var/www/html/domainname ![]() Sudo chmod -R 755 /var/www/html/domainname Sudo mkdir -p /var/www/html/ domainname/public Sudo rm -rf /etc/nginx/sites-available/default Sudo rm -rf /etc/nginx/sites-enabled/default Sudo service php8.1-fpm restart Step 9: Configure Nginx Once you have modified your PHP settings you need to restart your PHP-FPM 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 8.1 with Nginx 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 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. You should answer y to all questions.ī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: 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 Nignx installed and configured Firewall. Process: 10273 ExecStart=/usr/sbin/nginx -g daemon on master_process on (code=exited, status=0/SUCCESS) Process: 10272 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on master_process on (code=exited, status=0/SUCC> Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Fri 05:36:49 UTC 44s ago
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |