Sunday, June 14, 2009

wordpress 1

installing wordpress in 5 minutes.

monday 18:38 PM

  1. Download and unzip the WordPress package, if you haven't already. (actually I've already done this - but it didn't take long! it was only 2 megabytes)
  2. Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
>mysql -uroot -p

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 44
Server version: 5.0.51a-3ubuntu5.4 (Ubuntu)

mysql> create database musicarc;
mysql> connect musicarc
Connection id: 47
Current database: musicarc

mysql> grant all on musicarc to musicarcuser;
Query OK, 0 rows affected (0.01 sec)

it took a bit of fluffing around to figure that out.
monday 19:08

3. Rename the wp-config-sample.php file to wp-config.php.
4. Open wp-config.php in your favorite text editor and fill in your database details as explained in Editing wp-config.php to generate and use your secret key password.

right. easy...

Place the WordPress files in the desired location on your web server:
  • If you want to integrate WordPress into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.
then I forget about the instructions and race ahead and browse to localhost/wordpress/

and get "Your PHP installation appears to be missing the MySQL extension which is required by WordPress."

monday 19:15

I put this down for several hours while a makerspace meeting conviens.
you'll be hearing alot more aout this later.

I pick it back up at about

monday 22:30 ish

then i see
6. Run the WordPress installation script by accessing wp-admin/install.php in your favorite web browser.
  • If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php
ah... same error.

googled the error, and found something refuring to php.ini which i couldn't find, so I searched for the error + ubuntu. was recomended
sudo apt-get install php5-mysql
then restart server
sudo apachectrl restart
now I have an informative looking error message nicely formatted in the browser, with even friendly sounding suggestions as to what might be the problem!

monday 22:41

something about the user not being able to connect to the database. I think it must be something wrong with my grant command. I changed the user to the root mysql user anyway... I promise I'll fix it later.

thats gotten past that error and yay! it worked.

monday 23:08

it's only taken 1 hours.

alright, see you tomorrow.

No comments:

Post a Comment