Bluehost.com Web Hosting $6.95

Setting the Apache2 service to log on with a network user

This is a discussion on Setting the Apache2 service to log on with a network user within the Windows Web Servers forums, part of the Web Server and Related Forums category; I have Apache 2.0.55 with PHP 5.1.2 installed and working fine on my server. According to ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-23-2006
Marphyre
 
Posts: n/a
Default Setting the Apache2 service to log on with a network user

I have Apache 2.0.55 with PHP 5.1.2 installed and working fine on my
server. According to
http://httpd.apache.org/docs/2.0/platform/windows.html a good practice
is to have the Apache2 service log on with a network id with limited
access instead of using the system account. I followed the directions,
and couldn't get it to work. Finally, after playing with it for a
couple of hours, I found that if I give the ApacheService user read and
execute access from the root folder, it will start up just fine.
Otherwise, it errors with a rather un-informative error code of "1",
nothing in the apache log files, and another error in the system event
log that is not much more help ("The Apache2 service terminated with
service-specific error 1(0x1)"). The only folders on this drive are:
d:\apache (regular apache structure, including the htdocs folder)
d:\php (all of the php files)
d:\phpini (only the php.ini)
I can give each of these directories read and execute access, but it
still doesn't work unless I give the user read and execute from d:\.
These will be the only folders on this drive, so I do not forsee any
major difficulties security-wise, however does anyone know why this
would be?

Thanks,
Chris

  #2 (permalink)  
Old 02-17-2006
lsabug
 
Posts: n/a
Default Re: Setting the Apache2 service to log on with a network user

Greetings,
I am experiencing the same problem on our test server with the Apache
user and group. I am concerned with giving this user access to the root
folder of the webserver since I plan to use this setup on a public
server.

Have you learned anything else about this configuration?
Lsabug

  #3 (permalink)  
Old 03-15-2006
stephen.romano@gmail.com
 
Posts: n/a
Default Re: Setting the Apache2 service to log on with a network user

lsabug wrote:
> Greetings,
> I am experiencing the same problem on our test server with the Apache
> user and group. I am concerned with giving this user access to the root
> folder of the webserver since I plan to use this setup on a public
> server.
>
> Have you learned anything else about this configuration?
> Lsabug



Hey Guys,

I had the same issue. You don't need to set the permissons on the
root, only the Apache 'logs' folder. The service fails to start b/c
the new user does not have permissions to write any Apache logs. I
gave my "apache user" full control over the logs folder (for me -
C:\Program Files\Apache Group\Apache2\logs) and the Apache2 service
started right up.

Hope this helps.

-Stephen

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0