SlideShare a Scribd company logo
1 of 5
Download to read offline
WebSetNet
Webmaster Blog
http://websetnet.com
How to Install Wordpress on CentOS
How to Install Wordpress on CentOS
Contents
1.1: Overview
1.2: Preliminary Checks
1.3: Step-by-Step Guide to Install Wordpress on CentOS
1.3.1: Step One-Downloading WordPress
1.3.2: Step Two-Creating the WordPress Database and User
1.3.3: Step Three-Setting up the Configuration of WordPress
1.3.4: Step Four-Copying the Files
1.3.5: Step Five-Gear up for the Wordpress Online Installation Page!
1.1 Overview
Wordpress is a fairly popular free open source website and blogging tool that works by using
PHP and MySQL. What started in 2003 as a simple single-bit code blogging system has
gradually evolved into a highly versatile full-scale content management system that boasts of
being one of the largest self-hosted blogging tools worldwide. It currently manages 22% of all
the new websites created and brags of more than 20,000 plug-ins to enable customized
functionality.
1 / 5
WebSetNet
Webmaster Blog
http://websetnet.com
In this tutorial, we shall learn the process of installing Wordpress on CentOS
1.2 Preliminary Checks
1. Before you start the steps explained in this tutorial, please ensure that you have access to
root privileges as a user.
2. Before you begin work on Wordpress, you must ensure that Linux, Apache, MySQL, PHP
(LAMP) stack is installed on your server. See tutorial Install Apache2, PHP5 And MySQL
Support On CentOS 6.5 (LAMP) for the base setup.
Once the above preconditions are fulfilled, you are good to go and you may begin the process
of installing Wordpress on CentOS by following the steps outlined below.
1.3 Step-by-Step Guide to Install Wordpress on CentOS
Outlined below are the steps that shall help you install Wordpress on CentOS.
1.3.1 Step One - Downloading WordPress
As first step in the process, you must download Wordpress from the website by using the wget
command:
wget http://wordpress.org/latest.tar.gz
The above command shall help you download the zipped Wordpress package straightaway to
the home directory of the user. You may unzip g command:
tar -xzvf latest.tar.gz
The above command shall lead to unzipping of the downloaded Wordpress files, and you are
now ready to move on to Step 2.
1.3.2 Step Two - Creating the WordPress Database and User
After you have managed to unzip the Wordpress files, you will find them in a directory called
Wordpress within the home directory.
Subsequently, you need to create a new MySQL directory for Wordpress. For that, you need to
log into the MySQL Shell using the following command:
mysql -u root -p
You must login here through your MySQL root password, and further create the following:
2 / 5
WebSetNet
Webmaster Blog
http://websetnet.com
1. A Wordpress Database
2. A User in the created database
Subsequently, you would be required to assign new password. Here, it is important to
remember that the whole lot of MySQL commands must certainly end with a semi-colon (;)
First of all, you need to create the database, which has been named as WordPress1 for the
purpose of this tutorial, though users are free to name the actual database as per their liking.
Please use the following command to create the database:
CREATE DATABASE wordpress1;
Query OK, 1 row affected (0.00 sec)
Next, you are required to create the new user. You may replace the database, name, and
password values given below with values as per your preference:
CREATE USER wordpressuser1@localhost;
Query OK, 0 rows affected (0.00 sec)
Once the user has been created, you need to set the password for the new user by using the
following command:
SET PASSWORD FOR wordpressuser1@localhost= PASSWORD("password123");
Query OK, 0 rows affected (0.00 sec)
You must round up this step by granting all privileges to the newly created user. Please note
that if you miss this step, you would not be able to start the Wordpress installer. Please use the
following command to do the same:
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser1@localhost IDENTIFIED BY
'password123';
Query OK, 0 rows affected (0.00 sec)
Subsequently, you need to refresh MySQL using the following command:
FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
Once done with the above steps, its now time to exit out of the MySQL shell by giving the
3 / 5
WebSetNet
Webmaster Blog
http://websetnet.com
following command:
exit
You have now successfully exited out of the MySQL shell, and it is now time to move on to Step
3.
1.3.3 Step Three - Setting up the Configuration of WordPress
First you need to copy the sample Wordpress configuration file, which is located in the
Wordpress directory, into an altogether new file which would need to be edited, thus creating a
new and usable Wordpress config. Please use the following command to execute the same:
cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.php
Further, you need to open the wordpress configuration by keying in the following command:
vi ~/wordpress/wp-config.php
You need to search for the section containing the fields given below, and replace with precise
details for your database name, username, and password:
// ** MySQL settings - You can get this info from your web host ** // /** The name of the
database for WordPress */ define('DB_NAME', 'wordpress1'); /** MySQL database1 username1
*/ define('DB_USER', 'wordpressuser1'); /** MySQL database1 password123 */
define('DB_PASSWORD1', 'password123');
You need to save the changes made above before exiting. This brings you to the end of Step 3,
and you can now graduate to step 4.
1.3.4 Step Four - Copying the Files
The process of uploading Wordpress to the server is almost complete. The final step remains to
transfer the unzipped WordPress files onto the website's root directory by using the following
command :
sudo cp -r ~/wordpress/* /var/www/html
From this point onwards, WordPress shall have its own simple and user-friedly online
installation form! Well done!
However, the available form would require a specific PHP module for running. Do not lose
sweat! If it has not yet been installed on your server, you may download php-gd by using the
following command (yes! It is that simple!):
sudo yum install php-gd
4 / 5
WebSetNet
Webmaster Blog
http://websetnet.com
You have now successfully downloaded the requisite PHP module, and you may run the form in
an unperturbed manner. Last but not the least, you are required to restart Apache by using the
following command:
sudo service httpd restart
This brings you to the end of Step 4,and you may now move on the the nest and final step in the
process.
1.3.5 Step Five - Gear up for the Wordpress Online Installation Page!
The above steps shall lead you to the Wordpress Online Installation Page iin a fuss free
manner. All you need to do to access the page is add /wp-admin/install.php to your website's
domain or IP address (for instance. sample.com/wp-admin/install.php), and complete the short
online form with the requested details. Given below is a screenshot of how the form would look
like: Now that is fairly simple!
(JavaScript must be enabled in your browser to view the large image as an image overlay.)
Powered by TCPDF (www.tcpdf.org)
5 / 5

More Related Content

Recently uploaded

Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxeditsforyah
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书rnrncn29
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 
Elevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New OrleansElevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New Orleanscorenetworkseo
 

Recently uploaded (20)

Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptx
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 
Elevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New OrleansElevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New Orleans
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Install wordpress-centos

  • 1. WebSetNet Webmaster Blog http://websetnet.com How to Install Wordpress on CentOS How to Install Wordpress on CentOS Contents 1.1: Overview 1.2: Preliminary Checks 1.3: Step-by-Step Guide to Install Wordpress on CentOS 1.3.1: Step One-Downloading WordPress 1.3.2: Step Two-Creating the WordPress Database and User 1.3.3: Step Three-Setting up the Configuration of WordPress 1.3.4: Step Four-Copying the Files 1.3.5: Step Five-Gear up for the Wordpress Online Installation Page! 1.1 Overview Wordpress is a fairly popular free open source website and blogging tool that works by using PHP and MySQL. What started in 2003 as a simple single-bit code blogging system has gradually evolved into a highly versatile full-scale content management system that boasts of being one of the largest self-hosted blogging tools worldwide. It currently manages 22% of all the new websites created and brags of more than 20,000 plug-ins to enable customized functionality. 1 / 5
  • 2. WebSetNet Webmaster Blog http://websetnet.com In this tutorial, we shall learn the process of installing Wordpress on CentOS 1.2 Preliminary Checks 1. Before you start the steps explained in this tutorial, please ensure that you have access to root privileges as a user. 2. Before you begin work on Wordpress, you must ensure that Linux, Apache, MySQL, PHP (LAMP) stack is installed on your server. See tutorial Install Apache2, PHP5 And MySQL Support On CentOS 6.5 (LAMP) for the base setup. Once the above preconditions are fulfilled, you are good to go and you may begin the process of installing Wordpress on CentOS by following the steps outlined below. 1.3 Step-by-Step Guide to Install Wordpress on CentOS Outlined below are the steps that shall help you install Wordpress on CentOS. 1.3.1 Step One - Downloading WordPress As first step in the process, you must download Wordpress from the website by using the wget command: wget http://wordpress.org/latest.tar.gz The above command shall help you download the zipped Wordpress package straightaway to the home directory of the user. You may unzip g command: tar -xzvf latest.tar.gz The above command shall lead to unzipping of the downloaded Wordpress files, and you are now ready to move on to Step 2. 1.3.2 Step Two - Creating the WordPress Database and User After you have managed to unzip the Wordpress files, you will find them in a directory called Wordpress within the home directory. Subsequently, you need to create a new MySQL directory for Wordpress. For that, you need to log into the MySQL Shell using the following command: mysql -u root -p You must login here through your MySQL root password, and further create the following: 2 / 5
  • 3. WebSetNet Webmaster Blog http://websetnet.com 1. A Wordpress Database 2. A User in the created database Subsequently, you would be required to assign new password. Here, it is important to remember that the whole lot of MySQL commands must certainly end with a semi-colon (;) First of all, you need to create the database, which has been named as WordPress1 for the purpose of this tutorial, though users are free to name the actual database as per their liking. Please use the following command to create the database: CREATE DATABASE wordpress1; Query OK, 1 row affected (0.00 sec) Next, you are required to create the new user. You may replace the database, name, and password values given below with values as per your preference: CREATE USER wordpressuser1@localhost; Query OK, 0 rows affected (0.00 sec) Once the user has been created, you need to set the password for the new user by using the following command: SET PASSWORD FOR wordpressuser1@localhost= PASSWORD("password123"); Query OK, 0 rows affected (0.00 sec) You must round up this step by granting all privileges to the newly created user. Please note that if you miss this step, you would not be able to start the Wordpress installer. Please use the following command to do the same: GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser1@localhost IDENTIFIED BY 'password123'; Query OK, 0 rows affected (0.00 sec) Subsequently, you need to refresh MySQL using the following command: FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) Once done with the above steps, its now time to exit out of the MySQL shell by giving the 3 / 5
  • 4. WebSetNet Webmaster Blog http://websetnet.com following command: exit You have now successfully exited out of the MySQL shell, and it is now time to move on to Step 3. 1.3.3 Step Three - Setting up the Configuration of WordPress First you need to copy the sample Wordpress configuration file, which is located in the Wordpress directory, into an altogether new file which would need to be edited, thus creating a new and usable Wordpress config. Please use the following command to execute the same: cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.php Further, you need to open the wordpress configuration by keying in the following command: vi ~/wordpress/wp-config.php You need to search for the section containing the fields given below, and replace with precise details for your database name, username, and password: // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'wordpress1'); /** MySQL database1 username1 */ define('DB_USER', 'wordpressuser1'); /** MySQL database1 password123 */ define('DB_PASSWORD1', 'password123'); You need to save the changes made above before exiting. This brings you to the end of Step 3, and you can now graduate to step 4. 1.3.4 Step Four - Copying the Files The process of uploading Wordpress to the server is almost complete. The final step remains to transfer the unzipped WordPress files onto the website's root directory by using the following command : sudo cp -r ~/wordpress/* /var/www/html From this point onwards, WordPress shall have its own simple and user-friedly online installation form! Well done! However, the available form would require a specific PHP module for running. Do not lose sweat! If it has not yet been installed on your server, you may download php-gd by using the following command (yes! It is that simple!): sudo yum install php-gd 4 / 5
  • 5. WebSetNet Webmaster Blog http://websetnet.com You have now successfully downloaded the requisite PHP module, and you may run the form in an unperturbed manner. Last but not the least, you are required to restart Apache by using the following command: sudo service httpd restart This brings you to the end of Step 4,and you may now move on the the nest and final step in the process. 1.3.5 Step Five - Gear up for the Wordpress Online Installation Page! The above steps shall lead you to the Wordpress Online Installation Page iin a fuss free manner. All you need to do to access the page is add /wp-admin/install.php to your website's domain or IP address (for instance. sample.com/wp-admin/install.php), and complete the short online form with the requested details. Given below is a screenshot of how the form would look like: Now that is fairly simple! (JavaScript must be enabled in your browser to view the large image as an image overlay.) Powered by TCPDF (www.tcpdf.org) 5 / 5