Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 4th, 2006, 4:47 AM   #1
ktsirig
Programmer
 
Join Date: Oct 2005
Posts: 54
Rep Power: 4 ktsirig is on a distinguished road
PHP/ Apache problem

Hello all!
What I have is a problem with my apache server and I don't know how to deal with it...

I have a PHP page that is supposed to create an empty file, using "system" command, then open it ("fopen") na dwrite some stuff in there...
But, when I point to the reffering page, it says ...
"Permission denied" and the file is not created..

Because I don't know much about servers, is there somewhere in my Linux filesystem that I should tell PHP to create the file where it will not have such restrictions?
when you tell PHP to create a file, which 'user' does this?
The Apache user?
ktsirig is offline   Reply With Quote
Old Feb 4th, 2006, 5:36 AM   #2
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
I believe you have the 'apache' user for that, but why create a new file and then open it? When you open a non-existing file to write, the OS creates the file automatically .
Polyphemus_ is offline   Reply With Quote
Old Feb 4th, 2006, 7:10 PM   #3
Silvanus
Hobbyist Programmer
 
Silvanus's Avatar
 
Join Date: Aug 2005
Location: Hiding from... them...
Posts: 110
Rep Power: 4 Silvanus is on a distinguished road
Check that the "apache" user can write to the directory where you are creating the file.
__________________
:wq
Silvanus is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:47 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC