install_nqinx_webserver_linux_ubuntu_server_20_04_lts
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install_nqinx_webserver_linux_ubuntu_server_20_04_lts [2020/06/10 04:07] – [Open the UFW firewall for Nginx port 80 and 443] wikiadmin | install_nqinx_webserver_linux_ubuntu_server_20_04_lts [2020/06/10 04:42] (current) – [Configure PhpMyAdmin within Nginx Server default sites-available virtual host file] wikiadmin | ||
---|---|---|---|
Line 134: | Line 134: | ||
===== Configure Nginx to Use the PHP Processor ===== | ===== Configure Nginx to Use the PHP Processor ===== | ||
+ | |||
+ | ===== Configure PhpMyAdmin within Nginx Server default sites-available virtual host file ===== | ||
+ | |||
+ | Now go to the '/ | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | |||
+ | sudo cp default default-original | ||
+ | |||
+ | sudo vim default | ||
+ | </ | ||
+ | |||
+ | Paste the following Nginx configuration for PHPMyAdmin inside the ' | ||
+ | |||
+ | < | ||
+ | location /phpmyadmin { | ||
+ | root / | ||
+ | index index.php; | ||
+ | try_files $uri $uri/ =404; | ||
+ | |||
+ | location ~ ^/ | ||
+ | deny all; | ||
+ | } | ||
+ | |||
+ | location ~ / | ||
+ | fastcgi_pass unix:/ | ||
+ | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
+ | include fastcgi_params; | ||
+ | include snippets/ | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Save and exit. | ||
+ | |||
+ | Test the nginx configuration and make sure there is no error, then restart the nginx service. | ||
+ | |||
+ | < | ||
+ | sudo nginx -t | ||
+ | |||
+ | sudo systemctl reload nginx | ||
+ | </ | ||
+ | |||
+ | And we've added the Nginx configuration for our phpMyAdmin installation, | ||
install_nqinx_webserver_linux_ubuntu_server_20_04_lts.1591762075.txt.gz · Last modified: 2020/06/10 04:07 by wikiadmin