![]() Verify that the X509 certificate was correctly generated using the openssl verify command: openssl verify -CAfile ca-cert.pem server-cert.pem Connect to Validate the phpMyAdmin SSL Certificateīefore we configure the phpMyAdmin site to use SSL/TLS, we want to verify that the SSL certificate is good: cd /etc/nginx/ssl/phpMyAdmin ![]() This is also in /home/cloud_user/server_info.txt. Connect to Connections to the default NGINX web server instance can be made via the Public IP. We can get the Public DNS for the lab server in /home/cloud_user/server_info.txt. Verify that we can connect to phpMyAdmin using a web browser. If everything is working as it should, we will see a lot of code. Verify that the phpMyAdmin site is available using the curl command: curl -H " /tmp/public_dns.txt`" /tmp/public_dns.txt` We’ve already validated the NGINX configuration (above), so we’re good to go with a reload: systemctl reload nginx systemctl status nginx Configure NGINX to Work with phpMyAdmin – Part 5 Now, let’s reload the NGINX service to pick up the phpmyadmin virtual host configuration. PHP is configured to communicate over a UNIX socket ( /run/php/). PHP is configured for this virtual host.Ĭonfigure NGINX to Work with phpMyAdmin – Part 4.The logs for this virtual host are going to their own log files, separate from the logs for the main server.The document root location is /usr/share/phpmyadmin/.The server name is configured as the EC2 instance’s DNS name.We can see a few key things about the configuration: Let’s take a look at the phpMyAdmin configuration: more nf Validate that the NGINX configuration is still OK: nginx -t Configure NGINX to Work with phpMyAdmin – Part 3 We need to enable the configuration for phpMyAdmin: mv nf Configure NGINX to Work with phpMyAdmin – Part 2 There are two virtual host configurations, one for the default site configuration, and a template for the phpMyAdmin configuration. Let’s look at the virtual host configurations: cd /etc/nginx/conf.d ls -la Validate the NGINX server configuration: nginx -t We will validate the NGINX configuration and examine it. The lab server has been created with a pre-configured server block. Configure NGINX to Work with phpMyAdmin – Part 1 Once this is done, installation and configuration is complete. We will need to provide a password for the new phpmyadmin user. Select Yes to create a new database using dbconfig-common. Just use the Tab key to get down to OK, and hit Enter. We’re going to configure phpMyAdmin with NGINX. Install phpMyAdmin from the Ubuntu software repository using apt-get: apt-get -y install phpmyadmin Our MariaDB installation is now configured and secured. Set the MariaDB root password to 123456: mysql_secure_installation Secure MariaDB by running the mysql_secure_installation script. The server should be enabled and running. Validate and Secure MariaDBĬheck the status of the MariaDB server using systemctl: systemctl status mariadb The service should be enabled and running. Validate that the php7.2-fpm service is running, using systemctl: systemctl status Verify that we can load the default NGINX web page using curl:īy Public DNS: curl /tmp/public_dns.txt` Validate That the php7.2-fpm Service Is Installed, Enabled, and Running Successfully complete this lab by achieving the following learning objectives: Validate That the NGINX Server Is Installed, Enabled, and RunningĬheck the status of the NGINX service: systemctl status nginx
0 Comments
Leave a Reply. |