Trying to access phpMyAdmin from VirtualHost

Discussion in 'General' started by autogun, Oct 17, 2009.

  1. autogun

    autogun New Member


    I have a 2 websites running on my ISPConfig setup.
    When ever I try to access phpMyAdmin browsing I receive the following error:
    Warning: Unknown: open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path(s): (/var/www/clients/client2/web4/web:/var/www/clients/client2/web4/tmp:/usr/share/php5) in Unknown on line 0
    Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
    Fatal error: Unknown: Failed opening required '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown on line 0
    Accessing phpMyAdmin directly using works fine.

    Can somebody please point for a solution or a workaround?

    Thanks in advanced!
  2. autogun

    autogun New Member

    *Bump* :p ...
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    phpmyamin can not be accessed trough the virtual host as the phpmyadmin source files are outside the virtualhost directory.
  4. autogun

    autogun New Member

    Thank you for your answer Till,
    Question is, is there some kind of workaround for this?
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    There are two possible solutions:

    1) Disable the open_basedir restriction in the template for the virtualhots and the fcgi starters and then change something in the site. Drawback: This will allow a php script run on any website to access your whole server.

    2) Access phpmyadmin by IP address or the server hostname or create a new website like and install a version of phpmyadmin into this website.

Share This Page