Mapping with wampserver and pear includes |
Site Admin
|
If I understand you correctly, you need http://localhost/ site to work with directory tree starting with C:\wamp\www\Discovery\www and have project root one level upper. In this case project properties must be per following:
Project root directory -> C:\wamp\www\Discovery Remote root directory -> C:\wamp\www\Discovery Root URL should be empty then add one additional mapping entry on the Mappings tab and set it per following: Local directory -> C:\wamp\www\Discovery\www Remote directory -> C:\wamp\www\Discovery\www Root URL -> http://localhost/ Don't forget to set Web root directory in the web server settings to point to C:\wamp\www\Discovery\www If you need multiple sites, I'd recommend you to add as many host names as you wish to C:\Windows\system32\drivers\etc\hosts like below: 127.0.0.1 localhost host1 host2 host3 then add virtual hosts to apache configuration and access hosts by their names (update URLs in the mapping): http://host1/ http://host2/ http://host3/ |
||||||||||||
|
|
Thanks for your detailed reply.
I made all the changes you specified, but when i go to run the project now, i get an error message:
So let me just re-iterate my updated project properties:
If i got this right, then under tools->settings->tools->srv web server, i added an entry under Server Mappings, so it now has 1 entry that reads:
Is there a parameter missing, or which one have i filled out incorrectly? Thanks. |
||||||||||||||||
|
Site Admin
|
this mapping entry "means" that Web server (whatever behind http://localhost) serves c:\wamp\www\Discovery\www as document root. Please check if it is set to this value in the web server configuration. If for example you run Apache, it's httpd.conf to look at.
What default browser is in your system? If it is netscape navigator or opera, you have to use embedded browser only. Just uncheck "run in external browser" checkbox. |
||||||||||||||||
|
|
Thanks for your reply.
In my http.conf file, my server root is c:/wamp/apache, and the document root is c:/wamp/www. I have no virtual hosts defined, which i think is causing the problem, and am not sure how to proceed: do i add a new entry (<VirutalHost:*80></VirtualHost>)? I found this at the bottom of the file:
Do i need to create one of these for each project i have, filling out the appropriate document root for each one? My C:\Windows\system32\drivers\etc\hosts file has a single line: 127.0.0.1 localhost Discovery As for the error, IE is my default browser. When i uncheck the "run in external browser" box, then run the project, a new tab appears within the editor but its a 404 (page can't be displayed). But this has only happened since i changed the project properties to the ones stated in the 2nd post: so i think its safe to assume its not so much an error but more where i've haven't configured the project properly. Will these new settings also solve the problem with the PEAR include path? Thanks. |
||||||||||||||
|
Site Admin
|
IMHO it's a very convenient way.
so there are two names associated with 127.0.0.1 - they are localhost and Discovery. Feel free to add more
Check web server logs (both access.log and error.log) to see what URL was requested and why it returned 404 (file not found) Probably you did not put the file in the document root.
No. These settings will let you work with multiple projects under the same physical web server. Pear's include should be added to the projects mapping table. If for example path to pear is c:\mydir\pear, just add the following mapping line: local path->c:\mydir\pear remote path->c:\mydir\pear and you'll be all set. |
||||||||||||||||||||
|
|
Great, i've got it configured just how i want it. The 404 was due to misconfiguration of the document root. I'd never known about virtual hosts before, and if you don't mind, i'd like to add a url to a very simple tutorial to virtual hosts for anyone in a similar pickle as me: www.apptools.com/phptools/virtualhost (feel free to delete the link otherwise). As far as the pear problem goes, i'd added the path to the includes tab, but wasn't getting the auto-complete. All i had to do was add the pear path to the Code Insight Includes at the bottom of project properites . Now i have to give a compliment. I've tried several IDE's/ editors the past few weeks, and the top two seem to be this and zend. What seperates phpEd from the Zend IDE is the excellent level of support you get: detailed, full-explanations into the nature of your problem. The level of support you get is equal to the quality of the product: excellent Many thanks for your time. |
||||||||||||
|
Mapping with wampserver and pear includes |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by