• 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 837 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Top 10 Anti Hacking Software for Microsoft Windows January 22, 2021
  • What is Software Modernization? January 21, 2021
  • Cloud Computing : Cybersecurity Tips for Small Business Owners January 20, 2021
  • Arduino : Independently Blink Multiple LED January 18, 2021
  • What is a Loosely Coupled System? January 17, 2021

 

About This Article

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

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

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

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

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