我想爲多虛擬主機用戶設置phpmyadmin。apache phpmyadmin設置爲虛擬主機
example.tld_01/phpmyadmin
example.tld_02/phpmyadmin
注:所有的Apache虛擬主機用戶和PHP腳本的chroot的用於/var/www/html/[web_dir]
通過PHP-FPM + mod_proxy_fcgi
嘗試01 =>符號鏈接:
ln -s /usr/share/phpmyadmin/* /var/www/html/[web_dir]/phpmyadmin
問題01:
Since php is chrooted users will not be able to access symbolic link of phpmyadmin
嘗試02 =>安裝--bind:
mount --bind /usr/share/phpmyadmin/* /var/www/html/[web_dir]/phpmyadmin
問題02:
phpmyadmin has got some symbolic linked files in its libraries like "php-gettext/gettext.inc".
So getting this error.
Fatal error: require_once(): Failed opening required './libraries/php-gettext/gettext.inc' (include_path='.:/usr/share/php:/usr/share/pear')
問題:
什麼是第b共享主機中的est場景爲多虛擬主機及其用戶設置phpmyadmin?
如果您使用過共享主機,您在帳戶中看不到任何文件夾,如phpmyadmin。但你仍然可以訪問phpmyadmin。這怎麼可能?