SlideShare uma empresa Scribd logo
1 de 9
WordpressCoffee.org
• • ThispresentationwascreatedbyErickBarron •
How to install
Wordpress on
Ubuntu, Locally
Install LAMP
With Tasksel
WewillfirstneedtoinstalltheLAMP stack,whichwill
serveas thefoundationforWordpress.Thiswillinclude
Linux,Apache,MySqlandPHP. Wewillbeinstallinga
developertoolknownas ‘tasksel. Thenusetaskselto
installthelamp-server
Warning:‘tasksel’isapowerfultoolandcanoverwrite
allofyourUbuntudesktopsettings,somakesuretouse
itcarefully
1
2
WordpressCoffee.org
• • ThispresentationwascreatedbyErickBarron •
RunDown
We first open terminal and install the ‘tasksel’ tool using ‘sudo’ for elevated privileges. Then we
can use ‘tasksel’ to install the lamp-server. Finally, we should choose a mysql password, since
it’s a local installation you can choose something simple like ‘root’. One optional step you can
do to check if your installation went correctly is to check for the ‘PHP’ version. We can check it
using ‘php -v’ in the terminal, you should see version 5.3 as of this presentation.
$sudoapt-get–yinstalltasksel
$sudotaskselinstall lamp-server
Shell Commands &
MySQL Password
3 EnterMySQLMasterPassword
Change Ownership
and Permissions
OncetheLAMPserverinstallationisdone,youwillhavea
newlycreateddirectoryunder
$cd/var/www
Theproblemisthatbydefaultwedon’thave
Ownershipandpermissiontowritetothisdirectory.Sowe
mustusethe‘chown’commandtochangeownership,and
the‘chmod’commandtochangepermissions.
Note:Iwillassumeyou’reinthe
$cd /var
directory
1
2
WordpressCoffee.org
• • ThispresentationwascreatedbyErickBarron •
RunDown
We needed to change ownership recursively to our www directory in order to allow access.
Make sure you put your own user:group name and not the actual words. We also need read
and write capabilities for our user, but not for any ordinary individual, this is why we used ‘755’
instead of ‘777’. Using ‘777’ is a security concert, so you should usually avoid it.
$sudochown–Ruser:groupwww
$sudochmod 755www
Shell Commands
Download and
Unzip Wordpress
Youshouldnowheadovertowordpress.orgwebsite
anddownloadthelatestversion.Iwilldownloadthezip,
butyou’refreetodownloadwhicheverformatyou
prefer.
Wewillnowmoveitintoournewlyavailable‘www’
folder.Thisiswherewewillbeabletoputallofour
Wordpresswebsitesinthefuture,as wellanyother
‘PHP’script.
1
2
WordpressCoffee.org
• • ThispresentationwascreatedbyErickBarron •
RunDown
This is just a very simple zip download, go to the website and click on the big blue button that
says ‘Download’. Change directory to ‘Downloads’ and unzip the newly located wordpress zip
file. Make sure that you change the ‘X.X’ with your appropriate version number, in my case it
was ‘3.9’ as of the time of this presentation. Lastly, we will head over to our new wordpress
directory found in our ‘www’ folder.
$cd~/Downloads
$unzipwordpress-X.X.zip–d
/var/www
Shell Commands
3 $cd/var/www/wordpress
MySQL
Database Setup
Asyoucan imagine,Wordpressneedstostorealotof
informationlikeimages andposts,italsocreatespages
dynamicallyamong otherthings.So weneedtocreatea
newdatabaseuser,sethispasswordandgivehimfull
privileges.
Solet’sheadovertoterminalandlogintotheMySQL
withthepasswordwecreatedduringourinitiallamp-
serverinstallation
1
2
WordpressCoffee.org
• • ThispresentationwascreatedbyErickBarron •
RunDown
In order to create any databases, we must first login to mysql with the password we had
originally created from the ‘tasksel’ lamp-server install. We have to create a new database that
you’re free to name whatever you want, just make sure you use a proper name like
‘wordpressdb’ and not the actual ‘dbname’. Lastly, it’s a good idea to create a new user that will
handle all of the Wordpress database functionality, so put your desired name under ‘user’.
$mysql –uroot–p
Enteryourpassword
CREATEDATABASEdbname;
Shell and MySQL Commands
3 CREATEUSERuser@localhost;
MySQL Database
Setup Continued
Afterwecreatethedatabaseandtheuser,it’s timeto
givethenewusera passwordandgrant himfull
privilegestotheWordpressDatabase.Wealsoneedto
doa bitofMySQLmaintenanceandexit.
1
2
WordpressCoffee.org
• • ThispresentationwascreatedbyErickBarron •
RunDown
Set a secure password for the new user where it says ‘password’, this is always a best practice.
Now grant all privileges to ‘user’ for all(*) the new Wordpress tables. Then we just need to ‘flush
privileges’ to restart the system and finally we ‘exit’.
SETPASSWORDFORuser@localhost=
PASSWORD(‘password’);
GRANTALLPRIVILEGESONdbname.*
TOuser@localhostIDENTIFIED
BY‘password’;
Shell and MySQL Commands
Continued
3 FLUSHPRIVILEGES
exit
Setting up
wp-config.php
Let’s headbacktoour
$cd/var/www/wordpress
directory,andwewillseeafilename wp-config-
sample.php,changenameto
$mvwp-config-sample.phpwp-config.php
Thisiswhereweneedtoputournewlycreateduser,
dbnameanddbpasswordwejustcreatedinourlast
slide.
Ifyou‘vim’’ or‘gedit’yourwayintothefile,aroundline
‘19’ youwillfindthecorrespondingfields.
1
2
WordpressCoffee.org
• • ThispresentationwascreatedbyErickBarron •
RunDown
Make sure you put your corresponding database name, the username or ‘user’ we created, and
the ‘password’ you had assigned the ‘user’. There will also be a field for ‘DB_HOST’, that
should be set to ‘localhost’ by default, leave that alone, since we’re going to be using our local
machine, this will work for us. After you have changed the fields, make sure you save quit.
‘database_name_here’
‘username_here’
Shell and MySQL Commands
Continued
3 ‘password_here’
Wordpress 5
Minute Install
Wenowcango throughthefamous5 minuteinstall.
Youshouldheadovertoyourfavoritebrowser, I
personal;yuseChromeorFirefoxbutyou’refreeto
chose.
Warning:Youwillnotbeabletochangeyourusername
after,sochoosewisely.
1
2
WordpressCoffee.org
• • ThispresentationwascreatedbyErickBarron •
RunDown
After you go to the URL, you will find a common form where you will be required to input basic
information. Things like ‘username’, ‘password’, ‘email’ and more. You can change everything
later on the control panel except for you ‘username’. One thing to note is that even though this
installation is local, you will have to the chance to retrieve your password fi you do forget, which
is something I had to do many times . You should see a Welcome page and you’re done.
Goonyourbrowserto
localhost/wordpress
Fill in all therequiredfields
Browser and Wordpres
Configuration
3 Loginwith yournew
‘username’andpassword
WordpressCoffee.org
• • ThispresentationwascreatedbyErickBarron •
Thanks for Watching
and head over to
WordpressCoffee.org

