From 5096589d6ef7a64edb6a38cbfec70b8b3dd0603e Mon Sep 17 00:00:00 2001
From: Marc Delisle
- I try to insert a text file in a table, and I get:
- Error MySQL said: The file '/tmp/phpkvpp60' must be in the database
- directory or be readable by all
+ I cannot insert a text file in a table, and I get an error
+ about safe mode being in effect.
Your uploaded file is saved by PHP in the "upload dir", as
defined in php.ini by the variable upload_tmp_dir (usually
the system default is /tmp).
- If this directory is not readable by all, the MySQL server (which must be
- running on the same machine) cannot open the file (except if running as
- root, which is not recommended).
- The system administrator can do a "chmod 777 /tmp": then
- the MySQL server will accept to read it. Also, the user must have
- File privilege.
+ We recommend the following setup for Apache servers running in
+ safe mode, to enable uploads of files while being reasonably secure:
+
+