M
M
masimka2016-06-04 17:35:58
linux
masimka, 2016-06-04 17:35:58

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

3 answer(s)
A
Alexander Aksentiev, 2016-06-04
@Sanasol

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.

M
masimka, 2016-06-04
@masimka

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?

Максим Люмен, 2016-06-04
@Maximum_Live

а права доступа открыли ? chmod разумеется , или может быть мешает htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question