Mais conteúdo relacionado

Último

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

Último (20)

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

Destaque

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
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Destaque (20)

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...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

How to install Wordpress on Ubuntu LInux locally using LAMP stack

  • 1. WordpressCoffee.org • • ThispresentationwascreatedbyErickBarron • How to install Wordpress on Ubuntu, Locally
  • 2. Install LAMP With Tasksel WewillfirstneedtoinstalltheLAMP stack,whichwill serveas thefoundationforWordpress.Thiswillinclude Linux,Apache,MySqlandPHP. Wewillbeinstallinga developertoolknownas ‘tasksel. Thenusetaskselto installthelamp-server Warning:‘tasksel’isapowerfultoolandcanoverwrite allofyourUbuntudesktopsettings,somakesuretouse itcarefully 1 2 WordpressCoffee.org • • ThispresentationwascreatedbyErickBarron • RunDown We first open terminal and install the ‘tasksel’ tool using ‘sudo’ for elevated privileges. Then we can use ‘tasksel’ to install the lamp-server. Finally, we should choose a mysql password, since it’s a local installation you can choose something simple like ‘root’. One optional step you can do to check if your installation went correctly is to check for the ‘PHP’ version. We can check it using ‘php -v’ in the terminal, you should see version 5.3 as of this presentation. $sudoapt-get–yinstalltasksel $sudotaskselinstall lamp-server Shell Commands & MySQL Password 3 EnterMySQLMasterPassword
  • 3. Change Ownership and Permissions OncetheLAMPserverinstallationisdone,youwillhavea newlycreateddirectoryunder $cd/var/www Theproblemisthatbydefaultwedon’thave Ownershipandpermissiontowritetothisdirectory.Sowe mustusethe‘chown’commandtochangeownership,and the‘chmod’commandtochangepermissions. Note:Iwillassumeyou’reinthe $cd /var directory 1 2 WordpressCoffee.org • • ThispresentationwascreatedbyErickBarron • RunDown We needed to change ownership recursively to our www directory in order to allow access. Make sure you put your own user:group name and not the actual words. We also need read and write capabilities for our user, but not for any ordinary individual, this is why we used ‘755’ instead of ‘777’. Using ‘777’ is a security concert, so you should usually avoid it. $sudochown–Ruser:groupwww $sudochmod 755www Shell Commands
  • 4. Download and Unzip Wordpress Youshouldnowheadovertowordpress.orgwebsite anddownloadthelatestversion.Iwilldownloadthezip, butyou’refreetodownloadwhicheverformatyou prefer. Wewillnowmoveitintoournewlyavailable‘www’ folder.Thisiswherewewillbeabletoputallofour Wordpresswebsitesinthefuture,as wellanyother ‘PHP’script. 1 2 WordpressCoffee.org • • ThispresentationwascreatedbyErickBarron • RunDown This is just a very simple zip download, go to the website and click on the big blue button that says ‘Download’. Change directory to ‘Downloads’ and unzip the newly located wordpress zip file. Make sure that you change the ‘X.X’ with your appropriate version number, in my case it was ‘3.9’ as of the time of this presentation. Lastly, we will head over to our new wordpress directory found in our ‘www’ folder. $cd~/Downloads $unzipwordpress-X.X.zip–d /var/www Shell Commands 3 $cd/var/www/wordpress
  • 5. MySQL Database Setup Asyoucan imagine,Wordpressneedstostorealotof informationlikeimages andposts,italsocreatespages dynamicallyamong otherthings.So weneedtocreatea newdatabaseuser,sethispasswordandgivehimfull privileges. Solet’sheadovertoterminalandlogintotheMySQL withthepasswordwecreatedduringourinitiallamp- serverinstallation 1 2 WordpressCoffee.org • • ThispresentationwascreatedbyErickBarron • RunDown In order to create any databases, we must first login to mysql with the password we had originally created from the ‘tasksel’ lamp-server install. We have to create a new database that you’re free to name whatever you want, just make sure you use a proper name like ‘wordpressdb’ and not the actual ‘dbname’. Lastly, it’s a good idea to create a new user that will handle all of the Wordpress database functionality, so put your desired name under ‘user’. $mysql –uroot–p Enteryourpassword CREATEDATABASEdbname; Shell and MySQL Commands 3 CREATEUSERuser@localhost;
  • 6. MySQL Database Setup Continued Afterwecreatethedatabaseandtheuser,it’s timeto givethenewusera passwordandgrant himfull privilegestotheWordpressDatabase.Wealsoneedto doa bitofMySQLmaintenanceandexit. 1 2 WordpressCoffee.org • • ThispresentationwascreatedbyErickBarron • RunDown Set a secure password for the new user where it says ‘password’, this is always a best practice. Now grant all privileges to ‘user’ for all(*) the new Wordpress tables. Then we just need to ‘flush privileges’ to restart the system and finally we ‘exit’. SETPASSWORDFORuser@localhost= PASSWORD(‘password’); GRANTALLPRIVILEGESONdbname.* TOuser@localhostIDENTIFIED BY‘password’; Shell and MySQL Commands Continued 3 FLUSHPRIVILEGES exit
  • 7. Setting up wp-config.php Let’s headbacktoour $cd/var/www/wordpress directory,andwewillseeafilename wp-config- sample.php,changenameto $mvwp-config-sample.phpwp-config.php Thisiswhereweneedtoputournewlycreateduser, dbnameanddbpasswordwejustcreatedinourlast slide. Ifyou‘vim’’ or‘gedit’yourwayintothefile,aroundline ‘19’ youwillfindthecorrespondingfields. 1 2 WordpressCoffee.org • • ThispresentationwascreatedbyErickBarron • RunDown Make sure you put your corresponding database name, the username or ‘user’ we created, and the ‘password’ you had assigned the ‘user’. There will also be a field for ‘DB_HOST’, that should be set to ‘localhost’ by default, leave that alone, since we’re going to be using our local machine, this will work for us. After you have changed the fields, make sure you save quit. ‘database_name_here’ ‘username_here’ Shell and MySQL Commands Continued 3 ‘password_here’
  • 8. Wordpress 5 Minute Install Wenowcango throughthefamous5 minuteinstall. Youshouldheadovertoyourfavoritebrowser, I personal;yuseChromeorFirefoxbutyou’refreeto chose. Warning:Youwillnotbeabletochangeyourusername after,sochoosewisely. 1 2 WordpressCoffee.org • • ThispresentationwascreatedbyErickBarron • RunDown After you go to the URL, you will find a common form where you will be required to input basic information. Things like ‘username’, ‘password’, ‘email’ and more. You can change everything later on the control panel except for you ‘username’. One thing to note is that even though this installation is local, you will have to the chance to retrieve your password fi you do forget, which is something I had to do many times . You should see a Welcome page and you’re done. Goonyourbrowserto localhost/wordpress Fill in all therequiredfields Browser and Wordpres Configuration 3 Loginwith yournew ‘username’andpassword
  • 9. WordpressCoffee.org • • ThispresentationwascreatedbyErickBarron • Thanks for Watching and head over to WordpressCoffee.org

Notas do Editor

  1. READ PLEASE! Before you open this template be sure that you have installed these fonts: GeosansLight.ttf from: http://www.dafont.com/geo-sans-light.font New Cicle Semi.ttf from: http://www.dafont.com/new-cicle.font fontawesome-webfont.ttf from: http://fortawesome.github.io/Font-Awesome All fonts are free for use in commercial projects! If you have any problems with this presentation, please contact with me from this page: http://graphicriver.net/user/Bandidos
  2. When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  3. When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  4. When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  5. When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  6. When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  7. When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  8. When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  9. READ PLEASE! Before you open this template be sure that you have installed these fonts: GeosansLight.ttf from: http://www.dafont.com/geo-sans-light.font New Cicle Semi.ttf from: http://www.dafont.com/new-cicle.font fontawesome-webfont.ttf from: http://fortawesome.github.io/Font-Awesome All fonts are free for use in commercial projects! If you have any problems with this presentation, please contact with me from this page: http://graphicriver.net/user/Bandidos