• Like

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

How to install Wordpress on Ubuntu LInux locally using LAMP stack

  • 337 views
Uploaded on

I show how to install wordpress locally on Ubuntu linux distribution. You can use this setup with other linux distros including Fedora but you will have to use a different package manager. …

I show how to install wordpress locally on Ubuntu linux distribution. You can use this setup with other linux distros including Fedora but you will have to use a different package manager.

We will first need to install the (Linux, Apache, Mysql and PHP)LAMP stack using tasksel tool. We will then set up a mysql password in order to create databases down the line.
We install the LAMP stack using the command
sudo tasksel install lamp-server

Once that it done, make sure to grant yourself ownership permissions to
the www folder using chown command. Next download Wordpress zip file or tar from the website found here:
https://wordpress.org/download/

unzip it or untar it, make sure you then move it to the www directory. You will need to put it in this folder for Wordpress to function properly as it is the home of the web server(Apache). This is where you will put all your WP themes, free and premium ones. You need to create database tables as you need it for wordpress to have all it's functions. Make sure that you type in your particular username and passwords, or you can use mine as examples.

Wordpress installation in Linux Ubuntu is the hardest of all because it's not a simple install like WAMP or MAMP, Bitnami. You should then use the wp-config.php file and edit it the way I show on the video. Change the username to yours from mysql and the corresponding password.

Lastly you should be able to see your new wordpress installation on the localhost/wordpress url. Make sure that you pick the username you want as you won't be able to change it later, followed by your password. If you have any questions, make sure to leave a comment and subscribe to my channel.

http://wordpresscoffee.org/install-wo...

best wordpress plugins 2014
Wordpress free themes,
wordpress ecommerce
WP installation on linux
locally install wordpress,
Wamp installation of wordpress
LAMP installation of wordpress
install wordpress locally
how to install WP in Window 7, locally MAC OS Lion and LInux Ubuntu or Fedora,
LAMP wordpress Setup
how to setup wordpress on Ubuntu 2014.
best wordpress hosting
Ubuntu 12.04

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
337
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • 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.fontNew Cicle Semi.ttf from: http://www.dafont.com/new-cicle.fontfontawesome-webfont.ttf from: http://fortawesome.github.io/Font-AwesomeAll 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
  • When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  • When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  • When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  • When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  • When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  • When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  • When choice your image, you must sent it to back! ‘Right Click on Image’->’Send to Back’ ->’Send Back’
  • 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.fontNew Cicle Semi.ttf from: http://www.dafont.com/new-cicle.fontfontawesome-webfont.ttf from: http://fortawesome.github.io/Font-AwesomeAll 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

Transcript

  • 1. WordpressCoffee.org• • This presentation was created by •   How to install Wordpress on Ubuntu, Locally
  • 2. Install LAMP With Tasksel We will first need to install the LAMP stack, which will serve as the foundation for Wordpress. This will include Linux, Apache, MySql and PHP. We will be installing a developer tool known as ‘tasksel. Then use tasksel to install the lamp- server Warning: ‘tasksel’ is a powerful tool and can overwrite all of your Ubuntu desktop settings, so make sure to use it carefully  1 2 WordpressCoffee.org• • This presentation was created by •   Run Down  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. $ sudo apt-get –y install taskse $ sudo tasksel install lamp-se Shell Commands & MySQL Password 3 Enter MySQL Master Password 
  • 3. Change Ownership and Permissions Once the LAMP server installation is done, you will have a newly created directory under $ cd /var/www The problem is that by default we don’t have Ownership and permission to write to this directory. So we must use the ‘chown’ command to change ownership, and the ‘chmod’ command to change permissions. Note: I will assume you’re in the $ cd /var directory  1 2 WordpressCoffee.org• • This presentation was created by •   Run Down  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. $ sudo chown –R user:group ww $ sudo chmod 755 www Shell Commands
  • 4. Download and Unzip Wordpress You should now head over to wordpress.org website and download the latest version. I will download the zip, but you’re free to download which ever format you prefer. We will now move it into our newly available ‘www’ folder. This is where we will be able to put all of our Wordpress websites in the future, as well any other ‘PHP’ script.  1 2 WordpressCoffee.org• • This presentation was created by •   Run Down  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 $ unzip wordpress-X.X.zip –d /var/www Shell Commands 3 $ cd /var/www/wordpress 
  • 5. MySQL Database Setup As you can imagine, Wordpress needs to store a lot of information like images and posts, it also creates pages dynamically among other things. So we need to create a new database user, set his password and give him full privileges. So let’s head over to terminal and login to the MySQL with the password we created during our initial lamp-server installation  1 2 WordpressCoffee.org• • This presentation was created by •   Run Down  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 –u root –p Enter your password CREATE DATABASE dbname; Shell and MySQL Commands 3 CREATE USER user@localhost; 
  • 6. MySQL Database Setup Continued After we create the database and the user, it’s time to give the new user a password and grant him full privileges to the Wordpress Database. We also need to do a bit of MySQL maintenance and exit.  1 2 WordpressCoffee.org• • This presentation was created by •   Run Down  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’. SET PASSWORD FOR user@localh PASSWORD(‘password’); GRANT ALL PRIVILEGES ON dbname TO user@localhost IDENTIFIED BY ‘password’; Shell and MySQL Commands Continued 3 FLUSH PRIVILEGES exit 
  • 7. Setting up wp-config.php Let’s head back to our $ cd /var/www/wordpress directory, and we will see a file name wp-config- sample.php, change name to $ mv wp-config-sample.php wp- config.php This is where we need to put our newly created user, dbname and db password we just created in our last slide. If you ‘vim’’ or ‘gedit’ your way into the file, around line ‘19’ you will find the corresponding fields.  1 2 WordpressCoffee.org• • This presentation was created by •   Run Down  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 We now can go through the famous 5 minute install. You should head over to your favorite browser, I personal;y use Chrome or Firefox but you’re free to chose. Warning: You will not be able to change your username after, so choose wisely.  1 2 WordpressCoffee.org• • This presentation was created by •   Run Down  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. Go on your browser to localhost/wordpress Fill in all the required fields Browser and Wordpres Configuration 3 Login with your new ‘username’ and password 
  • 9. WordpressCoffee.org• • This presentation was created by •   Thanks for Watching and head over to WordpressCoffee.