Issues with MultiPHP and NGINX Template Install

Post Reply
MohdKhan
Posts: 5
Joined: Sun Jul 05, 2020 1:51 pm

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:~#
MohdKhan
Posts: 5
Joined: Sun Jul 05, 2020 1:51 pm

Please Help ME...
User avatar
myVesta
Site Admin
Posts: 963
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 10 times
Been thanked: 6 times

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
MohdKhan
Posts: 5
Joined: Sun Jul 05, 2020 1:51 pm

Yep, I just Copy and Paste.

Thanks for help.
Post Reply