Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 372
  • Last Modified:

Permissions on Apache Localhost

Hullo all.  My operating system is windows xp where I have installed a fully working Apache server for use with php.  The problem is I do not know how to setup permissions for files I create on D:\htdoc\fileuploadtrial\

Ideas would be most appreciated

Thanks

AJ
0
jezella
Asked:
jezella
  • 3
  • 3
1 Solution
 
hernst42Commented:
http://httpd.apache.org/docs/1.3/win_service.html

User Account for Apache Service to Run As (NT/2000)

When Apache is first installed as a service (e.g. with the -i option) it will run as user "System" (the LocalSystem account). There should be few issues if all resources for the web server reside on the local system, but it has broad security privileges to affect the local machine!

    LocalSystem is a very privileged account locally, so you shouldn't run any shareware applications there. However, it has no network privileges and cannot leave the machine via any NT-secured mechanism, including file system, named pipes, DCOM, or secure RPC.
0
 
jezellaAuthor Commented:
Oops, this has really confused me. To be safe, should I have set Apache up under a different user name. Ie. Not as admin?
0
 
nizsmoDeveloperCommented:
Are you wanting to CHMOD the local files?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
hernst42Commented:
Which user you want to use depends on your security needs. For development the default permissions should be ok, For production you should consider using a separate user for apache and let him only read the php-file and assign directories where he can write to.
0
 
jezellaAuthor Commented:
This is not for production, only a local testing server to aid me in learning php.  I do not however wish to compromise the security of the desktop but I do want to be able to filly test my scripts if possible.  
0
 
hernst42Commented:
In this case using the predefined account is ok.
0
 
jezellaAuthor Commented:
I think that I have the problems solved and so as not to waste people's time, I'll close here.

Many thanks.

AJ
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now