• 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
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

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Command Prompt Commands : Alphabetical list of all commands in Windows 7

    Command Prompt Commands in Windows 7 provides the user access to 180+ command line commands. Here is a list of 200 Command Prompt Commands in Windows 7.

  • How to Install WordPress : Ubuntu 16.04, Nginx, PHP7-FPM

    Here is Step by Step Guide on How to Install WordPress on Ubuntu 16.04, Nginx, PHP7-FPM, memcached & Percona MySQL 5.7 on Cloud Server or VPS.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

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

  • Market Segmentation in BriefSeptember 20, 2023
  • What is Booting?September 18, 2023
  • What is ncurses?September 16, 2023
  • What is JTAG in Electronics?September 15, 2023
  • iPhone 15 Pro Max Vs Samsung Galaxy S22/S23 UltraSeptember 14, 2023
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