[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 436
  • Last Modified:

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.  
  • 4
1 Solution
asdad_uly21Author Commented:
i for got,
I'm using fedora core 3, php 4.3, apache 2.0

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
asdad_uly21Author Commented:
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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

chown -R apache.apache and not apache;apache as you have stated in your response above.
Note I have separated the apache and apache with a dot and not semi-colon as you have done.

Then see the result.
asdad_uly21Author Commented:
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....  
asdad_uly21Author Commented:
requesting to delete this question by the community support.


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now