NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Still confused about mappings *resolved*


Joined: 18 Oct 2006
Posts: 75
Reply with quote
I'm really sorry as I'm sure this will have everyone sighing and rolling their eyes... but I have read the detailed explanation on mapping posted by Dimitri and I still can't figure out why my mapping isn't working.

I am running the JSAS Joomla WAMP server on my Windows XP machine. This maps a temporary w: drive with directories cgi-bin, home, tmp, user, www. When Apache is running it somehow sees the w: as equivalent to the unix/linux root directory "\" so the apache httpd.conf file can be set up like this:
Code:

ServerRoot "/usr/local/apache2"
Listen 85
ServerName localhost:85
DocumentRoot "/www/"
...
<Directory "/www/">
    Options Indexes Includes
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>


The PHP design I am working on is in w:\www\eTombolas and I am able to use the URL http://localhost:85/eTombolas/index.php to view the site.

I have my mapping set up like this:


When I navigate to the index.php file in PhpED and the click the debug button I get this



followed by popup


followed by this


It then places me in a copy of the server file which it says is unmapped to the local file



I have tried numerous variations but have totally failed to get the host and client files to map successfully.

Any help would be most appreciated.

Nick.
View user's profileFind all posts by nickweaversSend private messageVisit poster's websiteYahoo Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
General rule is per forllowing:
THE_URL/filename should be pointing to the same physical file as THE_REMOTE_PATH/filename
in you case http://localhost:85/eTombolas/ is the project's root url and therefore http://localhost:85/eTombolas/index.php
should be the same as /www/index.php
Moreover, whenever you work with localhost you have to have project root == remote root
and URL should be pointing to the same physical location.

In short
remote root = e:\www\eTombolas
project root = e:\www\eTombolas
URL = http://localhost:85/eTombolas/

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Oct 2006
Posts: 75
Reply with quote
Thanks Dimitri

I was confusing the Apache ducoment root with your server root.

It now seems to be working fine.
View user's profileFind all posts by nickweaversSend private messageVisit poster's websiteYahoo Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Smile probably you adapted your apache configuration from unix docs. Under Windows we don't use
ServerRoot "/usr/local/apache2" or DocumentRoot "/www/"
it would work better if you have for example ServerRoot "c:/the directory/apache2" or DocumentRoot "e:/www/"

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Still confused about mappings *resolved*
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic