What is Nginx? Nginx is a better free alternative to Apache because its lightweight and RAM-friendly. It can perform better and faster than Apache, particularly when the number of concurrent site visitors is on the rise. The only downside of Nginx is that not many users familiar with Nginx because it has different DNA and anatomy compared to Apache. For instance, Nginx doesn’t support Apache’s .htaccess so users need to convert their htaccess content to nginx configuration.
Here is a video to follow along, or if you are a traditional man, there are written steps right below the video.
Step 1-
Stop and Remove Apache.
service httpd stop
yum remove httpd -y
Step 2-
Install Epel
EPEL stands for Extra Packages for Enterprise Linux. Because yum as a package manager does not include the latest version of nginx in its default repository, installing EPEL will make sure that nginx on CentOS stays up to date.
To install EPEL, open terminal and type in:
sudo yum install epel-release
Press “y”, when prompted.
Step 3- Installing Nginx
Open terminal and type in:
sudo yum install nginx
After you answer yes to the prompt twice (the first time relates to importing the EPEL gpg-key), nginx will finish installing on your VPS.
Step 4 – Start Nginx
To get nginx running, type:
service nginx start
Step 5-
Changes in Nginx’s configuration file (Optional)If you want to make any changes in the Nginx config file type in the command.vi /etc/nginx/nginx.conf
Checking:
Open up your browser and type in your domain or IP.
And you shall see something similar to this.
9 Comments
Jona · September 2, 2016 at 6:49 AM
Hey there would you mind letting me know which hosting
company you’re using? I’ve loaded your blog in 3 completely different browsers and I must say this blog loads
a lot faster then most. Can you recommend a good internet hosting provider
at a fair price? Cheers, I appreciate it! http://bing.net
nova geek · October 7, 2016 at 9:26 AM
QO
indoor golf net · October 23, 2016 at 11:46 AM
Thank you for this post, I’m a big fan of this website would really like to go on updated.
indoor golf Nets · October 23, 2016 at 11:58 AM
Your writing talent is really appreciated!! Thanks a
lot. You saved me a lot of frustration. Amazing post!
serovital · November 2, 2016 at 7:57 PM
I enjoy your work, many thanks for sharing all the useful
blogs.
genf20 plus User reviews · November 5, 2016 at 2:36 PM
Good day! Great post! Please keep sharing simply because I will be staying tuned for more!
mojo male enhancement · November 17, 2016 at 1:27 PM
Very useful blog. i will follow this blog. continue the excellent work.
bitcoin casino · April 27, 2017 at 12:53 PM
Hey I am so grateful I found your weblog, I really
found you by error, while I was searching on Digg for something
else, Anyhow I am here now and would just like to say many thanks for a marvelous post
and a all round enjoyable blog (I also love the theme/design), I don’t have
time to browse it all at the moment but I have bookmarked it and also added your RSS feeds,
so when I have time I will be back to read much more, Please do keep
up the great jo.
daftar sakong 88 · August 25, 2018 at 6:37 PM
I got thіs site from my pal ԝho told me regarding
this web site аnd now this time I am visitіng this web
page and reading ѵery informative articⅼes at this place.