• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Install WordPress on Ubuntu or Debian PC Guide

By Abhishek Ghosh October 15, 2012 7:11 pm Updated on October 15, 2012

Install WordPress on Ubuntu or Debian PC Guide

Advertisement

Install WordPress on Ubuntu or Debian PC is actually very easy. Its just running some commands from Terminal and here is full guide with Screen shots to help. Basically we need a LAMP setup (Linux – Apache – MySQL – PHP). So basic need is to install Apache, MySQL and PHP. The commands are almost same for Ubuntu and Debian, although Debian has some preconfigured packages. Here is the full guide to Install WordPress on Ubuntu or Debian PC.

 

Install WordPress on Ubuntu or Debian PC Guide

 

The first thing you should know to Install WordPress on Ubuntu or Debian PC is – if you have a Static IP, your www folder and WordPress is actually accessible by default from Internet. This is great if you want to use your Ubuntu 12.04 PC as a server, but keep in mind the security issues. This actually works for Mac too, for both there is actually very less need to install other softwares like WAMP as we usually do for Windows PC.

 

Install WordPress on Ubuntu or Debian PC : Steps

 

Open your terminal and type sudo su to avoid typing sudo every time with commands. You basically will run commands to install WordPress on Ubuntu as root user inside terminal :

Advertisement

---

 

Install WordPress on Ubuntu or Debian PC

 

First install Apache2 by this command :

 

Vim
1
apt-get install apache2

 

Accept the installation prompt and after completion of installation of Apache2, you will be able to open your static IP on browser :

 

Install WordPress on Ubuntu

 

And run these commands one after one :

 

Vim
1
apt-get install mysql-server-5.5

 

You will get a password setting GUI prompt, fill it. Then :

Vim
1
mysql_install_db

 

Please follow the screen commands, you need to cd to usr/bin/ and provide password. Read the on screen instructions carefully.  Now :

 

Vim
1
mysql_secure_installation

 

In both cases in above, adding sudo before the commands will give debug reports.

 

This command must have to be used with sudo :

 

Vim
1
sudo apt-get install php5

 

And install two packages for WordPress, this is the minimum need :

 

Vim
1
sudo apt-get install php5-mysql

 

and :

 

Vim
1
sudo apt-get install php5-gd

The rest is like installing WordPress on real server (in fact the full process). Change directory to www folder :

 

Vim
1
cd /var/www

 

Now wget WordPress :

 

Vim
1
wget http://wordpress.org/latest.tar.gz

 

Uncompress it :

 

Vim
1
tar -xzvf latest.tar.gz

 

As it your local computer, you can go to var > www to see the fact that WordPress is unpacked under wordpress folder. You need to move to move them to root (if you want)  by command or copy paste on GUI. Basically you need to create a database. Before going to that, Edit your Apache :

 

Vim
1
sudo vi /etc/apache2/apache2.conf

 

And add this line at the end :

 

Vim
1
AddType application/x-httpd-php .html

 

Restart Apache :

1
 

Vim
1
sudo /etc/init.d/apache2 restart

 

It is painful for the most to use the MySQL to add database from command prompt. Actually we will follow Install WordPress on Rackspace Cloud Server guide if you want from command prompt. Else install PHpMydmin if you want a GUI.

 

Vim
1
mysql -u root -p

 

Vim
1
create database wordpress;

1
 

Vim
1
create user ˜wordpress™@'localhost™ identified by ˜password™;

1
 

Vim
1
grant all privileges on ˜.™ to ˜wordpress™@'localhost™ with grant options;

Change the red letters and words to your own. Installing WorPress itself is easy. Point your browser to :

 

Vim
1
http://localhost/wp-admin/install.php

 

or

 

Vim
1
http://your-ip/wp-admin/install.php

 

and follow the on browser guide to complete installation.

Tagged With Install WordPress Locally on Ubuntu Linux with LAMP

This Article Has Been Shared 247 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Install WordPress on Ubuntu or Debian PC Guide

  • Self Hosted WordPress on Cloud Server for Dummies

    Self Hosted WordPress is itself a scary phrase to a non-tech person and add Cloud Server on it. Here is Very Easy Guide to under Self Hosted WordPress.

  • Keyless Door Unlocking Mobile Cloud Based Apps : Gaining More Interest

    Keyless Door Unlocking Mobile Cloud Based Apps like Lockitron, ShareKey are growing interest from both the developers and the users. Let us have a deeper look.

  • Linux : Basics About Unix-like OS

    Linux referred to the usually free, unix-like Operating systems based on the Linux kernel and is GNU GPL based software. Licensing of the Linux kernel is under GNU GPL.

  • Syntax Highlighting : All About the Colorful Snippets

    Syntax Highlighting is a method for coloring certain words and characters in a text depending on their importance in in an piece of code or snippet.

  • Eight Tips for Secure Cloud

    Eight Tips for Secure Cloud are for are using the extremely useful services whose security are still regarded as uncertain. What users can do in this situation?

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • The Importance of Voice and Style in Essay Writing April 1, 2023
  • What Online Casinos Have No Deposit Bonus in Australia March 30, 2023
  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Install WordPress on Ubuntu or Debian PC Guide," in The Customize Windows, October 15, 2012, April 1, 2023, https://thecustomizewindows.com/2012/10/install-wordpress-on-ubuntu-or-debian-pc-guide/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT