Answer the question
In order to leave comments, you need to log in
How to allow php access to /var/lib/mysql directory or entire linux file system?
the question was
how to allow php access to the /var/lib/mysql directory or to the entire linux file system
scandir(/var/lib/mysql/admin_a1sdasdasd_top/): failed to open dir: Permission denied
Answer the question
In order to leave comments, you need to log in
The list of databases can be obtained by queries to the database, and tables too.
You don't need to scan the folder for this.
it is not possible to make SQL dumps due to the huge size of the database files, so it was decided to simply take the files into an archive and upload them to the host in the same folder (but via ssh)
now the only thing that came to mind was before accessing the directory where database make it exec-> chown on apache:apache to access the files.
It will not be possible to run apache or php as root, since it is launched from the browser.
Under wine everything works., on the security center is prohibited. How to resolve?
Other options?
а права доступа открыли ? chmod разумеется , или может быть мешает htaccess
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question