New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

How to wordpress

A collection of tips on howto tweak your Bubba.
Post Reply
rewien
Posts: 127
Joined: 27 Sep 2008, 18:10

How to wordpress

Post by rewien »

How to Install WordPress On Debian Etch
Complete the following the steps:

1. # apt-get install wordpress
2. # mysql -u root
3. mysql> CREATE DATABASE wordpress
4. mysql> GRANT ALL PRIVILEGES ON *.* TO wordpress@localhost
IDENTIFIED BY ‘wordpresspassword’ WITH GRANT OPTION;
5. mysql> FLUSH PRIVILEGES;
6. #mv wp-config-sample.php wp-config.php
7. Edit wp-config.php to enter the correct setting:
// ** MySQL settings ** //
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'wordpresspassword');
define('DB_HOST', 'localhost');

8. Add to /etc/apache2/sites-available/default:
Alias /blog "/usr/share/wordpress/"
<Directory "/usr/share/wordpress/">
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
</Directory>
9. #/etc/init.d/apache2 restart
10. Goto: http://localhost/blog/wp-admin/install.php
11. Follow the instruction to create a login
12. Use generated login to log in and start blogging.


see also: http://forum.excito.net/viewtopic.php?t=1560
winzhangout
Posts: 58
Joined: 29 Mar 2009, 17:12

Post by winzhangout »

4. mysql> GRANT ALL PRIVILEGES ON *.* TO wordpress@localhost
IDENTIFIED BY ‘wordpresspassword’ WITH GRANT OPTION;

when i wrote that i get an syntax error on line 2? should i have the ''''''''''''' around wordpresspassword left? and do i need to create an wordpress user os something first?
zander
Posts: 141
Joined: 01 Jan 2009, 23:16
Location: las vegas, nv, usa
Contact:

Re: How to wordpress

Post by zander »

hi,

i followed the instructions here to install on b2...
http://linux.justinhartman.com/Wordpres ... _on_Debian

there were a few warnings i ignored from the command "a2ensite example.com".

then when i ran "/usr/share/doc/wordpress/examples/setup-mysql -n example example.com" i got permission denied.

the solution was to chmod 700 /usr/share/doc/wordpress/examples/setup-mysql then everything worked fine following the instructions on the link i gave.

Note: this operation installs wordpress 2.0.12. at the time of this writing wordpress 3.0 is expected soon but not out yet.

under 2.0.12 wordpress.deb one must install plugins and themes by hand and there are many plugins and themes that are not backwards compatible to 2.0.12.

i have also installed 2.9.2 on the b2 using the famous wordpress 5min instructions but i could not get custom permalinks to work properly. subsequently i fell back to the apt-get install wordpress method.

i do hope that the issue with custom permalinks will be fixed under wordpress 3.0
~alonzo...
zander
Posts: 141
Joined: 01 Jan 2009, 23:16
Location: las vegas, nv, usa
Contact:

Re: How to wordpress

Post by zander »

i have upgraded to wordpress 3.0 beta 1 from the apt-get 2.0.12 wordpress install as follows...

download and unpack wordpress 3.0 in /usr/share

delete the <wordpress3.0>.zip file
delete old database,
delete /etc/wordpress/config-<yoursite>.com.php
run /usr/share/doc/wordpress/examples/setup-mysql -n example example.com to setup the new database and config file.

proceed as with 5min install.

notes: i keep getting the notice "Notice: You're using the auto-generated password for your account. Would you like to change it to something you'll remember easier?
Yes, take me to my profile page | No thanks, do not remind me again" eventhough i tried both ways to get rid of it. i think it has something to do with write permissions in the wordpress tree. they are 644 at present.

i am contemplating running chmod -r 664 on /usr/share/wordpress unless advised otherwise.
~alonzo...
Post Reply