WordPress 4.1.1 installation on Ubuntu 14.04: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
add the instruction to set up the database
→‎Set up the database: finalize the instruction
Line 45: Line 45:


mysql> create database wp_michael;
mysql> create database wp_michael;
Query OK, 1 row affected (0.02 sec)</pre>
Query OK, 1 row affected (0.02 sec)
 
mysql> grant all on wp_michael.* to 'webuser'@'localhost' identified by 'pw1234';</pre>
Query OK, 0 rows affected (0.00 sec)
 
mysql> exit
Bye
</div>
</div>

Revision as of 13:25, 7 March 2015

  • Tested on Ubuntu 14.04.2 LTS, Apache/2.4.9, PHP 5.5.15RC1, git 2.0.2, MySQL 5.5.41-0ubuntu0.14.04.1 / easy /

There is the Famous 5-Minute Install instruction so these are just my personal notes if I have to install other instances on a similar environment.

Unpacking the files

WordPress devs have decided on, what I consider as outdated, SVN, however they have been kind to put up a GitHub repo. This makes it easier to pull or merge latest updates even though the update is supposed to be much simpler.

mhan@brahms: /srv/www/blog $ git clone https://github.com/WordPress/WordPress.git .
Cloning into '.'...
remote: Counting objects: 196601, done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 196601 (delta 28), reused 0 (delta 0), pack-reused 196558
Receiving objects: 100% (196601/196601), 116.49 MiB | 9.94 MiB/s, done.
Resolving deltas: 100% (154751/154751), done.
Checking connectivity... done.
Checking out files: 100% (1424/1424), done.

Set up the database

I'm connecting to the local database.

mhan@brahms: /srv/www/blog $ mysql -uroot -p

Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9234
Server version: 5.5.41-0ubuntu0.14.04.1 (Ubuntu)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database wp_michael;
Query OK, 1 row affected (0.02 sec)

mysql> grant all on wp_michael.* to 'webuser'@'localhost' identified by 'pw1234';

Query OK, 0 rows affected (0.00 sec)

mysql> exit Bye