[SOLVED] Who does my PHP script run as?

This is a discussion on "[SOLVED] Who does my PHP script run as?" within the PHP Forum section. This forum, and the thread "[SOLVED] Who does my PHP script run as? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 11th, 2007, 18:26
Up'n'Coming Member
Join Date: Aug 2007
Location: Bicester
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] Who does my PHP script run as?

Hi

My php script is running on a linux box. PHP 4 is statically bound into Apache. Does the php script run as whoever owns the script? Or as the Apache user?

with thanks

Justin
Reply With Quote

  #2 (permalink)  
Old Oct 11th, 2007, 19:03
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: Who does my PHP script run as?

On my Debian server, Apache is a Daemon process, so it runs as nouser : nogroup.
Reply With Quote
  #3 (permalink)  
Old Oct 12th, 2007, 04:30
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Who does my PHP script run as?

It'll run as the Apache user. User nobody is not a good idea as it can create some security issues.
Reply With Quote
  #4 (permalink)  
Old Oct 12th, 2007, 12:07
Up'n'Coming Member
Join Date: Aug 2007
Location: Bicester
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Who does my PHP script run as?

ok. thanks all.
Reply With Quote
Reply

Thread Tools

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Use info from Database in a script ??? WebNinja PHP Forum 2 May 3rd, 2008 00:59
[SOLVED] Timed stopping script R8515198 Other Programming Languages 3 Jan 27th, 2008 13:18
[SOLVED] Log In Script Encryption? Jack Franklin PHP Forum 14 Jan 6th, 2008 17:15
[SOLVED] Search Script longstand PHP Forum 5 Nov 14th, 2007 18:45
[SOLVED] Image script problem philsando JavaScript Forum 5 Oct 4th, 2007 13:58


All times are GMT. The time now is 20:46.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43