NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
different document root


Joined: 12 Jan 2005
Posts: 9
Reply with quote
Hi!

I have question about mapping paths in some project

my dir tree is someting like this.

Code:
/myproject
  root/
     admin/
     img/
     etc/
  lib/
  templates/
  compiled/
  var/
  tmp/


I already made some mappings, but still have problems running scripts.

My real document root is /myproject/root/ (I set up apache for this). I saw this on http://myserver. Everything works, but problem is with phpED when I want to run file in /myproject/root/index.php it runs http://myserver/root/index.php.

Every mapping I try does not solve this. Maybe I'm missing something, so please for help.
View user's profileFind all posts by sekundekSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Please tell me more details about your configuration.
Do you run remote Apache or a local one?
Did you set run mode = 3rd part http mode in the project settings?
What is htdocs directory for Apache?
In what directory are the local copy of the files located?
What URL corresponds to the project root directory?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 12 Jan 2005
Posts: 9
Reply with quote
Quote:
Do you run remote Apache or a local one?

Remote Apache with samba server and yer I dis set 3rd part HTTP in my project settings.

Quote:
What is htdocs directory for Apache?

/myproject/root/

Quote:
In what directory are the local copy of the files located?

local files are located on samba share, let say
X:\myproject which is /myproject on unix server

Quote:
What URL corresponds to the project root directory?

http://myserver wich works correctly in browser if I type this in address, but phpED open file in /myproject/root/index.php as http://myserver/root/index.php. So this /root/ is problem, because my project root is one level back than htdoc
View user's profileFind all posts by sekundekSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Setup the project settings as shown below:

remote root
/myproject

project root
X:\myproject

url
leave blank

add one line on the Mappings tab
remote path
/myproject/root

local path
X:\myproject\root

url
http://myserver/
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 12 Jan 2005
Posts: 9
Reply with quote
Thanks it works now. It seams that I have typo in my mapping and forgot to add "root". Just one quiestion, in mapping tab bolded line is the one in properties tab under group box mapping?

regards
View user's profileFind all posts by sekundekSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
yep, the bolded line is the default mapping entry taken from the settings on the main project tab.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
different document root
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