PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.win > How to set up Apache 2.0.55 for my local network?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.win Web servers for MS Windows and NT.

How to set up Apache 2.0.55 for my local network?

Réponse
 
LinkBack Outils de la discussion
Vieux 03/01/2006, 01h36   #1
Marcel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to set up Apache 2.0.55 for my local network?

I need some advise please.
I have installed Apache 2.0.55 on a W2K computer.
That computer is part of a local network (192.168.0.xxx, 255.255.255.0) with
1 XP computer and 3 W2K computers.
All these PCs don't have any problem accessing the webserver.
My problem arises when I want to use PHP and the webserver to access
information that is on one of the other computers, for instance when I want
to copy, using PHP, something from drive V:\. I then get the following
message:

Warning: copy(V:\copytest2\test.jpg): failed to open stream: Permission
denied in D:\localweb\copytest\copytest.php on line 2

My question: how can I configure Apache in such a way that this can be done?

Thanks for your ,
Marcel


  Réponse avec citation
Vieux 03/01/2006, 20h53   #2
Kees Nuyt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set up Apache 2.0.55 for my local network?

On Tue, 3 Jan 2006 12:36:51 +1100, "Marcel"
<info@nospam-bluegumdata.com.au> wrote:

>I need some advise please.
>I have installed Apache 2.0.55 on a W2K computer.
>That computer is part of a local network (192.168.0.xxx, 255.255.255.0) with
>1 XP computer and 3 W2K computers.
>All these PCs don't have any problem accessing the webserver.
>My problem arises when I want to use PHP and the webserver to access
>information that is on one of the other computers, for instance when I want
>to copy, using PHP, something from drive V:\. I then get the following
>message:
>
>Warning: copy(V:\copytest2\test.jpg): failed to open stream: Permission
>denied in D:\localweb\copytest\copytest.php on line 2
>
>My question: how can I configure Apache in such a way that this can be done?


By default the Apache2 service logs in as local system account,
which doesn't have permission to read files in a fileshare.

You would have to run the Apache2 service as a user which has
access to network resources and the file shares you want it to
access. Open the services console, stop the Apache2 service,
change its login / signon properties and start it again.

By the way, forward slashes are preferred in directory paths
within Apache and PHP.

>Thanks for your ,
>Marcel


Good luck.
--
( Kees
)
c[_] A lady is a woman who makes a man behave like a gentleman. (#278)
  Réponse avec citation
Vieux 03/01/2006, 20h53   #3
Kees Nuyt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set up Apache 2.0.55 for my local network?

On Tue, 3 Jan 2006 12:36:51 +1100, "Marcel"
<info@nospam-bluegumdata.com.au> wrote:

>I need some advise please.
>I have installed Apache 2.0.55 on a W2K computer.
>That computer is part of a local network (192.168.0.xxx, 255.255.255.0) with
>1 XP computer and 3 W2K computers.
>All these PCs don't have any problem accessing the webserver.
>My problem arises when I want to use PHP and the webserver to access
>information that is on one of the other computers, for instance when I want
>to copy, using PHP, something from drive V:\. I then get the following
>message:
>
>Warning: copy(V:\copytest2\test.jpg): failed to open stream: Permission
>denied in D:\localweb\copytest\copytest.php on line 2
>
>My question: how can I configure Apache in such a way that this can be done?


By default the Apache2 service logs in as local system account,
which doesn't have permission to read files in a fileshare.

You would have to run the Apache2 service as a user which has
access to network resources and the file shares you want it to
access. Open the services console, stop the Apache2 service,
change its login / signon properties and start it again.

By the way, forward slashes are preferred in directory paths
within Apache and PHP.

>Thanks for your ,
>Marcel


Good luck.
--
( Kees
)
c[_] A lady is a woman who makes a man behave like a gentleman. (#278)
  Réponse avec citation
Vieux 04/01/2006, 22h16   #4
Marcel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set up Apache 2.0.55 for my local network?


"Kees Nuyt" <k.nuyt@nospam.demon.nl> wrote in message
news:ajolr19uldcthu0vu9ohrmih73ih84k0s9@4ax.com...
> On Tue, 3 Jan 2006 12:36:51 +1100, "Marcel"
> <info@nospam-bluegumdata.com.au> wrote:
>
> >I need some advise please.
> >I have installed Apache 2.0.55 on a W2K computer.
> >That computer is part of a local network (192.168.0.xxx, 255.255.255.0)

with
> >1 XP computer and 3 W2K computers.
> >All these PCs don't have any problem accessing the webserver.
> >My problem arises when I want to use PHP and the webserver to access
> >information that is on one of the other computers, for instance when I

want
> >to copy, using PHP, something from drive V:\. I then get the following
> >message:
> >
> >Warning: copy(V:\copytest2\test.jpg): failed to open stream: Permission
> >denied in D:\localweb\copytest\copytest.php on line 2
> >
> >My question: how can I configure Apache in such a way that this can be

done?
>
> By default the Apache2 service logs in as local system account,
> which doesn't have permission to read files in a fileshare.
>
> You would have to run the Apache2 service as a user which has
> access to network resources and the file shares you want it to
> access. Open the services console, stop the Apache2 service,
> change its login / signon properties and start it again.
>
> By the way, forward slashes are preferred in directory paths
> within Apache and PHP.
>
> >Thanks for your ,
> >Marcel

>
> Good luck.
> --
> ( Kees
> )
> c[_] A lady is a woman who makes a man behave like a gentleman. (#278)


Thanks Kees.


  Réponse avec citation
Vieux 04/01/2006, 22h16   #5
Marcel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set up Apache 2.0.55 for my local network?


"Kees Nuyt" <k.nuyt@nospam.demon.nl> wrote in message
news:ajolr19uldcthu0vu9ohrmih73ih84k0s9@4ax.com...
> On Tue, 3 Jan 2006 12:36:51 +1100, "Marcel"
> <info@nospam-bluegumdata.com.au> wrote:
>
> >I need some advise please.
> >I have installed Apache 2.0.55 on a W2K computer.
> >That computer is part of a local network (192.168.0.xxx, 255.255.255.0)

with
> >1 XP computer and 3 W2K computers.
> >All these PCs don't have any problem accessing the webserver.
> >My problem arises when I want to use PHP and the webserver to access
> >information that is on one of the other computers, for instance when I

want
> >to copy, using PHP, something from drive V:\. I then get the following
> >message:
> >
> >Warning: copy(V:\copytest2\test.jpg): failed to open stream: Permission
> >denied in D:\localweb\copytest\copytest.php on line 2
> >
> >My question: how can I configure Apache in such a way that this can be

done?
>
> By default the Apache2 service logs in as local system account,
> which doesn't have permission to read files in a fileshare.
>
> You would have to run the Apache2 service as a user which has
> access to network resources and the file shares you want it to
> access. Open the services console, stop the Apache2 service,
> change its login / signon properties and start it again.
>
> By the way, forward slashes are preferred in directory paths
> within Apache and PHP.
>
> >Thanks for your ,
> >Marcel

>
> Good luck.
> --
> ( Kees
> )
> c[_] A lady is a woman who makes a man behave like a gentleman. (#278)


Thanks Kees.


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h33.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12581 seconds with 13 queries