Enhanced Security Configuration (IE ESC) is designed to protect a server from dangerous websites capable to infect system with malware. However it is extremely restrictive and can make many tasks extremely tedious. You can disable it by following the below steps.
Click the start menu and search for server manager
Click on the server manager to open it.
When it opens click on Local Server.
Click on beside IE Enhanced Security Configuration.
In the screen that appears select Off for Administrators and Users. and click OK.
Restart Internet explorer for your changes to take affect.
Now lets set up a config file for our wordpress site. Run the command below and then copy and paste the text into your file, insuring that you enter your IP address into the file.
sudo vi /etc/nginx/conf.d/default.conf
server {
listen 80;
server_name YOURIPADDRESS;
# note that these lines are originally from the "location /" block
root /usr/share/nginx/html/wordpress;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Next make some final changes to your php configuration. Run the command:
sudo vi /etc/php-fpm.d/www.conf
Make the following changes to this file.
user = apache to user = nginx
group = apache to group = nginx
listen.owner = nobody to listen.owner = nginx
listen.group = nobody to listen.group = nginx
Finally append under this line listen = 127.0.0.1:9000
listen = /var/run/php-fpm/php-fpm.sock
Now restart all relevant services and ensure that they are all configured to start when the server boots.
sudo service php-fpm restart
sudo service nginx restart
sudo chkconfig php-fpm on
sudo chkconfig nginx on
Now lets do the DB settings needed.
mysql -u root -p
CREATE DATABASE wordpress;
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY ‘password123’;
NGINX is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. It is a rival to the Apache web server and used extensively throughout the internet.
This tutorial will show you how to install Nginx on CentOS 7.
So to begin we’ll need to ensure that we have epel repository installed. We can do so by running the command:
sudo yum install epel-release
Next we can install Nginx using yum. The command to do so is:
sudo yum install nginx.
Next we’ll start the Nginx web server and insure it starts when the server is powered on. The two commands to do this are:
sudo service nginx start
sudo chkconfig nginx on
Now we need to navigate to our localhost. To do so open a browser window and type in localhost. You should see a screen similar to the one below:
Now that we know that Nginx is working as we expect, lets remove the default Index.html and enter our own. First delete the default index.html by running:
sudo rm /usr/share/nginx/html/index.html
Now create your own file using vi:
sudo vi /usr/share/nginx/html/index.html
Enter some test text into your file and save it. Now refresh your browser window. You should see the changes replicated. When we refreshed ours it looked like the image below:
A full video tutorial on how to install Nginx can be found here: