Page 1 of 2
phpmyadmin not found after php upgrade
Posted: Wed Feb 01, 2017 1:01 am
by angemon
Hello everyone,
I've upgraded my PHP from php 5.4 to php 5.6 using this tuto
http://www.techoism.com/how-to-upgrade- ... entosrhel/
Now I can't find the phpmyadmin nor roundcube on VestaCP
When I go to the Database tab and click he phpmyadmin button , I got page not found :(

I guess after upgrading the php version , I lost the phpmyadmin and the roundcube folders
how can I get them back?
Regards,
Re: phpmyadmin not found after php upgrade
Posted: Thu Feb 02, 2017 2:14 pm
by angemon
Bump this
Re: phpmyadmin not found after php upgrade
Posted: Thu Feb 02, 2017 2:41 pm
by rhyker2u
nice read with similar issue:
viewtopic.php?t=5147 ... might provide some insight?
Re: phpmyadmin not found after php upgrade
Posted: Sat Feb 04, 2017 1:54 pm
by angemon
this is not the same issue , I can't even go to [my server ip]/phpmyadmin/ because the directory phpmyadmin is not found after upgrading my php version
Re: phpmyadmin not found after php upgrade
Posted: Mon Feb 06, 2017 12:55 pm
by rhyker2u
recreate the webserver files (I'm using LEMP myself, thus they are in /etc/nginx/conf.d/)
Filename: 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/;
}
}
Filename: 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;
}
}
and restart nginx: nginx -s reload
Re: phpmyadmin not found after php upgrade
Posted: Mon Feb 06, 2017 5:58 pm
by BebeLeche
Hey rhyker2u I've tried your solution but it didn't work for me... What might have gone wrong? I'm using LEMP too
____________________________
Vill du spela borde du testa
dagens casino eller om du vill spela på svenska så är
Sweden casino kanske ett bättre alternativ.
retro games
Re: phpmyadmin not found after php upgrade
Posted: Wed Feb 08, 2017 8:57 pm
by angemon
rhyker2u wrote:recreate the webserver files (I'm using LEMP myself, thus they are in /etc/nginx/conf.d/)
Filename: 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/;
}
}
Filename: 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;
}
}
and restart nginx: nginx -s reload
Hello,
I have tried your advice but it didn't work , I still can't find phpmyadmin nor webmail
what I have done following your steps , I went first to: cd /etc/nginx/conf.d/
then I used the command LS to check what files I have , I noticed I don't have phpmyadmin.inc NOR webmail.inc

so I used NANO -W to create those two files and I copy paste what you have suggested
then I used "nginx -s reload" to restart nginx
but that didn't work?
What do you think ? I'm sure I need to reinstall phpmyadmin and webmail somehow !!
Re: phpmyadmin not found after php upgrade
Posted: Mon Feb 13, 2017 10:36 am
by angemon
bump this
Re: phpmyadmin not found after php upgrade
Posted: Tue Feb 14, 2017 3:55 am
by noogen
More details?
1) Still get 404?
2) Do you have files under? ls -la /var/lib/roundcube/
3) What about /usr/share/phpmyadmin?
4) Is php-fpm running?
Code: Select all
admin@hostingcorp-vestacp-1:~$ ps -ax | grep php-fpm
467 ? Ss 0:04 php-fpm: master process (/usr/local/vesta/php/etc/php-fpm.conf)
468 ? S 0:00 php-fpm: pool www
469 ? S 0:00 php-fpm: pool www
17347 pts/0 S+ 0:00 grep --color=auto php-fpm
admin@hostingcorp-vestacp-1:~$
Re: phpmyadmin not found after php upgrade
Posted: Tue Feb 14, 2017 4:44 am
by mehargags
the first thing you should be looking at is Apache logs (if running default rev. proxy) or Ngnix (if running lemp)
clear your domains logs first
> /var/log/apache2/domains/<domain.xyz>.log
then
tail -f /var/log/apache2/domains/<domain.xyz>.log
Now try to access in your browser <domain.xyz>/phpmyadmin and watch the tail. If you can't understand that, please paste the tail output here