Eclipse hints, tips, and random musings

Wayne Beaton’s blog about Eclipse.

PHPEclipse and XAMPP

At the Eclipse Foundation, we tend to eat our own dog food. Foundation employees use Eclipse itself to generate content for the website (I can’t speak for individual project teams, but I’m pretty sure that most of them do as well). In particular, we use PHPEclipse to create and edit most of the content (which makes pretty heavy use of PHP). I’ve just recently started using the 1.1.7 version which prereqs the web tools project. All-in-all, it’s pretty cool stuff.

One of the neater features of PHPEclipse is integration with XAMPP. XAMPP is a distribution of several open source products including Apache HTTP Server with PHP support and MySQL; it’s a one-click (more or less) install of a collection of key products for testing web applications. Essentially, you configure the Apache installation within XAMPP to have its DocumentRoot point at your workspace and Apache will serve up whatever you’ve got saved there. PHPEclipse provides a view with a browser that automatically updates whenever you save a PHP file you’re editing. It also works for HTML files. It’s not quite a WYSIWYG editor, but it’s the next best thing (you edit in HTML and the view shows you what it’s going to look like). You can even test database interaction by configuring MySQL.

PHPEclipse even provides some handy buttons in the toolbar to start and stop the XAMPP package with a single click.

There is an unfortunate security hole in setting this up. By configuring Apache to serve content from your Eclipse workspace, you are essentially making public anything you have loaded there. It might make sense to keep a separate workspace (or perhaps a separate directory with the web projects) for your web content. On the plus side, Apache is by default configured not to serve up directory listings so anybody who wants to peek at your workspace contents is not going to have a super easy time of it. I’ve been toying with sorting out how to prevent Apache from serving content to anybody but localhost; I’m pretty sure this is possible, but have never tried to make it happen.

Anyway, the combination of PHPEclipse, Web Tools, and XAMPP is pretty cool.

Posted September 25th, 2005 by Wayne Beaton in category: Other
You can skip to the end and leave a response. Pinging is currently not allowed.

14 Responses to “PHPEclipse and XAMPP”


  1. Dan Blackburn Says:

    “Blogs Get People Excited,” Media Anti-Censorship Handbook Warns
    “Blogs get people excited. Or else they disturb and worry them. Some people distrust them.
    Great information on your blog!

    Are you interested in make money from home ? If so, I have a make money from home site.

    Feel free to drop by and tell me what you think.


  2. Superbiji Says:

    I was using phpeclipse.

    but now I’m using xored php plugin..
    It is more robust and the important thing it is not bloated..


  3. Wayne Says:

    Cool. I’ll take a look. Thanks for the pointer.


  4. snapp_action Says:

    You should be able to change the <Directory> listing to allow only localhost:

    <Directory /www/mydirectory>
    Order deny,allow
    Deny from all
    Allow from localhost
    </Directory>


  5. Wayne Says:

    Thanks. I’ll try that.


  6. brokenmonkey Says:

    I like your blog a lot. Lots better than most I’ve seen! website design bathurst


  7. Create Websites on Auto Pilot Says:

    RSS sites on auto pilot…

    Great post - totally agree…


  8. Project Black Mask Review - Another Scam? Says:

    Project Black Mask Adsense…

    Project Black Mask review, looking behind the curtains…


  9. Lottery Winning Systems Says:

    winning lottery systems…

    Learn how to improve your chances of winning big on the Lottery…


  10. Rosie Godard Says:

    Merchants & Southern Bank, Money & Service Online…

    Thank you for your post!…


  11. Create websites on auto pilot with RSSEvolution Says:

    RSSEvolution deal…

    Learn how I churn out 100’s of optimized monetized websides each day with RSSEvolution …


  12. Free Aricles and reviews on everything by ESNAPP Says:

    Free ESNAPP Article Market - Help yourself…

    Free Aricles and reviews on everything couresy of ESNAPP…


  13. http://www.esnapp.co.uk/acne Says:

    Guaranteed Acne Cure…

    Don’t waste $100’s on useless creams, check us out for free advice…


  14. www.esnapp.co.uk/adsense Says:

    Adsense tips and tricks…

    Discover how Adsense can turn your blog into a cash machine…

Leave a Reply

You must be logged in using your Eclipse Bugzilla account to post a comment.

Recent Posts

Archives

Categories

Meta