phpmyadmin error

Discussion in 'Installation/Configuration' started by filch, Mar 15, 2009.

  1. filch

    filch New Member

    Hi,

    I have installed phpmyadmin and in the Interface config I have selected " Link to phpmyadmin in DB list". However, when I create a database and then click on the link to phpmyadmin, I get the following:

    Forbidden

    You don't have permission to access /phpmyadmin on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    phpmyadmin is installed in /usr/share and proper aliases are in /etc/httpd/conf.d/phpmyadmin.conf

    Any ideas on what might be wrong here. I assume it is a permissions thing. Currently /usr/share/phpmyadmin permissions are:

    drwxr-xr-x 10 apache apache 4096 Feb 14 14:07 phpmyadmin

    All help is very much appreciated.


    Dave
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Which ISPConfig version?
    2) Which Linux distribution?
     
  3. filch

    filch New Member

    Sorry ... I usually do not forget this info. It is version 3.0.0.9 and CentOS 5.2

    Thanks

    Dave
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This is a known problem in centos and fedora (see bugtracker), there is no solution for that yet as aliases can not be used the way it is done in centos on a hosting server.
     
  5. filch

    filch New Member

    Well that's too bad. The funny thing is that I still should be able to add the aliases to the httpd.conf and thereby allowing all the domains to access only their databases but not matter what I do I am always getting this permission denied thing.

    Dave
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Aliases wont work, thats the core of the problem. Centos installs phpmyadmin in the wrong place, the installation place for phpmyadmin is not compatible with the suexec path that is compiled into the apache server from centos.

    The following solutions will work, but are not really the optimum:

    1) You create a website like phpmyadmin.yourdoamin.com and install a copy of phpmyadmin into that website. then you are able to access phpmyadmin trough the domain of this website, e.g. phpmyadmin.yourdomain.com

    2) Another solution is that you make a symlink named /usr/local/ispconfig/interface/web/phpmyadmin to the installation directory of phpmyadmin. Then you will be able to access phpmyadmin trogh yourdomain.com:8080/phpmyadmin
     
  7. qriz

    qriz New Member


    i tried the second like that:
    $ ln -s /usr/local/ispconfig/interface/web/phpmyadmin /usr/share/phpmyadmin

    didn't work it gives me 403 Permission denied

    I got Debian Lenny and 3.0.0.9
    and if i try Webmail or link zu phpmyadmin
    i get 404 Site not found ( from client 3 Drupal installation ) ???

    any ideas?
    thx
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    This works only if you run mod_php and not php as fcgi, it will not work with fcgi as it fails then for the same reason then the centos default setting fails.

    On Debian you dont have to do anything, just install it as decribed in the perfect setup guide for ispconfig 3 and it works. I just installed it today.
     
  9. qriz

    qriz New Member

    I tried but ... :-(

    1)

    if i run mod-php i get error 500 if i run any other php i get page not found

    i got also a problem to get mysqldumper to work with the databases

    i got 7 Sites running and don't know how to back them up or transfer them into a new ispconfig installation.

    ftp and sftp are working but crashing a lot


    2) Then i tried to virtualize the whole thing in virtualbox (on a different computer) before reinstall again but stumbled in to network problems and couldn't get host and guest working properly. there is a lot of configuration tips out there but nothing like a perfect server guide what works smooth

    So does any body know a working guide or can alter the perfect server on how to install a virtualized ispconfig ???
     
  10. falko

    falko Super Moderator Howtoforge Staff

    A guest in VirtualBox is not different from a physical machine regarding ISPConfig.

    What's in the Apache error log?
     
  11. qriz

    qriz New Member

    What's in the Apache error log?[/QUOTE]

    tail -f /var/log/apache2/error.log

    .
     
  12. falko

    falko Super Moderator Howtoforge Staff

    And what's in the error log of the web site (/var/www/clients/.../log)?
     

Share This Page