SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

KĂźrzlich hochgeladen

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
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
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
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
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
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
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂşjo
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 

KĂźrzlich hochgeladen (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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?
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

Empfohlen

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
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceChristy Abraham Joy
 
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
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slidesAlireza Esmikhani
 
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
 

Empfohlen (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

Hinweis der Redaktion

  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