The database and Storage database directory chmod 777, and use
sudo -u lighttpd php test.php
no error after execution, only when using the browser to access test.php when the error occurs, what is the good?
Reply content:
The database and Storage database directory chmod 777, and use sudo -u lighttpd php test.php
no error after execution, only when using the browser to access test.php when the error occurs, what is the good?
The problem of permissions generally divided into two kinds, operating system permissions and in-app permissions, to solve the idea:
1, check the operating system permissions, confirm the HTTP user, and then use this user access to see if there is a problem.
Another possibility is that there are multiple PHP or SQL databases installed in the system, using which PHP, which MySQL to verify that the PHP and MySQL used by the Web service are one. Another possibility is that your access path, such as the data directory has permissions, but the previous level of the directory does not have permissions, there will be problems.
2. Troubleshoot whether the database user has permission to specify a database.