Phpmyadmin not found (fresh install)
Posted: Mon Jan 22, 2018 9:48 am
Hi,
Requesting some help as I spent hours on that problem and it's still not working. So from a fresh install of vestacp on a ubuntu 16.04 server, phpmyadmin and rouncube are not available.
When accessing them from vesta panel I just land on a "404 page not found".
Urls are :
https://sub.domain.tld/list/db/phpmyadmin/
https://sub.domain.tld/webmail/
So if I look into /usr/local/vesta/web/list/db, there is no phpmyadmin just an index.php. I tried to make a symlink to /usr/share/phpmyadmin but then get an 500 internal server error.
There is no /usr/local/web/webmail folder, haven't try to make one by myself for now.
From installation files, everything seems to look good (was looking in that post) :
phpmyadmin.inc
Trying to get phpmyadmin from http://ip/phpmyadmin return a permission error which is good, I don't want to be able to access phpmyadmin like that.
webmail.inc
I'm out of idea and I guess there is probably an issue with nginx, but reverse proxy is still quite new for me. If someone can help I'll be grateful.
Requesting some help as I spent hours on that problem and it's still not working. So from a fresh install of vestacp on a ubuntu 16.04 server, phpmyadmin and rouncube are not available.
When accessing them from vesta panel I just land on a "404 page not found".
Urls are :
https://sub.domain.tld/list/db/phpmyadmin/
https://sub.domain.tld/webmail/
So if I look into /usr/local/vesta/web/list/db, there is no phpmyadmin just an index.php. I tried to make a symlink to /usr/share/phpmyadmin but then get an 500 internal server error.
There is no /usr/local/web/webmail folder, haven't try to make one by myself for now.
From installation files, everything seems to look good (was looking in that post) :
phpmyadmin.inc
Code: Select all
location /phpmyadmin {
alias /usr/share/phpmyadmin/;
location ~ /(libraries|setup) {
return 404;
}
location ~ ^/phpmyadmin/(.*\.php)$ {
alias /usr/share/phpmyadmin/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}
webmail.inc
Code: Select all
location /webmail {
alias /var/lib/roundcube/;
location ~ /(config|temp|logs) {
return 404;
}
location ~ ^/webmail/(.*\.php)$ {
alias /var/lib/roundcube/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}