Page 1 of 1

Bug report

Posted: Sat Dec 23, 2017 8:56 am
by ifeelingz
Is there a path change of vstats?

ิbefore :
location /vstats/ {
alias /home/admin/web/host.domain.in.th/stats/;
include /home/admin/web/host.domain.in.th/stats/auth.conf*;
}
nginx work

lastest :
location /vstats/ {
alias /home/sygnus/web/host.domain.in.th/stats/;
include /home/sygnus/conf/web/host.domain.in.th.auth
}
nginx not work

After installing vestcp ( nginx with php-fpm ), nginx is not working.

Re: Bug report

Posted: Tue Jan 02, 2018 10:02 pm
by rhyker2u
ah! I had the exact same happening to me! Phew ... feel a bit better now :-) as I read on the frontpage how the update is supposed to be flawless. Well ... not quite. I got around the nginx error by writing this script:

Code: Select all

#!/bin/bash

source /etc/profile.d/vesta.sh
source /usr/local/vesta/conf/vesta.conf

sed -i "s|include %home%/%user%/conf/web/%domain%.auth|#include %home%/%user%/conf/web/%domain%.auth|" \
    $VESTA/data/templates/web/nginx/*/*tpl >/dev/null 2>&1

if [ "$WEB_SYSTEM" != 'nginx' ]; then
    exit
fi

$VESTA/bin/v-rebuild-web-domains admin no >/dev/null 2>&1
$VESTA/bin/v-restart-service nginx
which is a modification of /usr/local/vesta/upd/fix_nginx_auth.sh

Only by commenting out that auth line I got nginx to work again. However had other issues thereafter where all my db users created on vestacp level lost access to WP. Matter of re-granting user privileges on MySQL level? I bypassed that issue by changing all my wp-config.php with DB root access. To then find out how any changes or adding new domains in vestacp gave php-fpm errors. And after hours of troubleshooting found out other problems. Long story short? I've reinstalled all my servers from scratch.

Re: Bug report

Posted: Thu Jan 04, 2018 11:43 am
by imperio
Fixed