Is there any easy way to install wordpress in Linux?

IMHopeful

Wicked Fire Elite Member
Mar 8, 2010
1,058
21
0
Canada
I jumped onboard as a new Linux user several months back and until recently had no use for a local wordpress install on my computer.

While the Windows install looked intimidating at first: It ended up being quite easy when all was said and done. I've spent a few hours trying to complete an install on Mint 10 and just don't have the knowledge needed to get the job done (I.e., Apache, Mysql, wordpress, creating desktop commands to make it all worth having, getting them to work together, etc.)\

Is there a dummy-proof method to do the install, or is it better to use a copy of windows for this?

I've searched and searched and all roads lead to complicated, unless I'm missing something.
 


the first problem with hosting wordpress on your local machine is that you'll be the only user.

a) if you shut off the PC, the site will go down
b) if you don't open up the firewall ports on your home connection, the site will never go "up" in the first place

but, if you still want to do this (for practice, or testing, or e.g. for creating a personal journal)
Code:
sudo apt-get install apache2 libapach2-mod-php5 php5-dev mysql-server mysql-client
mkdir -p ~/wordpress
cd ~/wordpress
wget http://wordpress.org/latest.tar.gz
tar xvf latest.tar.gz
mysql -uroot -p "create database wplocal"
# enter mysql root password now
mysql -uroot -p "grant all on wplocal.* to wplocaluser@'localhost' identified by 'wpl0c4lpasswd';"
# now update /etc/apache2/sites-enabled/000-default and change all "/var/www" to "/home/user/wordpress"
/etc/init.d/apache2 restart
 
  • Like
Reactions: IMHopeful
Thanks Uplinked. You da man for Linux questions!

Lol, I definitely just want it for testing...and more importantly for designing.

What you've laid for me looks exactly like the "easy way" I've been searching for. I can fight with the desktop shortcuts if everything ties together right. :D

I'll +rep you Uplinked, when I log in tomorrow.
 
Thanks for rep. Do the above, get it running, then come back here if you need further help with shortcuts, etc., I'll check in again tomorrow.
 
I jumped onboard as a new Linux user several months back and until recently had no use for a local wordpress install on my computer.

While the Windows install looked intimidating at first: It ended up being quite easy when all was said and done. I've spent a few hours trying to complete an install on Mint 10 and just don't have the knowledge needed to get the job done (I.e., Apache, Mysql, wordpress, creating desktop commands to make it all worth having, getting them to work together, etc.)\

Is there a dummy-proof method to do the install, or is it better to use a copy of windows for this?

I've searched and searched and all roads lead to complicated, unless I'm missing something.

YouTube - How to install WordPress 2.8.3 on Ubuntu 9.04 Linux XAMPP 1.7.1

This link guides you to install wordpress in Linux. I think it is helpful. Good Luck
 
Update:

Uplinked's code worked perfectly to get my wordpress install done.

I'll be using this information more than once. :D
 
The code worked awesome. The first time I tried it I came back with -- 'could not find package libapach2-mod-php5' error. I copied and pasted the code again and no error the second time.

Not sure what it was all about, but I have a local WP setup that is working great. The Ubuntu forums and blogs that are online made the install process seem much more complicated than the few lines of code in this thread.

*It was something Uplinked wrote that made me decide to use Linux. I still don't miss Photoshop all these months later! :D
 
The code worked awesome. The first time I tried it I came back with -- 'could not find package libapach2-mod-php5' error. I copied and pasted the code again and no error the second time.

Not sure what it was all about, but I have a local WP setup that is working great. The Ubuntu forums and blogs that are online made the install process seem much more complicated than the few lines of code in this thread.

*It was something Uplinked wrote that made me decide to use Linux. I still don't miss Photoshop all these months later! :D
Ah, not sure why it ever worked for you the second time, but there seems to be a typo in my original code -- "libapach2-mod-php5" is missing an e, shouid be "libapache2-mod-php5"; the rest will work correctly if you add the vowel.

Glad you're liking it buddy :) It's been over 2 years for me on nothing but open source software; Honestly I do miss photoshop, but you know what? I'm doing alright without it.
 
Ah...apache!

The wordpress files all copied fine. Lol, it was such a relief to see all the wordpress files appear in my home folder, that I didn't take it any further until now (first time actually going to use it).