FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » Apache on local pc -> DocumentRoot on a remote nas
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Apache on local pc -> DocumentRoot on a remote nas [message #31979] Mon, 29 May 2006 07:57 Go to next message
Grab is currently offline  Grab   Italy
Messages: 4
Registered: May 2006
Location: Fossalta di Piave - Venic...
Karma: 0
Junior Member
Hi,
i have a problem i can't get out.

I have installed apache mysql and php on my pc with windows xp professional (I used XAMPP).

In my office there are few pc so i have to set the Document root of apache running on my pc to a remote nas with os Linux.

I set the folder on the nas as "net unit" and I gave it the letter "N" so now in the resource i can see C: D: and N:.

Than I set in the httpd.conf the new DocumentRoot

...
DocumentRoot "N:\works"
...

...
<Directory "N:\works">
...

The apache run on my pc with a user that is present also in the nas.
The folder on the nas has all permission.

The problem is that Apache crash in libra-1.dll.
Obviously if I set the Document Root on any folder of C: or D: (local disks) it works correctly.

Someone could help me?

Bye
Re: Apache on local pc -> DocumentRoot on a remote nas [message #31981 is a reply to message #31979] Mon, 29 May 2006 14:50 Go to previous messageGo to next message
kenjb is currently offline  kenjb   United States
Messages: 67
Registered: September 2004
Karma: 0
Member
What happens when you make a shortcut on local to your mapped N:\, then set your httpd.conf to your shortcut on c:\? I'd probably just test using a shortcut to a simple index.html to start with.

So if it works what you wind up with is everything still on N:\ but local shortcuts to every file needed to run the site. Or does this defeat the purpose of having it on N:\?

OR if you're trying to serve from N:\ then setup everything local and symlink on the N:\ to all local files.

Just things I'd try myself.


kenjb
Re: Apache on local pc -> DocumentRoot on a remote nas [message #31983 is a reply to message #31979] Mon, 29 May 2006 15:41 Go to previous messageGo to next message
Grab is currently offline  Grab   Italy
Messages: 4
Registered: May 2006
Location: Fossalta di Piave - Venic...
Karma: 0
Junior Member
Sorry i'm italian and i didn't understand what you are tryng to explanate.

I would like to serve pages on the mapped disk (N:) using apache that run on my pc so my collegues can see the result putting their file on N: and connecting to apache on my pc.

What a symlink is? Razz
Re: Apache on local pc -> DocumentRoot on a remote nas [message #31985 is a reply to message #31981] Mon, 29 May 2006 16:25 Go to previous messageGo to next message
kenjb is currently offline  kenjb   United States
Messages: 67
Registered: September 2004
Karma: 0
Member
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#

DocumentRoot "c:\doc_root"

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

Alias /works/ n:\works\

<Directory n:\works>
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>


http://localhost/works/ OR http://192.168.1.125/works/

I speak config. Wink


kenjb
Re: Apache on local pc -> DocumentRoot on a remote nas [message #31999 is a reply to message #31979] Tue, 30 May 2006 07:48 Go to previous messageGo to next message
Grab is currently offline  Grab   Italy
Messages: 4
Registered: May 2006
Location: Fossalta di Piave - Venic...
Karma: 0
Junior Member
Tipo evento: Errore
Origine evento: Apache Service
Categoria evento: Nessuno
ID evento: 3299
Data: 30/05/2006
Ora: 9.28.05
Utente: N/D
Computer: PC-13
Descrizione:
The Apache service named reported the following error:
>>> <Directory "n:\\works"> path is invalid. .

Per ulteriori informazioni, consultare la Guida in linea e supporto tecnico all'indirizzo http://go.microsoft.com/fwlink/events.asp.



Sad Sad Sad Sad Sad Sad Sad Sad
Re: Apache on local pc -> DocumentRoot on a remote nas [message #32053 is a reply to message #31999] Sun, 04 June 2006 17:12 Go to previous messageGo to next message
kenjb is currently offline  kenjb   United States
Messages: 67
Registered: September 2004
Karma: 0
Member
Is n:\ mapped to your local PC-13

see:
http://support.microsoft.com/?scid=kb%3Bit%3B308582&x=14&y=8


kenjb
Re: Apache on local pc -> DocumentRoot on a remote nas [message #32063 is a reply to message #31979] Tue, 06 June 2006 09:18 Go to previous messageGo to next message
Grab is currently offline  Grab   Italy
Messages: 4
Registered: May 2006
Location: Fossalta di Piave - Venic...
Karma: 0
Junior Member
N: il already mapped Crying or Very Sad
Re: Apache on local pc -> DocumentRoot on a remote nas [message #32070 is a reply to message #32063] Tue, 06 June 2006 18:08 Go to previous messageGo to next message
kenjb is currently offline  kenjb   United States
Messages: 67
Registered: September 2004
Karma: 0
Member
What does your "error.log" say about it?

kenjb
Re: Apache on local pc -> DocumentRoot on a remote nas [message #34140 is a reply to message #31979] Sun, 08 October 2006 03:06 Go to previous message
shight is currently offline  shight   Australia
Messages: 1
Registered: October 2006
Location: Sydney, Australia
Karma: 0
Junior Member
I use this in httpd.conf:

DocumentRoot "C:/Program Files/xampp/htdocs"

alias /websites D:\workspace\

<Directory D:/workspace/>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>


So "localhost/websites" in the browser points to the workspace folder on my D drive, where all my websites are listed as working copies checked out from TortoiseSVN.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ~error,insert query failed....AND undefined index~
Next Topic: PHP/SQL help needed....
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Jun 14 11:42:26 GMT 2024

Total time taken to generate the page: 0.02721 seconds