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.
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.
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
So please do
chown -R apache /path-to-PHPorjeckt-root
chmod -R u+w /path-to-PHPorjeckt-root
ASKER
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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....
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....
ASKER
requesting to delete this question by the community support.
thanks.
thanks.
ASKER
I'm using fedora core 3, php 4.3, apache 2.0
thanks