Having a phpmyadmin on the same domain with seafile?

I’m trying to resolve an issue I’m having with accessing phpmyadmin.

When i try to access the phpmyadmin I get //domain/phpmyadmin/ I get:

Sorry, but the requested page could not be found.

That has probably something to do with mod_rewrite in apache configuration file but I don’t know how to reconfigure it.

Thanks in advance.

Best regards.

do you really need Apache? If you give a nginx a chance I can send you my configuration where both work together. This should be possible with Apache as well. Maybe another user in Forum has these both.

1 Like

Thanks for your reply. Im currently set on Apache. I have it on all of our servers.

Thanks again.

You can do this easy in your vhost-config.

There is already a Redirect-exclusion for “your.domain/media”:

RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]

So you have to copy this line and edit i for your specific problem:

RewriteRule ^/(phpmyadmin.*)$ /$1 [QSA,L,PT]

If the Location of phpmyadmin is not in the seafile-folder, then you can make a alias. There is also already one for /media:

Alias /media /home/seafile/haiwen/seafile-server-latest/seahub/media

This can be copied, for example:

 Alias /phpmyadmin /var/www/phpmyadmin
     <Directory "/var/www/phpmyadmin">
          Options -Indexes +FollowSymLinks
          AllowOverride All
          Require all granted

best regards,

1 Like

Thanks a lot :slight_smile:

what’s your config file for nginx and phpmyadmin?