phpmyadmin and vhosts

Asked by XnimrodunterX

Hello,

i've install phpmyadmin from sudo apt-get install phpmyadmin. i see that the file /etc/phpmyadmin/apache.conf has been created by this and all the directives are set.

my problem is getting phpmyadmin to work with vhosts using ssl and stop working with the "default" site set by apache or any vhost that is using port 80.

everytime i go to https://secure.domain.com/phpmyadmin

i get the following error:

[Thu Apr 02 12:52:04 2009] [error] [client 10.43.144.190] PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path(s): (/var/www/web2/) in Unknown on line 0
[Thu Apr 02 12:52:04 2009] [error] [client 10.43.144.190] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[Thu Apr 02 12:52:04 2009] [error] [client 10.43.144.190] PHP Fatal error: Unknown: Failed opening required '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown on line 0

once i get this to work with port 443. how do i disable phpmyadmin from working on port 80 and with the default ip of my web-server?

Any help would be appreciated.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu phpmyadmin Edit question
Assignee:
No assignee Edit question
Solved by:
XnimrodunterX
Solved:
Last query:
Last reply:
Revision history for this message
Mohamed Zaian (mzaian) said :
#1

you need to setup apache to use SSL first i think you should modify /etc/phpmyadmin/apache.conf , and change your configuration.

Revision history for this message
XnimrodunterX (sgoldschmidt) said :
#2

looking at my vhost conf file, there was a directive set for open_basedir for the vhost. once i commented this out i was able to access phpmyadmin via https