![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Oct 2005
Posts: 54
Rep Power: 4
![]() |
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? |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
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
. |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Aug 2005
Location: Hiding from... them...
Posts: 110
Rep Power: 4
![]() |
Check that the "apache" user can write to the directory where you are creating the file.
__________________
:wq |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|