Install wordpress package:
$ sudo apt-get install wordpress
Enter in mysql prompt:
$ mysql -u root -p
Create a wordpress user:
mysql> grant all privileges on *.* to wordpress_user@localhost;
Set a password:
mysql> set password for wordpress_user@localhost = PASSWORD(‘yourpass’);
Create your database:
mysql> create database wordpress_mad;
Flush it:
mysql> flush privileges;
Add to /etc/apache2/apache2.conf :
# wordpress
Alias /blog /usr/share/wordpress
<Directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
</Directory>
Remove wp-config.php link:
# rm /usr/share/wordpress/wp-config.php
Move config sample to original wp-config:
# mv /usr/share/wordpress/wp-config-sample.php /usr/share/wordpress/wp-config.php
Edit /usr/share/wordpress/wp-config.php and replace database variables with these ones you created.
In your web-browser access:
http://127.0.0.1/blog
Just choose a name and go on!
I tryed to setup the wordpress from alot of people but could not get it. Maybe im expecting more work or programming to make it work. Your install was far more easy than the others and worked first time..
Thanks
Great job.
Hi Jim,
Thank you very much for your positive comments.
I am glad to hear it!
Best Regards,
Alan
Hi Thx very much,
this was the first helping documentation that make me work wordpress on Ubuntu in 15 Minutes
Thx.
Thank you very much. I followed the steps and successfully installed on Jaunty.
Again, thank you very much. Lots of incomplete tutorials out there, but this one is very nice. Appreciate it.
These instructions are excellent.
After I installed LAMP “sudo tasksel install lamp-server”, I followed your instructions and it worked really well.
My only issue was that my blog installed to http://127.0.1.1, and I realised this when I restarted Apache2.
Again, well done, there are are many sites out there that supposedly show you how to do this but this is the best and most succinct one I’ve seen.
Cheers
thanks man – this has given me something i’d not had up until now .. and for that you are to be thanked.
cheers
Unfortunately, it didn’t help me. 😦
I’ve followed every single step and I get “The connection was refused when attempting to contact 127.0.0.1.” when trying to connect to http://127.0.0.1/blog.
What could be the problem?
Hi ilene,
It is very strange. Please verify if your Apache is working correctly.
Best Regards,
Alan
Excellent tutorial .. I was able to setup wordpress on my ubunbtu 8.04 in 10 minutes…
Another satisfied customer – thank you very much!
One additional question – if I try to install a new theme, I need to supply a hostname. I tried “localhost”, 127.0.0.1, etc. but got a “failed to connect: message – is the installer assuming I already have a hosting provider available? I don’t, I am just running it locally for now. Maybe I just need ftp running locally?