How to: Install WordPress, xampp for Linux, PHPEclipse and Eclipse
Tuesday, March 10th, 2009It’s rather difficult to find a good tutorial when installing the aforementioned web dev tools on a Linux System. More over, when one is using Fedora as base system. Although I’m not really sure with the Fedora-thing yet. I just find it mind boggling why it took me 2 weeks to solve my own problem and so glad that I did on my own.
Now, let’s continue with the procedures. Most of you might be aware of the 3-easy steps with installing WordPress, but of course, it’s not just what I needed to achieve my goal. Therefore, I decided to use Eclipse 3.4 Ganymede with PHPEclipse Plugin and xampp for Linux.
First, download Eclipse for Linux and extract anywhere you want to.
Second, download PHPEclipse for Linux (as well), extract, and copy plugins folder’s contents in to Eclipse’s plugins.
Third, grab a copy of xampp for linux and extract it in /opt.
root@localhost ~]# tar xvzf xampp*.tar.gz /opt
Fourth, since /opt directory is a hands-off area for ordinary users, we’ll make it usable for our account by:
root@localhost opt]# chmod -R 775 lampp
Fifth, open Eclipse and choose workspace as: /opt/lampp/htdocs
Sixth, create a php project in Eclipse
Seventh, download the latest copy of wordpress and extract anywhere you want to (yeah, anywhere).
Eighth, to copy wordpress files in to your php project, just select all and drag and drop in your php project in Eclipse (you can actually extract wordpress files first /opt/lampp/htdocs and refresh your php project instead).
Ninth, start lampp
root@localhost opt]# ./lampp start
Tenth, check if xampp installation is working properly by going to http://localhost on your browser
Eleventh, let’s create our wordpress database and user by going to: http://localhost/phpmyadmin and grant all privileges to the newly created account.
Twelfth, edit file wp-config-sample.php in Eclipse and rename to wp-config.php. Change database user accounts based on what we previously created in phpmyadmin.
Thirteenth, let’s install wordpress by: http://localhost/myphpproject/wp-config.php and create our local wordpress blog.
Fourteenth, we’re done!!
Whew! That’s basically it. You might find it lazy for using /opt/lampp/htdocs as workspace but I’ve been thru too much on trying other things and this is the easiest way by far. Hope you find it useful like I do. Happy blogging!!




