Link to home
Start Free TrialLog in
Avatar of asdad_uly21
asdad_uly21

asked on

apache webserver permission denied to write into directory.

hi all,

I'm having problem with my apache server to wirte into directory using php script. I'm trying to use the  "PHPROJEKT application" how can i fix it.
this is the error when i run the script..

[path] =   http://localhost/phprojekt/setup.php

[error ]
Alert: Cannot create file "config.inc.php"!
The webserver needs the permission to write the file config.inc.php in the PHProjekt root directory.  
Avatar of asdad_uly21
asdad_uly21

ASKER

i for got,
I'm using fedora core 3, php 4.3, apache 2.0

thanks
apache 2.0 run by user "apache".
So please do
chown -R apache /path-to-PHPorjeckt-root
chmod -R u+w /path-to-PHPorjeckt-root
i've been doing that but the application still not working..

this are the following command that i been used:

chown -R apache;apache /path-to -PHProjekt
chown -R apache;root /path-to -PHProjekt
chown -R root;apache /path-to -PHProjekt
chown -R root;root /path-to -PHProjekt

chmod - R 755  PHProjekt
chmod - R 775  PHProjekt and even the 777 permission

didnt work.. what should i do next.  do i need to check the php.ini of the php language
ASKER CERTIFIED SOLUTION
Avatar of Member_2_1239314
Member_2_1239314

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
sorry for the typographical error. i did the correct command.

but anyway i solve the problem. in Fedora Core 3 their is a SELinux. this application is not permitting the apache to write within the directory or files. i just disable the security for apache 2.0.

thanks anyway for the help....  
requesting to delete this question by the community support.

thanks.