vesta
vesta copied to clipboard
v-rebuild-web-domains
Debian 8, VestaCP 1.0.5 php-fpm 7.0, nginx, mysql
/usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: 6:addr:ess]:port': integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: -: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: to: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: listen: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: on: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: a: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: TCP: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: socket: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: to: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: a: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: specific: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: IPv6: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: address: integer expression expected /usr/local/vesta/bin/v-add-web-domain-backend: line 52: [: on: integer expression expected Error: php7.0-fpm restart failed
Encountered this problem while upgrading the php (7.2 -> 7.4) on my server (nginx + php-fpm).
Solved with overwriting the new www.conf with the old.
cp /etc/php/<old-version-number>/fpm/pool.d/www.conf /etc/php/<new-version-number>/fpm/pool.d/www.conf
Cheers.
Same for me, while migrating a user to a new server
The problem with the grep grep listen $pool/* 2>/dev/null |grep -o :[0-9].*
(line 49) that takes also the lines that are commented, I've modified it to to ignore commented lines:
ports=$(grep --invert-match '^;' $pool/* 2>/dev/null |grep listen 2>/dev/null |grep -o :[0-9].*)
Now it works.