Page 2 of 2

Re: phpmyadmin not found after php upgrade

Posted: Wed Feb 22, 2017 10:08 am
by angemon
noogen wrote: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:~$
Thank you for replying,
1) yes I'm still getting the 404 error
2 3 4) I guess not
Image

Re: phpmyadmin not found after php upgrade

Posted: Wed Feb 22, 2017 10:16 am
by angemon
mehargags wrote: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
I don't even have this folder /var/log/apache2/
Image

Re: phpmyadmin not found after php upgrade

Posted: Tue Feb 28, 2017 3:16 pm
by angemon
bump this

Re: phpmyadmin not found after php upgrade

Posted: Thu Mar 02, 2017 1:37 am
by angemon
bump this

Re: phpmyadmin not found after php upgrade

Posted: Thu Mar 02, 2017 5:59 am
by mehargags
I think something is very weird... Most probably a bad chown command you did or fiddled way too deep in the conf's

Try Rebuilding User/Web/DB in VestaCP to see if the config's refresh.
or
if possible, Backup and Fresh Install your OS and then VestaCP.

Re: phpmyadmin not found after php upgrade

Posted: Fri Jan 19, 2018 5:59 pm
by Aporie
Hi,

I'm experiencing the exact same problem. From my investigation I have some open_basedir restrictions which forbid me to access the pages (phpmyadmin and roundcube).

But I couldn't finished to debug as I don't know if there is a way to force apache to write errors in error.log file ?

Code: Select all

[Fri Jan 19 17:46:09.699814 2018] [:error] [pid 25408] [client xx.xx.xx.xx:59836] PHP Warning:  Unknown: open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path(s): (/tmp:/usr/bin:/home/admin:/home/orao:/opt) in Unknown on line 0
[Fri Jan 19 17:46:09.699885 2018] [:error] [pid 25408] [client xx.xx.xx.xx:59836] PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[Fri Jan 19 17:46:09.699900 2018] [:error] [pid 25408] [client xx.xx.xx.xx:59836] PHP Fatal error:  Unknown: Failed opening required '/usr/share/phpmyadmin/index.php' (include_path='.:/usr/share/php') in Unknown on line 0
So I added

Code: Select all

open_basedir = /usr/share/phpmyadmin/:/usr/share/php
In my php.ini but still not working. That's why I want to read the log files. Keep you updated.