我收到這樣的問題:創建Web服務器寫文件夾phpMyAdmin的配置文件
請創建在phpMyAdmin頂級目錄Web服務器寫文件夾的配置,如文檔描述。否則,您將只能下載或顯示它。
我能做些什麼來解決這個問題。我的phpMyAdmin版本是3.5.8.2
我收到這樣的問題:創建Web服務器寫文件夾phpMyAdmin的配置文件
請創建在phpMyAdmin頂級目錄Web服務器寫文件夾的配置,如文檔描述。否則,您將只能下載或顯示它。
我能做些什麼來解決這個問題。我的phpMyAdmin版本是3.5.8.2
這不是一個大問題,如果你不能在phpMyAdmin的文件夾中創建一個可寫文件夾「config」。您可以將創建的配置下載到文件中,但您必須能夠將此下載的config.inc.php返回到phpMyAdmin的文件夾。
轉到您的phpMyAdmin文件夾,通常/usr/share/phpMyAdmin
爲更新的版本。
創建一個名爲config
文件夾:
cd /usr/share/phpMyAdmin
mkdir config # create directory for saving
chmod o+rw config # give it world writable permissions - this will be removed once your configuration has been saved on the server [as this directory is required by the application to be removed as a security measure]
一旦生成您的配置,您可以將它從config
文件夾/usr/share/phpMyAdmin/config.inc.php
複製到安裝文件夾,或紅帽口味,你/etc/phpMyAdmin
文件夾。
有點晚了,但它的思想很重要。
如何在Mac OS上執行此操作? – Biranchi
在Debian上它是cd/etc/phpmyadmin /,然後是mkdir ... –
半晌原來有人問後,但我有同樣的問題。
在我的Ubuntu 14.04服務器上,需要進行寫入的文件位於/var/lib/phpmyadmin
。 config.inc.php
歸root:www-data
所有,所以設置組寫標誌固定它:660
。
我想通過修改\usr\share\phpmyadmin\setup\frames\index.inc.php
(第48行)中的代碼,在這裏phpMyAdmin執行檢查並報告錯誤。我犯了錯誤打印文件路徑:
check_config_rw($config_readable, $config_writable, $config_exists);
if (!$config_writable || !$config_readable) {
$file_path = ConfigFile::getInstance()->getFilePath();
messages_set(
'error', 'config_rw', __('Cannot load or save configuration to '.$file_path),
PMA_lang(__('Please create web server writable folder [em]config[/em] in phpMyAdmin top level directory as described in [[email protected]_script]documentation[/doc]. Otherwise you will be only able to download or display it.'))
);
}
關於權限問題,這是來自[PMA設置腳本](http://docs.phpmyadmin.net/en/latest/setup.html#using -setup-script):Debian和Ubuntu簡化了這個設置,你需要做的就是在你完成'/ usr/sbin/pma-secure'後執行'/ usr/sbin/pma-configure'。 –
你試過設置文件夾權限寫嗎?你可能需要通過數字來完成。 – nocturns2
我該怎麼做? – JessieNBarnes
你有沒有試過下面的文檔?也許像[本安裝指南](http://docs.phpmyadmin.net/en/latest/setup.html#using-setup-script)這樣的東西? – rutter