Thread Closed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bad permission for include/config.php
I get the message when I try to access the web console. Please Help!!!!!!
The file must be owned by the user which runs apache, probably www-data, depends on the system
Use chown to change it.
For security reasons, config.php must have restrictive permissions, and "other" users cannot read or write to it. It could be writed only for owner (usually www-data or daemon user), normal operation is not possible until you change permissions for include/config.phpfile. Please do it, it's for your security.

I get the above message when I try to run web console in windows.
WARNING: Only explained the first and last time (this post topic will be locked):

This change can be made AT YOUR OWN RISK:

First, you SHOULD read before posting.

Second, as you can see looking at the code, the perms are ready for UNIX and Linux systems. At this point you can follow two ways (NONE ARE SUPPORTED BY PANDORA TEAM):

a) - Comment checking permissions at /index.php file.

b) - Adding the permissions of your file:

Try adding to the /index.php file between line 54 and 55 the line:
[code:1](substr(sprintf('%o', fileperms('include/config.php')), -4) != "0666") &&[/code]

At the end you'll have:
[code:1](substr(sprintf('%o', fileperms('include/config.php')), -4) != "0640") &&
(substr(sprintf('%o', fileperms('include/config.php')), -4) != "0666") &&
(substr(sprintf('%o', fileperms('include/config.php')), -4) != "0600"))[/code]

I repeat, NONE of this changes are supported. Change it at your own risk or better, use Linux!


Users browsing this thread: 1 Guest(s)

(c) 2006-2018 Artica Soluciones Tecnol├│gicas. Contents of this wiki are under Create Common Attribution v3 licence. | |

Theme © MyBB Themes