Page 1 of 1

Issues with MultiPHP and NGINX Template Install

Posted: Sun Jul 05, 2020 1:53 pm
by MohdKhan
While Installing MultiPHP these errors come.

root@hii:~# bash ./multi-php-install.sh
./multi-php-install.sh: line 2: $'\r': command not found
./multi-php-install.sh: line 6: $'\r': command not found
./multi-php-install.sh: line 13: $'\r': command not found
./multi-php-install.sh: line 15: $'\r': command not found
./multi-php-install.sh: line 56: syntax error near unexpected token `$'{\r''
'/multi-php-install.sh: line 56: `function press_enter {
root@hii:~#

while installing nginx template

root@hii:~# bash ./install_rate_limit_tpl.sh
./install_rate_limit_tpl.sh: line 2: $'\r': command not found
./install_rate_limit_tpl.sh: line 12: $'\r': command not found
./install_rate_limit_tpl.sh: line 58: syntax error: unexpected end of file
root@hii:~#

Re: Issues with MultiPHP and NGINX Template Install

Posted: Sun Jul 05, 2020 1:53 pm
by MohdKhan
Please Help ME...

Re: Issues with MultiPHP and NGINX Template Install

Posted: Sun Jul 05, 2020 1:57 pm
by myVesta
Please download those scripts with cURL or wget.
Looks like you copy them via FTP or edited them with some Windows editor (or you copied the source code directly from the browser), and that way you got CRLF line endings in file.

So:

Code: Select all

cd /root
wget -nv -O /root/vesta-inst-php.sh https://c.myvestacp.com/tools/multi-php-install.sh
chmod u+x ./vesta-inst-php.sh

# put 1 on desired PHP versions
mcedit ./vesta-inst-php.sh

sudo ./vesta-inst-php.sh

Code: Select all

curl -O https://raw.githubusercontent.com/myvesta/vesta/master/src/deb/for-download/tools/rate-limit-tpl/install_rate_limit_tpl.sh
bash install_rate_limit_tpl.sh

Re: Issues with MultiPHP and NGINX Template Install

Posted: Sun Jul 05, 2020 1:59 pm
by MohdKhan
Yep, I just Copy and Paste.

Thanks for help.