Skip to content

Phils Blog and Stuff

TELECOMS. VIRTUALIZATION. IT. CODING. and more…

Menu
  • Home
  • Resources
    • Subnet Mask Cheat Sheet
    • Easy Dmarc+Email
    • MX Tool Box
    • LOAD BALANCING & SRE
  • SHOP
  • SOLUTIONS
  • SERVICES
  • Contact Me
Menu

How to install WordPress on Ubuntu 12.04 LTS

Posted on 01/05/201208/03/2023 by Phil

The articles explains how to install WordPress on Ubuntu 12.04, to instructions are step by step and I use the latest version of WordPress using the .dpkg package from apt.

To start off with install install the Ubuntu WordPress package with:

apt-get install wordpress php5-gd

This should pull down and install everything you need to install WordPress on Ubuntu, the wp files are installed into the /var/share directory you need to link them and make sure the perms are set correctly.

Create a symlink from /var/share/wordpress to /var/www/wordpress

sudo ln -s /usr/share/wordpress /var/www/wordpress

Create the MySQL Databases for WordPress on Ubuntu:

sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost

**Note the -n wordpress should be replaced with the name of your database (unless you want to call it wordpress) and the domain should be changed to your real world domain e.g linuxmoz.com

Example:

sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n linuxmoz_db linuxmoz.com

Restart Apache:

service apache2 restart

Set the perms for WordPress or the install and autoupdates will not work (make sure you keep WordPress up to date or you will get hacked).

chown -R www-data /usr/share/wordpress

Point your browser at http://localhost/wordpress or http://yourdomain.com/wordpress and follow the on screen instructions.

After configuration you should be good to go, make sure you update WordPress after the installation as I suspect the package version will be out of date.

If you are using friendly URL’s then remember to enable mod_rewite on Ubuntu.

POSTS

  • Home Assistant. Add water meter with PHP+MQTT+YML.
  • Automating your home with Home Assistant. Initial install and config (Hyper-V).
  • The importance of setting up email security correctly.
  • Automate Debian installations with Seed, DHCP and Nginx.
  • A simple link shortener.. Fun little project…

WORD CLOUD

3CX 3CX Phone System Apache Asterisk Cacti CentOS CRM DHCP DNS Email Fail over Failover File System Firewall FreeBSD FreeNAS FXO IAX install IP IP PBX Linux M0n0wall Nottingham Open Source PBX PFSense PHP Router Server SIP snom SSH TrixBox ubuntu VLAN Voice VoIP VPN vyatta WAN Website WiFi yealink ZFS

© 2025 Phils Blog and Stuff | Powered by Superbs Personal Blog theme