Skip to content

Commit

Permalink
Ubuntu 18.x Support Upgrade to PHP7.3
Browse files Browse the repository at this point in the history
Ubuntu 18.x Support Upgrade to PHP7.3
  • Loading branch information
cryptopool-builders committed Nov 9, 2019
1 parent 290b7e7 commit eb6fdab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

source /etc/functions.sh

RESULT=$(dialog --stdout --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.44" --menu "Choose one" -1 60 6 \
RESULT=$(dialog --stdout --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.45" --menu "Choose one" -1 60 6 \
' ' "- For small private pools -" \
1 "YiiMP - Single Server" \
' ' "- If you plan on adding more servers later -" \
Expand Down
2 changes: 1 addition & 1 deletion nginx_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ sudo rm -r /etc/nginx/sites-available/default
sudo rm -r /etc/nginx/sites-enabled/default
echo -e "$GREEN NGINX upgrade complete...$COL_RESET"
restart_service nginx
restart_service php7.2-fpm
restart_service php7.3-fpm
cd $HOME/multipool/yiimp_single
16 changes: 8 additions & 8 deletions web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ server {
location ~ ^/index\.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Expand Down Expand Up @@ -150,7 +150,7 @@ sudo ln -s /etc/nginx/sites-available/${DomainName}.conf /etc/nginx/sites-enable
sudo ln -s $STORAGE_ROOT/yiimp/site/web /var/www/${DomainName}/html

restart_service nginx
restart_service php7.2-fpm
restart_service php7.3-fpm

if [[ ("$InstallSSL" == "y" || "$InstallSSL" == "Y" || "$InstallSSL" == "yes" || "$InstallSSL" == "Yes" || "$InstallSSL" == "YES") ]]; then
echo -e " Installing LetsEncrypt and setting up SSL...$COL_RESET"
Expand Down Expand Up @@ -269,7 +269,7 @@ server {
location ~ ^/index\.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Expand Down Expand Up @@ -297,7 +297,7 @@ server {
fi

restart_service nginx
restart_service php7.2-fpm
restart_service php7.3-fpm

else
echo 'include /etc/nginx/blockuseragents.rules;
Expand Down Expand Up @@ -378,7 +378,7 @@ server {
location ~ ^/index\.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Expand Down Expand Up @@ -414,7 +414,7 @@ sudo ln -s /etc/nginx/sites-available/${DomainName}.conf /etc/nginx/sites-enable
sudo ln -s $STORAGE_ROOT/yiimp/site/web /var/www/${DomainName}/html

restart_service nginx
restart_service php7.2-fpm
restart_service php7.3-fpm

if [[ ("$InstallSSL" == "y" || "$InstallSSL" == "Y" || "$InstallSSL" == "yes" || "$InstallSSL" == "Yes" || "$InstallSSL" == "YES") ]]; then
echo -e " Installing LetsEncrypt and setting up SSL...$COL_RESET"
Expand Down Expand Up @@ -532,7 +532,7 @@ server {
location ~ ^/index\.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Expand Down Expand Up @@ -560,7 +560,7 @@ server {
fi

restart_service nginx
restart_service php7.2-fpm
restart_service php7.3-fpm

fi
echo -e " Creating YiiMP configuration files...$COL_RESET"
Expand Down

0 comments on commit eb6fdab

Please sign in to comment.