Stop apache if running:
# systemctl stop httpd
Install epel if not installed:
# yum install epel-release
# yum install nginx
# systemctl enable nginx
# systemctl start nginx
Add the server Block Add the following configuration block, which is similar to the default, but updated for your new directory and domain name: Enable this server block by creating a symbolic link to your custom configuration file inside the sites-enabled directory, which Nginx reads from during startup:
Removes all but config files: or remove everything: After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required:
At first, let’s update the packages: Next, download MySQL from the offical page or use wget command: Get the repo package When you attempt to install the package, it will ask you what product and version you want to install. Here you can select The MySQL version, Tools, Connectors (like MySQL Workbench), and preview packages. … Read more
Good Read: https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/
Update your package list Install the dependencies for the python3-certbot-nginx package, which include the python3-acme, python3-certbot, python3-mock, python3-openssl, python3-pkg-resources, python3-pyparsing, and python3-zope.interface packages: Iinstall the python3-certbot-nginx package: Certbot needs to be able to find the correct server block in your Nginx configuration for it to be able to automatically configure SSL. Specifically, it does this … Read more
This article describes how to host a web site on IPFS. Requirements: Access to a Registered Domain and DNS records. Edit your DNS to point the A record to the IPFS server. We will need this to resolve in order to install a Let’s Encrypt Certificate. Lets Start with an Update # sudo apt update … Read more
There is a small issue where a Plesk/CentOS 7 system is migrated to Azure and nginx fails to start. This is the error in the nginx log # cat /var/log/nginx/error.log 2018/06/14 22:11:41 [emerg] 9341#0: bind() to 10.144.114.11:443 failed (99: Cannot assign requested address) If so then to edit: # /etc/sysctl.conf And add: # net.ipv4.ip_nonlocal_bind = … Read more
Stop apache if running:
# systemctl stop httpd
Install epel if not installed:
# yum install epel-release
# yum install nginx
# systemctl enable nginx
# systemctl start nginx
Site is being load balanced and you get this error is different locations: It works! This is the default web page for this server. The web server software is running but no content has been added, yet. This is using apache vs Nginx. Restart nginx fails: root@web2:/var/log/nginx# tail -f error.log 2015/09/11 01:00:13 [emerg] 5190#5190: bind() … Read more
Getting 502 Errors on plesk Try and disable nginx and re-configure your apache configuration to see if it will correct the errors nginx is showing. To disable nginx, issue : # /usr/local/psa/admin/bin/nginxmng -d To reconfigure your apache configuration issue : # /usr/local/psa/admin/bin/httpdmng –reconfigure-all