|Help please - PDT Setup questions [message #895807]
||Mon, 16 July 2012 07:08
| domc Mising name
Registered: October 2011
I've looked at a lot of websites and tried to follow lots of tutorials but have some questions about properly setting up PDT/Eclipse.|
Note, as I've less that 25 messages this forum won't let me post messages with links in it so I've had to change all my http://' references below by adding a single quote after the second backslash. The actual ones don't have the single quote
My setup is as follows:
MAC with MAMP set up in Applications folder
Eclipse Juno (in Applications folder) with PDT 3.1 installed + remote system explorer installed (although I had the same problem with earlier versions of Ecliplse/PDT)
All of my php webpages are at the following path
A) Run configurations / paths / workspaces
I'm having a hard time understanding run configurations, and run paths.
My 'Default PHP Web Server' is correctly set up (I think) as http://'localhost:8888
And my workspace is set up at /Applications/MAMP/htdocs/Eclipse development/
So I set up a project called Trial and I try and run a file within it called test.php.
The dialog box comes up 'Run PHP Web Application' with the URL:
When I try and run this I get the error:
The requested URL was not found on this server.
Presumably this is because the path should be
http://'localhost:8888/htdocs/Eclipse development/Trial/....' etc.
So I go back to my 'Default PHP Web Server' on preferences which gives the option of adding a 'Local Web Root' whatever that is to my 'Default PHP Web Server' settings.
I try some different options for this e.g.
'Local Web Root' = /Applications/MAMP/htdocs/Eclipse development/ or
'Local Web Root' = /Applications/MAMP/htdocs/
but whatever these settings, it doesn't change the URL which is automatically generated as part of the run command and I continue to get the NOT FOUND message.
So I then go into run configurations where I have the option of deselecting the URL autogenerate option. Here the left hand side of the URL is fixed as
http://'localhost:8888/ but the right hand side is configurable from /Trial/test.php
After some trial and error I find that the intuitive solution (changing the right hand side to /htdocs/Eclipse development/Trial/test.php) doesn't work.
But changing the right hand side to /Eclipse development/Trial/test.php does work and the right file runs.
Why all this behaviour?
Why can't I change the default root position to the right one for all my files to work straight away without having to manually change the URL settings for each one?
And why is it that the one I've got to work seems to miss out the directory 'htdocs' entirely in setting up the path which actually does work?
I'm having a hard time figuring this out so any help would be much appreciated.
Powered by FUDForum
. Page generated in 0.02857 seconds