# mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.bak # vim default.conf
1 2 3 4 5 6 7 8 9 10 11 12 13
location / { root /usr/share/nginx/html; - index index.html index.htm; + index index.html index.htm index.php; } location ~ .php$ { root /usr/share/nginx/html; fastcgi_pass unix:/run/php-fpm/www.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } ## Edit this file according to actual usage.
3.2 Configure MySQL
Start and set enabled the MySQL server
1
# systemctl enable --now mysqld
A superuser account ‘root‘@’localhost’ is created. A password for the superuser is set and stored in the error log file. To reveal it, use the following command:
1
# grep 'temporary password' /var/log/mysqld.log
1 2
# mysql -uroot -p mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'Your_Password';
MySQL’s validate_password plugin is installed by default. This will require that passwords contain at least one uppercase letter, one lowercase letter, one digit, and one special character, and that the total password length is at least 8 characters.