drubdrub
May 3rd, 2009, 09:01 AM
Tried to use Synaptic and install phpmyadmin.
http://localhost/phpmyadmin does not work
http://localhost/mysql does not work
Other "obvious" attempts do not work
Examine /var/www and find no trace of phpmyadmin anywhere. Cruise the Forum (here) and there is a suggestion that the Synaptic installation has problems but an apt-get installation works. OK, worth a try.
Uninstall phpmyadmin with Synaptic
Install phpmyadmin with apt-get
Examine /var/www. There is now a usr/share/phpmyadmin directory with an index.html. Point the browser at http://localhost/usr/share/phpmyadmin and the expected phpmyadmin interface is displayed. Log in, all seems to work as expected.
I would expect a symlink like /var/www/phpmyadmin to point to /var/www/usr/share/phpmyadmin, so http://localhost/phpmyadmin would work. For these reasons, I consider the phpmyadmin installation to be broken. Or, am I overlooking something?
When I build a symlink /var/www/phpmyadmin/phpmyadmin.html pointing to /var/www/usr/share/phpmyadmin/index.html the following error is displayed.
Warning: require_once(./libraries/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/usr/share/phpmyadmin/index.php on line 34
Fatal error: require_once() [function.require]: Failed opening required './libraries/common.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/usr/share/phpmyadmin/index.php on line 34
The same is true if the link and the target are the equivalent .php files. This surprises me.
A symlink /var/www/phpmyadmin/phpmyadmin pointing to /var/www/usr/share/phpmyadmin works. phpmyadmin is displayed, as expected.
Hope this is helpful. Many thanks!
http://localhost/phpmyadmin does not work
http://localhost/mysql does not work
Other "obvious" attempts do not work
Examine /var/www and find no trace of phpmyadmin anywhere. Cruise the Forum (here) and there is a suggestion that the Synaptic installation has problems but an apt-get installation works. OK, worth a try.
Uninstall phpmyadmin with Synaptic
Install phpmyadmin with apt-get
Examine /var/www. There is now a usr/share/phpmyadmin directory with an index.html. Point the browser at http://localhost/usr/share/phpmyadmin and the expected phpmyadmin interface is displayed. Log in, all seems to work as expected.
I would expect a symlink like /var/www/phpmyadmin to point to /var/www/usr/share/phpmyadmin, so http://localhost/phpmyadmin would work. For these reasons, I consider the phpmyadmin installation to be broken. Or, am I overlooking something?
When I build a symlink /var/www/phpmyadmin/phpmyadmin.html pointing to /var/www/usr/share/phpmyadmin/index.html the following error is displayed.
Warning: require_once(./libraries/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/usr/share/phpmyadmin/index.php on line 34
Fatal error: require_once() [function.require]: Failed opening required './libraries/common.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/usr/share/phpmyadmin/index.php on line 34
The same is true if the link and the target are the equivalent .php files. This surprises me.
A symlink /var/www/phpmyadmin/phpmyadmin pointing to /var/www/usr/share/phpmyadmin works. phpmyadmin is displayed, as expected.
Hope this is helpful. Many thanks!