Video Walkthroughs at Superb Internet

Award-Winning Cloud Host | 20% off lifetime discount | Expires October 31, 2018 | CODE: GOWITHSUPERB

close
Domain Name / Customer ID:

Password:

Forgot Password

All material © 1996 - 2018 Superb Internet Corp. // version-1.50.33
« Back to all videos

Wordpress on LEMP

Install Wordpress on LEMP

This video tutorial will show you how to install WordPress using nginx on your CentOS server. WordPress is a popular, free, open-source website and blogging platform that functions with PHP and MySQL. You need to have LEMP (Linux, nginx, MySQL, and PHP) installed on your CentOS server. (See a tutorial on how to do this here.)

  1. You can download the latest WordPress files right from the command prompt by executing:
    wget http://wordpress.org/latest.tar.gz
  2. Now, unzip the WordPress package by executing the command:
    tar -xzvf latest.tar.gz
  3. This will put the WordPress files into your home directory. Next, you will put the WordPress database, a user, and user password into the MySQL shell. Execute the command:
    mysql -u root -p
  4. When prompted, enter your MySQL root password and press "Enter" You will see that you’re now working in the MySQL shell. To create the new database, choose an identifiable name for your database and execute the following command:
    CREATE DATABASE dbname;
    (Replace dbname with your chosen name for the new database)
  5. Next, you will create the new user by executing the command:
    CREATE USER username@localhhost;
    (Replace username with the name of the new user)
  6. Then, set a password for the newly created user by executing the command:
     SET PASSWORD FOR username@localhost = PASSWORD ("userpass");
    (Replace username with the name of the new user and “userpass” with the password for the new user.)
  7. Next, you need to grant all privileges to the new user in order for the WordPress installer to function. Execute the following command:
    GRANT ALL PRIVILEGES ON dbname.* TO username@localhost IDENTIFIED BY 'userpass';
    (Replace dbname with the name of the new database, username with the name of the new user, and userpass with the password you set in the previous step.
  8. Now, update MySQL by executing the command:
    FLUSH PRIVILEGES;

You can now exit the MySQL shell. Type exit and press Enter

Set-up the WordPress configuration.

  1. To do this, copy the sample WordPress configuration file to a new file by executing the following command:
    cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.php
  2. You then need to open the newly created configuration file and edit some values in it by executing the command:
    vi ~/wordpress/wp-config.php
    In the file, locate the define ('DB_NAME', 'database_name_here'); line and begin editing the wp-config.php file. Press the Insert. key and change database_name_here to the database name you created in MySQL.
  3. Next, locate the define ('DB_USER', 'username_here'); line and change username_here to the username you created in MySQL. The last item to edit is found in the define ('DB_PASSWORD', 'password_here'); line. Change password_here to the password you set for the user in MySQL.
  4. Now, press the "Esc" key to stop editing the file and save the changes by executing: :w Exit the vi editor with the exit command: :q
  5. You’re almost finished. You now need to create the directory where the WordPress files will be stored. Execute the command:
    mkdir -p /var/www/wordpress
  6. To copy the unzipped WordPress files to the newly created directory, execute the command:
    cp -r ~/wordpress/* /var/www/wordpress
  7. Now you need to switch to the www directory by executing the command:
    cd /var/www/
    Next, you need to give ownership of the directory to the nginx user. To do this, run the following commands
    chown nginx:nginx * -R
    usermod -a -G nginx root
  8. Then, you need to set the WordPress virtual host. Open the nginx configuration file by executing the command:
    vi /etc/nginx/conf.d/default.conf
    Press the Insert key to edit the nginx configuration. Beneath the location / {" section, locate the "root /usr/share/nginx/html; line and change it to root /var/www/wordpress; Beneath the location ~ \.php$ {" section, locate the "root /usr/share/nginx/html; line and change it to root /var/www/wordpress; Now you can stop editing the file. Press the "Esc" key and save the changes with the save command: :w Exit the vi editor with the exit command: :q
  9. For the changes to take effect, restart the nginx by executing the command:
    service nginx restart
  10. Now you can access your new WordPress installation. Open your Internet browser and navigate to your newly created site. Your LEMP CentOS server is now configured with the new WordPress website and blogging tool.


comments powered by Disqus

heart  CUSTOMERS LOVE US.
Thank you. Superb has the quickest and most reliable ticket system that I know of.
- John Krische
Great service! After about 7 years here, I'm still happy.
- Ole Jul
As always, team jumps right in there and gets it done! Always such a pleasure working with Superb support.
- Michael Henry
Absolutely amazing. These guys know their stuff! As always superb!
- Louis Gualtieri, Jr.
Thank you for so patiently handling my fairly complicated request. You guys rock! Still ahead of the rest!!!
- Innocent Gathungu
honesty and quickness to respond, is the key to good support.
- Ravi Raheja
As usual a highly qualified and competent team.
- Crocefisso D'ospina
The service your team provided was superlative in all respects. I was amazed! Thank you so much.
- Ned Orrett
Your Response Time to the Support Request is your Strength, I wan to thank you for that.
- Benigno Guerrero
Fantastic support as always
- Ian Hamilton
Superb team did a Terrific job... misconfigurations happen in life and the way the teamed responded was wonderful. I did a lot of research on providers before decide to go with Superb and I look forward to building out our server needs with your company in future. Thanks again, have a Great weekend! Cheers!
- Jarvis Joyce
Thank you all! You guys ROCK!
- Jaysen Moore
You all are the best of the best! Thank you!
- Anthony Griffin
Very prompt and helpful service. Much appreciated.
- Paul Westley
Fast and accurate help. Thank you!
- Alex George
She was superb! Attentive and quick. She solved my problem! Thank you Sheena!
- Allen Reep
Precise technical instructions on how to resolve my issue. Great support as always
- Chris Harrington
Really fast response; excellent solution.
- Alexander Trevor
Immediate response that put my mind at ease. Thank you.
- Helena Looby
Very Professional, communicated the issue clearly so that I could verify the issue and resolve it.
- Chris Harrington
I've been with Superb for a long time and I have never been disappointed by the technical services staff. Keep up the excellent work!
- Mike Belton
Another excellent turnaround!
- Mike Belton
The response was much faster than I had anticipated.
- Karen Umstattd
I am excited to get such a quick response to my inquiry, especially so early on a Sunday morning (EST)
- Karen Umstattd
Again I am amazed at the speed of the reply... well done.
- Richard Martin
Thanks for resolving this issue expeditiously! Still ahead of the rest!
- Innocent Gathungu
You guys have hands down the fastest response and resolution time of any customer service team I know.
- Nancy Helms Weeks
The proactive support and good communication make superb top notch. Thanks guys.
- Andrew Walmsley
Great job!!! Everything taken care of within one hour! Love it!
- Lynn Modranski
Thank you very much for your help. It has always been a good experience to ask you for help. Keep on with the good work!
- Anouk Hoedeman
Thanks to all of you and for all the help that you have given me.
- Charles Upton
Fast response and fast fix. Pleasant and polite as usual.
- Ole Jul
Couldn't ask for any better service than this!!
- Doug Hannah
Thanks, team! Always happy with your service.
- Alan Gustin
It is comforting to know competent people are available when needed. Good to have you as part of the team.
- Gary Millar
Always good results from Superb Support. Thanks!
- Bernard Molek
Your customer service is amazing, and easily accessible.This was reason enough for me to leave my former registrar and switch to Superb!
- Douglas Grant
Everyone handling this ticket has been great -- Transitioning between hosting plans is usually a pain, but the support engineers I've been working with have been awesome.
- Charles Medley
As usual... congratulations for your excellent support!
- Samuel Sosa
Great Job! Ticket completed within six minutes! I appreciate the quick response, it's all taken care of!
- Lynn Modranski
Excellent handling. Wish all help teams worked as well as yours.
- Rick Scorupski
Thanks. Prompt results are the norm with you guys.
- Richard Berger
Greg has been extermely quick to respond, and he's knocking out all of my requests in near real-time... Kudos to him and the rest of the team at Superb support. Thank you.
- Charles Medley
Awsome support, nothing can be better than this. Thanks a lot.
- Shankar Nath
I am a newbie....I am driving your tech staff nuts. They are handling me perfectly, kindly and in a very timely fashion. I could not be happier that I chose superb.
- Melanie Cannon
Superb assistance (pun intended). Knowledgeable and eager to help in short time.
- Jacques Island
You guys are always great at troubleshooting. Thanks so much for your help!
- Robert Cooney
Always excellent support and guidance. Thank you.
- Chris Harrington
I am really happy working with the staff and all what they do to help and make things easy.
- Graciela Ortiz
Super fast response and fixed problem within minutes. Thanks Travis and Superb.net team.
- Omer Ashraf
Great service. I've come to expect it, but it's still nice to see.
- Jonathan Rosenberg
Lightning FAST. Keep up the good work.
- Wayne Eckert
Thanks a bunch for your prompt help by fixing a security issue. You rock!
- Z. Destree
I have never seen a business with such consistently good customer service over the years... and I'm 55 and counting! ;-) Keep up the good work!
- James Wells
As usual everything went soft and easy with your help!! So glad we work with you!!
- Graciela Ortiz
Your customer service is much better than our former host. I would like to thank you for that.
- Patrick Keeley
Excellent customer service. Thanks Superb.net and team.
- Omer Ashraf
As always - fast and friendly!!! THANKS!
- Lynn Modranski
Excellent, top of the class.
- Sameer Abdul Rahiman
The entire staff has been very friendly (and flexible) as we got this project off the ground. Thanks!
- Benjamin Hendricks
Absolutely great - quick response - identified issue was not on Superb's end, provided me with testing guidance and reference material website.
- Chris Harrington
I have been delighted by responsiveness of your technical team! Bravo!
- Larry Eisenberg
I've said it before and I'll say it again. You've got the best support staff I've ever experienced. Thanks again!
- Rich Scorupski
Excellent! Love the quick response!!
- Victor Sandoval
Quick replies with clear instructions. It doesn't get any better than that. Thanks to all.
- Phil Bondi
Great support and within minutes of asking for help.
- Carlos Villareal Kwasek
You guys are always super-responsive. We appreciate that.
- Jeffrey Childress
Thanks for all your expert and quick help!
- Marsha Thompson
Fast response - as usual!
- Ole Jul
I always receive the very best from each and everyone of you. THANK YOU
- Graciela Ortiz
Great job! Your tech team always responds fast. I appreciate that.
- Alan Gustin
I love you guys!
- Anthony Peiris
Over the last few years, the response time has improved alot. It was not 'bad' before, but it's 'superb' now.
- Phil Bondi
Resolved! Love the quick support and detailed explanation! Thank you!
- Eta Thia
Your support team is always helpful and fast to respond. Thanks for putting good people on the project.
- Todd Martin
Are you guys using roller blades in the datacenter now? You move quickly!
- Joel Gathercole
You guys are great! This is why I keep my business with your company!
- Chris Hatchie
I could not suggest any improvement. Fast and friendly, and exactly what I needed. Kudos to the team in general and Brian specifically.
- Richard Martin
I can never believe the fast and accurate service you folks give. You are the service providers that all other sites should aspire to emulate.
- Richard Martin
Always satisfied with support provided by your technical support resources.
- Chris Harrington
Superb has a really superb team. Great customer service, dedication and expertise. Thank you for the great support!!
- Stephan Mitchev
You guys were on top of things. Quick replies and easy solutions.
- Jacob Pozderac
I would not even consider another web hosting company as my experiences with you are always so positive. Thank you!!!
- Diane Secor
Quick and effective. Thank you!
- Marlyne Israelian
Thanks for the fast and quality support!
- Shawn Rhoads
As always you folks are the best!!!
- Ken Webster
I use 3 other hosting companies and none of the are as efficient as Superb.net. Speed is of the essence as they say and that is what Superb does. Great service.
- Howard Barr
Your staff was very patient and knowledgeable. They helped us learn how to fish instead of just giving us fish.
- Russel Piper
I love the support! Very responsive and the action taken to prevent any damage to the server and/or network under a DDos attack are superb! Keep up the great work guys!
- Louis Gualtieri, Jr.
You cannot improve perfection, you can only pay her far more than she gets now and hope it is enough to prevent her being stolen away by evil corporate competitors.
- John Zortman