This is a discussion on Apache console <> service on WinXP within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hi, Here's the situation: I'm building an intranet for my company, on this intranet there's a certain ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
Here's the situation: I'm building an intranet for my company, on this intranet there's a certain page where users can see a directory listing of a network drive (g:), mapped on the server. This PHP-page uses the opendir function to retrieve directory information. The problem: when I start Apache as a console application everything works fine, but when I start it as a service, the opendir-function doesn't seem to be working. And the Apache-service is logged on as my account, not localsystem. Even stranger: accessing the folder via an alias /group, which points to the same network drive, always works. Is there anybody who has any idea what I'm missing here? Thanx, Bob. |
|
|||
|
my first guess is the next.
IIs is logged on as a service, but uses I_USR_machine name for the credentials to access the server. therefore it also uses this account for creating stuff (shares ie.) Apaches uses similar entities. maybe it's an idea to do the next: use a .cmd file to create the share. eg. name it create_share.cmd or something like that. use this syntax in the .cmd file.. > "net use L: \\servername\sharename /user:administrator adminpassword" the trick is to call this .cmd file from your php script. (that runs with the entity anonymous.. use following syntax <? system (create_share.cmd); ?> and then check what happens. btw opendir() doesn't work on unc paths.. am i correct? good luck! "Leland Palmer" <bob@bob.invalid> schreef in bericht news:m9khfvcnu5soqq3g9j9q4cjoeh9bvn7aeh@4ax.com... Hi, Here's the situation: I'm building an intranet for my company, on this intranet there's a certain page where users can see a directory listing of a network drive (g:), mapped on the server. This PHP-page uses the opendir function to retrieve directory information. The problem: when I start Apache as a console application everything works fine, but when I start it as a service, the opendir-function doesn't seem to be working. And the Apache-service is logged on as my account, not localsystem. Even stranger: accessing the folder via an alias /group, which points to the same network drive, always works. Is there anybody who has any idea what I'm missing here? Thanx, Bob. |
| Thread Tools | |
| Display Modes | |
|
|