2013-10-20 93 views
2

我收到這樣的問題:創建Web服務器寫文件夾phpMyAdmin的配置文件

請創建在phpMyAdmin頂級目錄Web服務器寫文件夾的配置,如文檔描述。否則,您將只能下載或顯示它。

我能做些什麼來解決這個問題。我的phpMyAdmin版本是3.5.8.2

+0

你試過設置文件夾權限寫嗎?你可能需要通過數字來完成。 – nocturns2

+0

我該怎麼做? – JessieNBarnes

+0

你有沒有試過下面的文檔?也許像[本安裝指南](http://docs.phpmyadmin.net/en/latest/setup.html#using-setup-script)這樣的東西? – rutter

回答

-1

這不是一個大問題,如果你不能在phpMyAdmin的文件夾中創建一個可寫文件夾「config」。您可以將創建的配置下載到文件中,但您必須能夠將此下載的config.inc.php返回到phpMyAdmin的文件夾。

3

轉到您的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文件夾。

有點晚了,但它的思想很重要。

  • 僅供參考 - 所有這些信息可在phpMyAdmin的文檔
+0

如何在Mac OS上執行此操作? – Biranchi

+0

在Debian上它是cd/etc/phpmyadmin /,然後是mkdir ... –

2

半晌原來有人問後,但我有同樣的問題。

在我的Ubuntu 14.04服務器上,需要進行寫入的文件位於/var/lib/phpmyadminconfig.inc.phproot: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.')) 
    ); 
} 
+0

關於權限問題,這是來自[PMA設置腳本](http://docs.phpmyadmin.net/en/latest/setup.html#using -setup-script):Debian和Ubuntu簡化了這個設置,你需要做的就是在你完成'/ usr/sbin/pma-secure'後執行'/ usr/sbin/pma-configure'。 –

相關問題