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:~#
Issues with MultiPHP and NGINX Template Install
- 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:
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