Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to setup Eclipse 'workspace' for PHP web dev ?(with Apache, PHP, MySQL setup to c:\webdef\wwwroot\)
How to setup Eclipse 'workspace' for PHP web dev ? [message #756327] Sat, 12 November 2011 03:00 Go to next message
MyEmailList is currently offline MyEmailListFriend
Messages: 10
Registered: September 2010
Junior Member
First the Status:

- I have Apachee and MySQL and PHP installed and working in c:\webdev\wwwroot\
- I installed this months ago and then got off on another project... so it sat there till now...
- Now I have installed Eclipse on that PC and it is setup with 'workspace' at c:\workspace\
- I want to be able to use Eclipse to code PHP web pages...

Now My Questions:
- Should I tell Eclipse to use c:\webdev\wwwroot\ as the "work space" for PHP development?
- Or will this just create a 'Project Folder" with a bunch of project files in C:\webdev\wwwroot\ ???

I want to be able to save my PHP pages such that I can see them with my browser pointed at http://localhost

Thanks for any help on setting this up...
Re: How to setup Eclipse 'workspace' for PHP web dev ? [message #756433 is a reply to message #756327] Sun, 13 November 2011 10:26 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
> Now My Questions:
> - Should I tell Eclipse to use c:\webdev\wwwroot\ as the "work space"
> for PHP development?
> - Or will this just create a 'Project Folder" with a bunch of project
> files in C:\webdev\wwwroot\ ???
Yes, that will just create a 'Project Folder" with a bunch of project
files in C:\webdev\wwwroot\. However, you can add an external folder to
your project i.e. a folder which is not located under the workspace
directory. (Expand the 'Advanced' button in the New Folder Wizard)
Re: How to setup Eclipse 'workspace' for PHP web dev ? [message #757194 is a reply to message #756433] Thu, 17 November 2011 03:38 Go to previous messageGo to next message
MyEmailList is currently offline MyEmailListFriend
Messages: 10
Registered: September 2010
Junior Member
Follow-up question:
- I have my PHP Project created at c:\workspace\myProject
- But I want to store all PHP Source files outside the Eclipse Project at c:\webdev\wwwroot\
- because I have Apache Web Server running on my development machine and can test the PHP pages there
- I right clicked my project in Eclipse and then clicked New | Folder | Advanced...
- Then checked the option "Link to alternate location (Linked Folder) and made it c:\webdev\wwwroot\

BUT when I create a simple - echo "Hello World" file - in c:\webdev\wwwroot\
.. and then Click Run > Run As > PHP WebPage
.. I get... "Webpage cannot be found"
.. And I can see the path Eclipse attempted to open was http://localhost/MyPhpProject/wwwroot/Index.php
.. Instead of http://localhost/Index.php
.. And if I edit the path to http://localhost/Index.php... it works!
How can I get Eclipse to look in the correct Folder/Directory when I click Run > Run As > PHP Webpage
???
Thanks for any help.



Re: How to setup Eclipse 'workspace' for PHP web dev ? [message #757920 is a reply to message #757194] Thu, 17 November 2011 04:17 Go to previous message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
- Look around in Window > Preferences which lets you configure the url
pattern used by a new launch config
- Or this could be a bug in PDT. You should post this in PDT forum.

--
Deepak Azad
http://wiki.eclipse.org/JDT/FAQ
Previous Topic:How to show rcp plugin A as one of the menu item in rcp plugin B
Next Topic:Help Required
Goto Forum:
  


Current Time: Fri Apr 26 22:09:54 GMT 2024

Powered by FUDForum. Page generated in 0.08151 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top