Posts Tagged ‘PHPEclipse’

How to: Install WordPress, xampp for Linux, PHPEclipse and Eclipse

Tuesday, March 10th, 2009

It’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!!

PHPEclipse on Eclipse Ganymede for Linux

Tuesday, February 3rd, 2009

I was finally able to install PHPEclipse on Eclipse Ganymede. At first I was using the automatic install which is via an update site. But I wanted to make my life complicated. Therefore, I opted to do it manually, which I think is more reliable than the other.

After downloading PHPEclipse from www.phpeclipse.com, extract where Eclipse’s files are located

e.g /home/user/Eclipse/*

Relaunch Eclipse and that’s it.

Anyway, update site for Eclipse 3.3 and 3.4 is http://update.phpeclipse.net/update/stable/1.2.x

for Eclipse 3.2: http://update.phpeclipse.net/update/stable/1.1.x