Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

phpmyadmin not found after php upgrade

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
16 posts
  • 1
  • 2
  • Next
angemon
Posts: 10
Joined: Fri Jan 02, 2015 6:41 pm

phpmyadmin not found after php upgrade
  • Quote

Post by angemon » Wed Feb 01, 2017 1:01 am

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 :(
Image
I guess after upgrading the php version , I lost the phpmyadmin and the roundcube folders
how can I get them back?
Regards,
Last edited by angemon on Sat Feb 04, 2017 1:55 pm, edited 2 times in total.
Top

angemon
Posts: 10
Joined: Fri Jan 02, 2015 6:41 pm

Re: phpmyadmin not found after php upgrade
  • Quote

Post by angemon » Thu Feb 02, 2017 2:14 pm

Bump this
Top

rhyker2u
Posts: 86
Joined: Thu Jan 19, 2017 11:46 am
Contact:
Contact rhyker2u
Website

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: phpmyadmin not found after php upgrade
  • Quote

Post by rhyker2u » Thu Feb 02, 2017 2:41 pm

nice read with similar issue: viewtopic.php?t=5147 ... might provide some insight?
Top

angemon
Posts: 10
Joined: Fri Jan 02, 2015 6:41 pm

Re: phpmyadmin not found after php upgrade
  • Quote

Post by angemon » Sat Feb 04, 2017 1:54 pm

rhyker2u wrote:nice read with similar issue: viewtopic.php?t=5147 ... might provide some insight?
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
Top

rhyker2u
Posts: 86
Joined: Thu Jan 19, 2017 11:46 am
Contact:
Contact rhyker2u
Website

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: phpmyadmin not found after php upgrade
  • Quote

Post by rhyker2u » Mon Feb 06, 2017 12:55 pm

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
Top

BebeLeche
Posts: 1
Joined: Wed Feb 01, 2017 11:20 pm
Contact:
Contact BebeLeche
Website

Os: CentOS 5x
Web: apache
Re: phpmyadmin not found after php upgrade
  • Quote

Post by BebeLeche » Mon Feb 06, 2017 5:58 pm

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
Last edited by BebeLeche on Fri Oct 04, 2024 5:22 am, edited 4 times in total.
Top

angemon
Posts: 10
Joined: Fri Jan 02, 2015 6:41 pm

Re: phpmyadmin not found after php upgrade
  • Quote

Post by angemon » Wed Feb 08, 2017 8:57 pm

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
Image
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 !!
Top

angemon
Posts: 10
Joined: Fri Jan 02, 2015 6:41 pm

Re: phpmyadmin not found after php upgrade
  • Quote

Post by angemon » Mon Feb 13, 2017 10:36 am

bump this
Top

noogen
Posts: 66
Joined: Thu Jan 05, 2017 9:20 pm

Re: phpmyadmin not found after php upgrade
  • Quote

Post by noogen » Tue Feb 14, 2017 3:55 am

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:~$
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: phpmyadmin not found after php upgrade
  • Quote

Post by mehargags » Tue Feb 14, 2017 4:44 am

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
Top


Post Reply
  • Print view

16 posts
  • 1
  • 2
  • Next

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password