Fedora 14 PHP Development Setup from Scratch

I’m currently setting up a new Fedora 14 development box. For documentation purposes I’m writing down my way of setting it up and it’s probably worth for others. I was pretty confident with a Fedora 13 + Eclipse setup so far even on a very downscaled subnotebook, so I wanted to give Fedora 14 a try now.

Installing PHP and development tools

For PHP development basics, most needed is available right after install: PHP, PEAR, PECL and Source Control Management / Version Control Systems can be installed with yum. PHP Development tools are normally available from PEAR installable repositories. For anything installed with yum, you get updates via the system’s software updates thanks to the package maintainers.

# yum install php php-devel php-pear

There are even more packages, just take a look for php-*.

Now for some PHP tools, namely I install PHPUnit to run tests and generate code coverage reports. Therefore after the PHP setup, I add PHPUnit (and if not auotmatically installed with it, xedbug as well):

# yum install php-phpunit-PHPUnit

# yum install php-pecl-xdebug (not necessary normally)

Before switching over to Eclipse, I need some handy edtior, my choice is Geany:

# yum install geany geany-plugins-*

Then I prefer to have git at the commandline and while we’re at it, svn as well:

# yum install git tig

or for subversion;

# yum install subversion

Installing Eclipse and Extensions

So now over to Eclipse:

# yum install eclipse

This will install Eclipse Helios. Next thing to do is to start eclipse and then enter the tools of choice for the update sites or use the new in helios marketplace. But the marketplace is not available so far under Fedora 14, there is a package name so far only: eclipse-mpc.Until then, it’s possible to install the marketplace client via eclipse software management from the helios update site (general purpose). Some update site URLs for reference:

Helios: http://download.eclipse.org/releases/helios/
PTI Stable: http://www.phpsrc.org/eclipse/pti/
PTI Development: http://www.phpsrc.org/eclipse/pti-dev/
EGit: http://www.eclipse.org/egit/download/
Subeclipse: http://subclipse.tigris.org/update_1.6.x

The marketplace is somehow nice, you can search it for example for PHP and browse around a bit what’s offered. PTI for example is available to install from there. No need to enter any update sites for it manually any longer. PDT, the PHP Development Environment for Eclipse, is available from Helios. EGit for Git integration as well as Subeclipse for SVN integration is available from the marketplace. There are two downsides for the marketplace: You can only install one plugin / extension at a time and each time you start it, it needs to download the listing again, because this is not cached. For reference I added the update sites to the listing above as well.

Timely Estimations

The bare Fedora OS setup takes about 20 minutes (w/o reformatting/resizing partitions), another 20 minutes for the commandline tools and 20 minutes for eclipse. If you know what you want, you can automate this a bit more.

Hardware Issues

I’ll put them into a post on it’s own then. First thing I ran over is that USB 3.0 is disabled by default otherwise suspend / resume does not work. Next thing is that the display brightness can not be properly controlled, but I think this needs some fine tuning because of the underlying hardware I use. I’ll take care of that later. X11 does not support the input method fully by default as well, but that’s some hack for later.

Wheel Emulation (for a Trackpoint)

PTI – PHP Tools Integeration

This entry was posted in Uncategorized and tagged , , , , , , , , , , , , . Bookmark the permalink.

3 Responses to Fedora 14 PHP Development Setup from Scratch

  1. Thanks, exactly what I was looking for.

  2. Pingback: PHP PDT Eclipse Remote System 開發測試 | Y12 Studio

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.