diff --git a/README.md b/README.md index e4447616..74ea4cdc 100644 --- a/README.md +++ b/README.md @@ -1,62 +1,53 @@ -# Yiimp_install_scrypt v0.2 (update Avril, 2020) - -Site : https://www.xavatar.com - -Discord : https://discord.gg/zcCXjkQ - -TUTO Youtube (16.04 / 18.04 - Without SSL) : https://www.youtube.com/watch?v=qE0rhfJ1g2k +# Yiimp_install_scrypt v0.3 (update May 2022) Official Yiimp (used in this script for Yiimp Installation): https://github.com/tpruvot/yiimp -Original Yiimp Installer : https://github.com/cryptopool-builders/multipool_original_yiimp_installer - - -*********************************** +--- ## Install script for yiimp on Ubuntu Server 16.04 / 18.04 (use Tpruvot's Yiimp) USE THIS SCRIPT ON FRESH INSTALL UBUNTU Server 16.04 / 18.04 ! Connect on your VPS => + - apt update - apt upgrade - reboot - adduser pool (pool it's just an example...) - adduser pool sudo - su - pool +- exit +- su - pool - sudo apt -y install git -- git clone https://github.com/xavatar/yiimp_install_scrypt.git +- git clone https://github.com/CryptoGreekCafe/yiimp_install_scrypt.git - cd yiimp_install_scrypt/ - bash install.sh (DO NOT RUN THE SCRIPT AS ROOT or SUDO) - At the end, you MUST REBOOT to finalize installation... Finish ! + - Go http://xxx.xxx.xxx.xxx or https://xxx.xxx.xxx.xxx (if you have chosen LetsEncrypt SSL). Enjoy ! -- Go http://xxx.xxx.xxx.xxx/AdminPanel or https://xxx.xxx.xxx.xxx/AdminPanel to access Panel Admin +- Go http://xxx.xxx.xxx.xxx/site/myadmin or https://xxx.xxx.xxx.xxx/site/myadmin to access Panel Admin If you are issue after installation (nginx,mariadb... not found), use this script : bash install-debug.sh (watch the log during installation) -###### :bangbang: **Kudaraidee Install Script :** -- Instead Tpruvot's Yiimp, you can use the Kudaraidee's Repo Yiimp : git clone -b Kudaraidee https://github.com/Kudaraidee/yiimp.git -- It's an updated Yiimp, with more algo, some fix.... - ###### :bangbang: **YOU MUST UPDATE THE FOLLOWING FILES :** + - **/var/web/serverconfig.php :** update this file to include your public ip (line = YAAMP_ADMIN_IP) to access the admin panel (Put your PERSONNAL IP, NOT IP of your VPS). update with public keys from exchanges. update with other information specific to your server.. - **/etc/yiimp/keys.php :** update with secrect keys from the exchanges (not mandatory) - **If you want change 'AdminPanel' to access Panel Admin :** Edit this file "/var/web/yaamp/modules/site/SiteController.php" and Line 11 => change 'AdminPanel' +###### :bangbang: **IMPORTANT** : -###### :bangbang: **IMPORTANT** : - -- The configuration of yiimp and coin require a minimum of knowledge in linux +- The configuration of yiimp and coin require a minimum of knowledge in linux & many beers... - Your mysql information (login/Password) is saved in **~/.my.cnf** -*********************************** +--- ###### This script has an interactive beginning and will ask for the following information : -- Server Name (no http:// or www !!!!! Example : crypto.com OR pool.crypto.com OR 80.41.52.63) -- Are you using a subdomain (mypoolx11.crypto.com) +- Server Name (no http:// or www !!!!! Example : cryptogreek.cafe OR pool.cryptogreek.cafe OR 80.80.80.83) +- Are you using a subdomain (pool.cryptogreek.cafe) - Enter support email - Set stratum to AutoExchange - Your Public IP for admin access (Put your PERSONNAL IP, NOT IP of your VPS) @@ -64,17 +55,10 @@ If you are issue after installation (nginx,mariadb... not found), use this scrip - Install UFW and configure ports - Install LetsEncrypt SSL -*********************************** +--- **This install script will get you 95% ready to go with yiimp. There are a few things you need to do after the main install is finished.** -While I did add some server security to the script, it is every server owners responsibility to fully secure their own servers. After the installation you will still need to customize your serverconfig.php file to your liking, add your API keys, and build/add your coins to the control panel. - -There will be several wallets already in yiimp. These have nothing to do with the installation script and are from the database import from the yiimp github. - -If you need further assistance we have a small but growing discord channel at https://discord.gg/zcCXjkQ +While I did add some server security to the script, it is every server owners responsibility to fully secure their own servers. After the installation you will still need to customize your serverconfig.php file to your liking, add your API keys, and build/add your coins to the control panel. -If this helped you or you feel giving please donate : -- BTC Donation : 1C1hnjk3WhuAvUN6Ny6LTxPD3rwSZwapW7 -- BCH Donation : 1PqjApUdjwU9k4v1RDWf6XveARyEXaiGUz -- ETH Donation : 0xc23E6902fF8Cd8878EDADE18Dc49B3505395F0a1 +There will be several wallets already in yiimp. These have nothing to do with the installation script and are from the database import from the yiimp github. diff --git a/install.sh b/install.sh index 8380d9cc..a5aa2bc7 100644 --- a/install.sh +++ b/install.sh @@ -1,20 +1,19 @@ #!/bin/bash ################################################################################ -# Original Author: crombiecrunch -# Modified by : Xavatar (https://github.com/xavatar/yiimp_install_scrypt) -# Web: https://www.xavatar.com -# +# Original Author: Kudaraidee +# Modified by : Delari (https://github.com/xavatar/yiimp_install_scrypt) + # Program: # Install yiimp on Ubuntu 16.04/18.04 running Nginx, MariaDB, and php7.3 -# v0.2 (update Avril, 2020) -# +# v0.3 (update May, 2022) +# ################################################################################ - + output() { printf "\E[0;33;40m" echo $1 - printf "\E[0m" + printf "\E[0m"ku } displayErr() { @@ -31,7 +30,7 @@ # It needs passwordless sudo functionality. '""''"${whoami}"''""' ALL=(ALL) NOPASSWD:ALL ' | sudo -E tee /etc/sudoers.d/${whoami} >/dev/null 2>&1 - + #Copy needed files sudo cp -r conf/functions.sh /etc/ sudo cp -r utils/screen-scrypt.sh /etc/ @@ -45,8 +44,8 @@ clear echo echo -e "$GREEN************************************************************************$COL_RESET" - echo -e "$GREEN Yiimp Install Script v0.2 $COL_RESET" - echo -e "$GREEN Install yiimp on Ubuntu 16.04/18.04 running Nginx, MariaDB, and php7.3 $COL_RESET" + echo -e "$GREEN Yiimp Install Script v0.3 $COL_RESET" + echo -e "$GREEN Install yiimp on Ubuntu 16.04/18.04 running Nginx, MariaDB, and php7.2 $COL_RESET" echo -e "$GREEN************************************************************************$COL_RESET" echo sleep 3 @@ -56,13 +55,14 @@ echo echo echo -e "$CYAN => Updating system and installing required packages :$COL_RESET" - echo + echo sleep 3 - - hide_output sudo apt -y update - hide_output sudo apt -y upgrade - hide_output sudo apt -y autoremove - apt_install dialog python3 python3-pip acl nano apt-transport-https + + sudo apt -y update + sudo apt -y upgrade + sudo apt -y autoremove + sudo apt-get install -y software-properties-common + sudo apt -y install dialog python3 python3-pip acl nano apt-transport-https echo -e "$GREEN Done...$COL_RESET" @@ -81,23 +81,23 @@ echo -e "$RED Make sure you double check before hitting enter! Only one shot at these! $COL_RESET" echo #read -e -p "Enter time zone (e.g. America/New_York) : " TIME - read -e -p "Domain Name (no http:// or www. just : example.com or pool.example.com or 185.22.24.26) : " server_name + read -e -p "Domain Name (no http:// or www. just : example.com or pool.example.com or Public IP (185.22.24.26)) : " server_name read -e -p "Are you using a subdomain (mycryptopool.example.com?) [y/N] : " sub_domain read -e -p "Enter support email (e.g. admin@example.com) : " EMAIL read -e -p "Set Pool to AutoExchange? i.e. mine any coin with BTC address? [y/N] : " BTC #read -e -p "Please enter a new location for /site/adminRights this is to customize the Admin Panel entrance url (e.g. myAdminpanel) : " admin_panel - read -e -p "Enter the Public IP of the system you will use to access the admin panel (http://www.whatsmyip.org/) : " Public + read -e -p "Enter the Public IP of the system you will use to access the admin panel (IP of YOUR PC where need to be access to Panel) : " Public read -e -p "Install Fail2ban? [Y/n] : " install_fail2ban read -e -p "Install UFW and configure ports? [Y/n] : " UFW read -e -p "Install LetsEncrypt SSL? IMPORTANT! You MUST have your domain name pointed to this server prior to running the script!! [Y/n]: " ssl_install - - + + # Switch Aptitude #echo #echo -e "$CYAN Switching to Aptitude $COL_RESET" - #echo + #echo #sleep 3 - #apt_install aptitude + #sudo apt -y install aptitude #echo -e "$GREEN Done...$COL_RESET $COL_RESET" @@ -107,24 +107,25 @@ echo -e "$CYAN => Installing Nginx server : $COL_RESET" echo sleep 3 - + if [ -f /usr/sbin/apache2 ]; then echo -e "Removing apache..." - hide_output apt-get -y purge apache2 apache2-* - hide_output apt-get -y --purge autoremove + sudo apt-get -y purge apache2 apache2-* + sudo apt-get -y --purge autoremove fi - apt_install nginx - hide_output sudo rm /etc/nginx/sites-enabled/default - hide_output sudo systemctl start nginx.service - hide_output sudo systemctl enable nginx.service - hide_output sudo systemctl start cron.service - hide_output sudo systemctl enable cron.service + sudo apt -y install nginx + sudo rm /etc/nginx/sites-enabled/default + sudo systemctl start nginx.service + sudo systemctl enable nginx.service + sudo systemctl start cron.service + sudo systemctl enable cron.service sleep 5 sudo systemctl status nginx | sed -n "1,3p" + sleep 15 echo echo -e "$GREEN Done...$COL_RESET" - + # Making Nginx a bit hard echo 'map $http_user_agent $blockedagent { @@ -136,104 +137,107 @@ ~*bandit 1; } ' | sudo -E tee /etc/nginx/blockuseragents.rules >/dev/null 2>&1 - - + + # Installing Mariadb echo echo echo -e "$CYAN => Installing Mariadb Server : $COL_RESET" echo sleep 3 - + # Create random password rootpasswd=$(openssl rand -base64 12) export DEBIAN_FRONTEND="noninteractive" - apt_install mariadb-server - hide_output sudo systemctl start mysql - hide_output sudo systemctl enable mysql + sudo apt -y install mariadb-server + sudo systemctl enable mariadb.service + sudo systemctl start mariadb.service sleep 5 - sudo systemctl status mysql | sed -n "1,3p" + sudo systemctl status mariadb | sed -n "1,3p" + sleep 15 echo echo -e "$GREEN Done...$COL_RESET" - - # Installing Installing php7.3 + + # Installing Installing php7.2 echo echo - echo -e "$CYAN => Installing php7.3 : $COL_RESET" + echo -e "$CYAN => Installing php7.2 : $COL_RESET" echo sleep 3 - + source conf/pool.conf if [ ! -f /etc/apt/sources.list.d/ondrej-php-bionic.list ]; then - hide_output sudo add-apt-repository -y ppa:ondrej/php + sudo add-apt-repository -y ppa:ondrej/php fi - hide_output sudo apt -y update + sudo apt -y update if [[ ("$DISTRO" == "16") ]]; then - apt_install php7.3-fpm php7.3-opcache php7.3 php7.3-common php7.3-gd php7.3-mysql php7.3-imap php7.3-cli \ - php7.3-cgi php-pear php-auth imagemagick libruby php7.3-curl php7.3-intl php7.3-pspell mcrypt\ - php7.3-recode php7.3-sqlite3 php7.3-tidy php7.3-xmlrpc php7.3-xsl memcached php-memcache php-imagick php-gettext php7.3-zip php7.3-mbstring - #hide_output sudo phpenmod mcrypt - #hide_output sudo phpenmod mbstring + sudo apt -y install php7.2-fpm php7.2-opcache php7.2 php7.2-common php7.2-gd php7.2-mysql php7.2-imap php7.2-cli \ + php7.2-cgi php-pear php-auth imagemagick libruby php7.2-curl php7.2-intl php7.2-pspell mcrypt\ + php7.2-recode php7.2-sqlite3 php7.2-tidy php7.2-xmlrpc php7.2-xsl memcached php-memcache php-imagick php-gettext php7.2-zip php7.3-mbstring + #sudo phpenmod mcrypt + #sudo phpenmod mbstring else - apt_install php7.3-fpm php7.3-opcache php7.3 php7.3-common php7.3-gd php7.3-mysql php7.3-imap php7.3-cli \ - php7.3-cgi php-pear imagemagick libruby php7.3-curl php7.3-intl php7.3-pspell mcrypt\ - php7.3-recode php7.3-sqlite3 php7.3-tidy php7.3-xmlrpc php7.3-xsl memcached php-memcache php-imagick php-gettext php7.3-zip php7.3-mbstring \ + sudo apt -y install php7.2-fpm php7.2-opcache php7.2 php7.2-common php7.2-gd php7.2-mysql php7.2-imap php7.2-cli \ + php7.2-cgi php-pear imagemagick libruby php7.2-curl php7.2-intl php7.2-pspell mcrypt\ + php7.2-recode php7.2-sqlite3 php7.2-tidy php7.2-xmlrpc php7.2-xsl memcached php7.2-memcache php7.2-memcached php-imagick php-gettext php7.2-zip php7.2-mbstring \ libpsl-dev libnghttp2-dev fi sleep 5 - hide_output sudo systemctl start php7.3-fpm - sudo systemctl status php7.3-fpm | sed -n "1,3p" + sudo systemctl start php7.2-fpm + sudo systemctl status php7.2-fpm | sed -n "1,3p" + sleep 15 echo echo -e "$GREEN Done...$COL_RESET" - + + # Installing other needed files echo echo echo -e "$CYAN => Installing other needed files : $COL_RESET" echo sleep 3 - - apt_install libgmp3-dev libmysqlclient-dev libcurl4-gnutls-dev libkrb5-dev libldap2-dev libidn11-dev gnutls-dev \ + + sudo apt -y install libgmp3-dev libmysqlclient-dev libcurl4-gnutls-dev libkrb5-dev libldap2-dev libidn11-dev gnutls-dev \ librtmp-dev sendmail mutt screen git - apt_install pwgen -y + sudo apt -y install pwgen -y echo -e "$GREEN Done...$COL_RESET" - sleep 3 + sleep 3 + - # Installing Package to compile crypto currency echo echo echo -e "$CYAN => Installing Package to compile crypto currency $COL_RESET" echo sleep 3 - - apt_install software-properties-common build-essential - apt_install libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils git cmake libboost-all-dev zlib1g-dev libz-dev libseccomp-dev libcap-dev libminiupnpc-dev gettext - apt_install libminiupnpc10 libzmq5 - apt_install libcanberra-gtk-module libqrencode-dev libzmq3-dev - apt_install libqt5gui5 libqt5core5a libqt5webkit5-dev libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler - hide_output sudo add-apt-repository -y ppa:bitcoin/bitcoin - hide_output sudo apt -y update - apt_install libdb4.8-dev libdb4.8++-dev libdb5.3 libdb5.3++ + + sudo apt -y install software-properties-common build-essential + sudo apt -y install libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils git cmake libboost-all-dev zlib1g-dev libz-dev libseccomp-dev libcap-dev libminiupnpc-dev gettext + sudo apt -y install libminiupnpc10 libzmq5 + sudo apt -y install libcanberra-gtk-module libqrencode-dev libzmq3-dev + sudo apt -y install libqt5gui5 libqt5core5a libqt5webkit5-dev libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler + sudo add-apt-repository -y ppa:bitcoin/bitcoin + sudo apt -y update + sudo apt -y install libdb4.8-dev libdb4.8++-dev libdb5.3 libdb5.3++ echo -e "$GREEN Done...$COL_RESET" - - + + # Generating Random Passwords password=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1` password2=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1` AUTOGENERATED_PASS=`pwgen -c -1 20` - - + + #TODO: Need testing # Test Email echo echo echo -e "$CYAN => Testing to see if server emails are sent $COL_RESET" echo sleep 3 - + if [[ "$root_email" != "" ]]; then echo $root_email > sudo tee --append ~/.email echo $root_email > sudo tee --append ~/.forward @@ -250,110 +254,111 @@ fi fi echo -e "$GREEN Done...$COL_RESET" - + # Installing Fail2Ban & UFW echo echo echo -e "$CYAN => Some optional installs (Fail2Ban & UFW) $COL_RESET" echo sleep 3 - - + + if [[ ("$install_fail2ban" == "y" || "$install_fail2ban" == "Y" || "$install_fail2ban" == "") ]]; then - apt_install fail2ban + sudo apt -y install fail2ban sleep 5 sudo systemctl status fail2ban | sed -n "1,3p" fi if [[ ("$UFW" == "y" || "$UFW" == "Y" || "$UFW" == "") ]]; then - apt_install ufw - hide_output sudo ufw default deny incoming - hide_output sudo ufw default allow outgoing - hide_output sudo ufw allow ssh - hide_output sudo ufw allow http - hide_output sudo ufw allow https - hide_output sudo ufw allow 3333/tcp - hide_output sudo ufw allow 3339/tcp - hide_output sudo ufw allow 3334/tcp - hide_output sudo ufw allow 3433/tcp - hide_output sudo ufw allow 3555/tcp - hide_output sudo ufw allow 3556/tcp - hide_output sudo ufw allow 3573/tcp - hide_output sudo ufw allow 3535/tcp - hide_output sudo ufw allow 3533/tcp - hide_output sudo ufw allow 3553/tcp - hide_output sudo ufw allow 3633/tcp - hide_output sudo ufw allow 3733/tcp - hide_output sudo ufw allow 3636/tcp - hide_output sudo ufw allow 3737/tcp - hide_output sudo ufw allow 3739/tcp - hide_output sudo ufw allow 3747/tcp - hide_output sudo ufw allow 3833/tcp - hide_output sudo ufw allow 3933/tcp - hide_output sudo ufw allow 4033/tcp - hide_output sudo ufw allow 4133/tcp - hide_output sudo ufw allow 4233/tcp - hide_output sudo ufw allow 4234/tcp - hide_output sudo ufw allow 4333/tcp - hide_output sudo ufw allow 4433/tcp - hide_output sudo ufw allow 4533/tcp - hide_output sudo ufw allow 4553/tcp - hide_output sudo ufw allow 4633/tcp - hide_output sudo ufw allow 4733/tcp - hide_output sudo ufw allow 4833/tcp - hide_output sudo ufw allow 4933/tcp - hide_output sudo ufw allow 5033/tcp - hide_output sudo ufw allow 5133/tcp - hide_output sudo ufw allow 5233/tcp - hide_output sudo ufw allow 5333/tcp - hide_output sudo ufw allow 5433/tcp - hide_output sudo ufw allow 5533/tcp - hide_output sudo ufw allow 5733/tcp - hide_output sudo ufw allow 5743/tcp - hide_output sudo ufw allow 3252/tcp - hide_output sudo ufw allow 5755/tcp - hide_output sudo ufw allow 5766/tcp - hide_output sudo ufw allow 5833/tcp - hide_output sudo ufw allow 5933/tcp - hide_output sudo ufw allow 6033/tcp - hide_output sudo ufw allow 5034/tcp - hide_output sudo ufw allow 6133/tcp - hide_output sudo ufw allow 6233/tcp - hide_output sudo ufw allow 6333/tcp - hide_output sudo ufw allow 6433/tcp - hide_output sudo ufw allow 7433/tcp - hide_output sudo ufw allow 8333/tcp - hide_output sudo ufw allow 8463/tcp - hide_output sudo ufw allow 8433/tcp - hide_output sudo ufw allow 8533/tcp - hide_output sudo ufw --force enable + sudo apt -y install ufw + sudo ufw default deny incoming + sudo ufw default allow outgoing + sudo ufw allow ssh + sudo ufw allow http + sudo ufw allow https + sudo ufw allow 3333/tcp + sudo ufw allow 3339/tcp + sudo ufw allow 3334/tcp + sudo ufw allow 3433/tcp + sudo ufw allow 3555/tcp + sudo ufw allow 3556/tcp + sudo ufw allow 3573/tcp + sudo ufw allow 3535/tcp + sudo ufw allow 3533/tcp + sudo ufw allow 3553/tcp + sudo ufw allow 3633/tcp + sudo ufw allow 3733/tcp + sudo ufw allow 3636/tcp + sudo ufw allow 3737/tcp + sudo ufw allow 3739/tcp + sudo ufw allow 3747/tcp + sudo ufw allow 3833/tcp + sudo ufw allow 3933/tcp + sudo ufw allow 4033/tcp + sudo ufw allow 4133/tcp + sudo ufw allow 4233/tcp + sudo ufw allow 4234/tcp + sudo ufw allow 4333/tcp + sudo ufw allow 4433/tcp + sudo ufw allow 4533/tcp + sudo ufw allow 4553/tcp + sudo ufw allow 4633/tcp + sudo ufw allow 4733/tcp + sudo ufw allow 4833/tcp + sudo ufw allow 4933/tcp + sudo ufw allow 5033/tcp + sudo ufw allow 5133/tcp + sudo ufw allow 5233/tcp + sudo ufw allow 5333/tcp + sudo ufw allow 5433/tcp + sudo ufw allow 5533/tcp + sudo ufw allow 5733/tcp + sudo ufw allow 5743/tcp + sudo ufw allow 3252/tcp + sudo ufw allow 5755/tcp + sudo ufw allow 5766/tcp + sudo ufw allow 5833/tcp + sudo ufw allow 5933/tcp + sudo ufw allow 6033/tcp + sudo ufw allow 5034/tcp + sudo ufw allow 6133/tcp + sudo ufw allow 6233/tcp + sudo ufw allow 6333/tcp + sudo ufw allow 6433/tcp + sudo ufw allow 7433/tcp + sudo ufw allow 7070/tcp + sudo ufw allow 8333/tcp + sudo ufw allow 8463/tcp + sudo ufw allow 8433/tcp + sudo ufw allow 8533/tcp + sudo ufw --force enable sleep 5 - sudo systemctl status ufw | sed -n "1,3p" + sudo systemctl status ufw | sed -n "1,3p" fi - + echo echo -e "$GREEN Done...$COL_RESET" - + # Installing PhpMyAdmin echo echo echo -e "$CYAN => Installing phpMyAdmin $COL_RESET" echo sleep 3 - + echo "phpmyadmin phpmyadmin/reconfigure-webserver multiselect" | sudo debconf-set-selections echo "phpmyadmin phpmyadmin/dbconfig-install boolean true" | sudo debconf-set-selections echo "phpmyadmin phpmyadmin/mysql/admin-user string root" | sudo debconf-set-selections echo "phpmyadmin phpmyadmin/mysql/admin-pass password $rootpasswd" | sudo debconf-set-selections echo "phpmyadmin phpmyadmin/mysql/app-pass password $AUTOGENERATED_PASS" | sudo debconf-set-selections echo "phpmyadmin phpmyadmin/app-password-confirm password $AUTOGENERATED_PASS" | sudo debconf-set-selections - apt_install phpmyadmin + sudo apt -y install phpmyadmin echo -e "$GREEN Done...$COL_RESET" - - + + # Installing Yiimp echo echo @@ -362,29 +367,31 @@ echo -e "Grabbing yiimp fron Github, building files and setting file structure." echo sleep 3 - + # Generating Random Password for stratum blckntifypass=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1` - + # Compil Blocknotify cd ~ - hide_output git clone https://github.com/tpruvot/yiimp + git clone https://github.com/Kudaraidee/yiimp.git cd $HOME/yiimp/blocknotify sudo sed -i 's/tu8tu5/'$blckntifypass'/' blocknotify.cpp - hide_output sudo make - - # Compil iniparser - cd $HOME/yiimp/stratum/iniparser - hide_output sudo make - + make -j$((`nproc`+1)) + # Compil Stratum - cd $HOME/yiimp/stratum + cd $HOME/yiimp/stratum/ + git submodule init && git submodule update + make -C algos + make -C sha3 + make -C iniparser + cd secp256k1 && chmod +x autogen.sh && ./autogen.sh && ./configure --enable-experimental --enable-module-ecdh --with-bignum=no --enable-endomorphism && make + cd $HOME/yiimp/stratum/ if [[ ("$BTC" == "y" || "$BTC" == "Y") ]]; then sudo sed -i 's/CFLAGS += -DNO_EXCHANGE/#CFLAGS += -DNO_EXCHANGE/' $HOME/yiimp/stratum/Makefile fi - hide_output sudo make - + make -j$((`nproc`+1)) + # Copy Files (Blocknotify,iniparser,Stratum) cd $HOME/yiimp sudo sed -i 's/AdminRights/'AdminPanel'/' $HOME/yiimp/web/yaamp/modules/site/SiteController.php @@ -425,7 +432,7 @@ echo echo -e "$CYAN => Update default timezone. $COL_RESET" echo - + echo -e " Setting TimeZone to UTC...$COL_RESET" if [ ! -f /etc/timezone ]; then echo "Setting timezone to UTC." @@ -435,21 +442,21 @@ sudo systemctl status rsyslog | sed -n "1,3p" echo echo -e "$GREEN Done...$COL_RESET" - - + + # Creating webserver initial config file echo echo echo -e "$CYAN => Creating webserver initial config file $COL_RESET" echo - + # Adding user to group, creating dir structure, setting permissions sudo mkdir -p /var/www/$server_name/html if [[ ("$sub_domain" == "y" || "$sub_domain" == "Y") ]]; then echo 'include /etc/nginx/blockuseragents.rules; - server { - if ($blockedagent) { + server { + if ($blockedagent) { return 403; } if ($request_method !~ ^(GET|HEAD|POST)$) { @@ -461,27 +468,27 @@ root "/var/www/'"${server_name}"'/html/web"; index index.html index.htm index.php; charset utf-8; - + location / { try_files $uri $uri/ /index.php?$args; } location @rewrite { rewrite ^/(.*)$ /index.php?r=$1; } - + location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } - + access_log /var/log/nginx/'"${server_name}"'.app-access.log; error_log /var/log/nginx/'"${server_name}"'.app-error.log; - + # allow larger file uploads and longer script runtimes - client_body_buffer_size 50k; + client_body_buffer_size 50k; client_header_buffer_size 50k; client_max_body_size 50k; large_client_header_buffers 2 50k; sendfile off; - + location ~ ^/index\.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; @@ -494,59 +501,65 @@ fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; - try_files $uri $uri/ =404; + try_files $uri $uri/ =404; } - location ~ \.php$ { - return 404; + location ~ \.php$ { + return 404; } - location ~ \.sh { - return 404; + location ~ \.sh { + return 404; } - location ~ /\.ht { - deny all; + location ~ /\.ht { + deny all; } - location ~ /.well-known { - allow all; + location ~ /.well-known { + allow all; + } + location ^~ /list-algos/ { + deny all; + access_log off; + return 301 https://$server_name; + } + location /phpmyadmin { + root /usr/share/; + index index.php; + try_files $uri $uri/ =404; + location ~ ^/phpmyadmin/(doc|sql|setup)/ { + deny all; + } + location ~ /phpmyadmin/(.+\.php)$ { + fastcgi_pass unix:/run/php/php7.3-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + include snippets/fastcgi-php.conf; } - location /phpmyadmin { - root /usr/share/; - index index.php; - try_files $uri $uri/ =404; - location ~ ^/phpmyadmin/(doc|sql|setup)/ { - deny all; - } - location ~ /phpmyadmin/(.+\.php)$ { - fastcgi_pass unix:/run/php/php7.3-fpm.sock; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include fastcgi_params; - include snippets/fastcgi-php.conf; - } } } ' | sudo -E tee /etc/nginx/sites-available/$server_name.conf >/dev/null 2>&1 sudo ln -s /etc/nginx/sites-available/$server_name.conf /etc/nginx/sites-enabled/$server_name.conf sudo ln -s /var/web /var/www/$server_name/html - hide_output sudo systemctl reload php7.3-fpm.service - hide_output sudo systemctl restart nginx.service + sudo ln -s /var/stratum/config /var/web/list-algos + sudo systemctl reload php7.3-fpm.service + sudo systemctl restart nginx.service echo -e "$GREEN Done...$COL_RESET" - + if [[ ("$ssl_install" == "y" || "$ssl_install" == "Y" || "$ssl_install" == "") ]]; then - + # Install SSL (with SubDomain) echo echo -e "Install LetsEncrypt and setting SSL (with SubDomain)" echo - - apt_install letsencrypt + + sudo apt -y install letsencrypt sudo letsencrypt certonly -a webroot --webroot-path=/var/web --email "$EMAIL" --agree-tos -d "$server_name" sudo rm /etc/nginx/sites-available/$server_name.conf sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048 # I am SSL Man! - echo 'include /etc/nginx/blockuseragents.rules; - server { - if ($blockedagent) { + echo 'include /etc/nginx/blockuseragents.rules; + server { + if ($blockedagent) { return 403; } if ($request_method !~ ^(GET|HEAD|POST)$) { @@ -555,12 +568,12 @@ listen 80; listen [::]:80; server_name '"${server_name}"'; - # enforce https + # enforce https return 301 https://$server_name$request_uri; - } - - server { - if ($blockedagent) { + } + + server { + if ($blockedagent) { return 403; } if ($request_method !~ ^(GET|HEAD|POST)$) { @@ -569,20 +582,20 @@ listen 443 ssl http2; listen [::]:443 ssl http2; server_name '"${server_name}"'; - + root /var/www/'"${server_name}"'/html/web; index index.php; - + access_log /var/log/nginx/'"${server_name}"'.app-access.log; error_log /var/log/nginx/'"${server_name}"'.app-error.log; - + # allow larger file uploads and longer script runtimes - client_body_buffer_size 50k; + client_body_buffer_size 50k; client_header_buffer_size 50k; client_max_body_size 50k; large_client_header_buffers 2 50k; sendfile off; - + # strengthen ssl security ssl_certificate /etc/letsencrypt/live/'"${server_name}"'/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/'"${server_name}"'/privkey.pem; @@ -591,22 +604,22 @@ ssl_session_cache shared:SSL:10m; ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4"; ssl_dhparam /etc/ssl/certs/dhparam.pem; - + # Add headers to serve security related headers add_header Strict-Transport-Security "max-age=15768000; preload;"; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; add_header Content-Security-Policy "frame-ancestors 'self'"; - + location / { try_files $uri $uri/ /index.php?$args; } location @rewrite { rewrite ^/(.*)$ /index.php?r=$1; } - - + + location ~ ^/index\.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; @@ -620,46 +633,46 @@ fastcgi_send_timeout 300; fastcgi_read_timeout 300; include /etc/nginx/fastcgi_params; - try_files $uri $uri/ =404; + try_files $uri $uri/ =404; } - location ~ \.php$ { - return 404; + location ~ \.php$ { + return 404; } - location ~ \.sh { - return 404; + location ~ \.sh { + return 404; } - + location ~ /\.ht { deny all; } - location /phpmyadmin { - root /usr/share/; - index index.php; - try_files $uri $uri/ =404; - location ~ ^/phpmyadmin/(doc|sql|setup)/ { - deny all; - } - location ~ /phpmyadmin/(.+\.php)$ { - fastcgi_pass unix:/run/php/php7.3-fpm.sock; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include fastcgi_params; - include snippets/fastcgi-php.conf; - } + location /phpmyadmin { + root /usr/share/; + index index.php; + try_files $uri $uri/ =404; + location ~ ^/phpmyadmin/(doc|sql|setup)/ { + deny all; + } + location ~ /phpmyadmin/(.+\.php)$ { + fastcgi_pass unix:/run/php/php7.3-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + include snippets/fastcgi-php.conf; + } } } - + ' | sudo -E tee /etc/nginx/sites-available/$server_name.conf >/dev/null 2>&1 - fi - - hide_output sudo systemctl reload php7.3-fpm.service - hide_output sudo systemctl restart nginx.service - echo -e "$GREEN Done...$COL_RESET" - - - else - echo 'include /etc/nginx/blockuseragents.rules; - server { - if ($blockedagent) { + fi + + sudo systemctl reload php7.3-fpm.service + sudo systemctl restart nginx.service + echo -e "$GREEN Done...$COL_RESET" + + + else + echo 'include /etc/nginx/blockuseragents.rules; + server { + if ($blockedagent) { return 403; } if ($request_method !~ ^(GET|HEAD|POST)$) { @@ -671,27 +684,27 @@ root "/var/www/'"${server_name}"'/html/web"; index index.html index.htm index.php; charset utf-8; - + location / { try_files $uri $uri/ /index.php?$args; } location @rewrite { rewrite ^/(.*)$ /index.php?r=$1; } - + location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } - + access_log /var/log/nginx/'"${server_name}"'.app-access.log; error_log /var/log/nginx/'"${server_name}"'.app-error.log; - + # allow larger file uploads and longer script runtimes - client_body_buffer_size 50k; + client_body_buffer_size 50k; client_header_buffer_size 50k; client_max_body_size 50k; large_client_header_buffers 2 50k; sendfile off; - + location ~ ^/index\.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; @@ -704,60 +717,66 @@ fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; - try_files $uri $uri/ =404; + try_files $uri $uri/ =404; } - location ~ \.php$ { - return 404; + location ~ \.php$ { + return 404; } - location ~ \.sh { - return 404; + location ~ \.sh { + return 404; } - location ~ /\.ht { - deny all; + location ~ /\.ht { + deny all; } - location ~ /.well-known { - allow all; + location ~ /.well-known { + allow all; + } + location ^~ /list-algos/ { + deny all; + access_log off; + return 301 https://$server_name; + } + location /phpmyadmin { + root /usr/share/; + index index.php; + try_files $uri $uri/ =404; + location ~ ^/phpmyadmin/(doc|sql|setup)/ { + deny all; + } + location ~ /phpmyadmin/(.+\.php)$ { + fastcgi_pass unix:/run/php/php7.3-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + include snippets/fastcgi-php.conf; } - location /phpmyadmin { - root /usr/share/; - index index.php; - try_files $uri $uri/ =404; - location ~ ^/phpmyadmin/(doc|sql|setup)/ { - deny all; - } - location ~ /phpmyadmin/(.+\.php)$ { - fastcgi_pass unix:/run/php/php7.3-fpm.sock; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include fastcgi_params; - include snippets/fastcgi-php.conf; - } } } ' | sudo -E tee /etc/nginx/sites-available/$server_name.conf >/dev/null 2>&1 sudo ln -s /etc/nginx/sites-available/$server_name.conf /etc/nginx/sites-enabled/$server_name.conf sudo ln -s /var/web /var/www/$server_name/html - hide_output sudo systemctl reload php7.3-fpm.service - hide_output sudo systemctl restart nginx.service + sudo ln -s /var/stratum/config /var/web/list-algos + sudo systemctl reload php7.3-fpm.service + sudo systemctl restart nginx.service echo -e "$GREEN Done...$COL_RESET" - - + + if [[ ("$ssl_install" == "y" || "$ssl_install" == "Y" || "$ssl_install" == "") ]]; then - + # Install SSL (without SubDomain) echo echo -e "Install LetsEncrypt and setting SSL (without SubDomain)" echo sleep 3 - - apt_install letsencrypt + + sudo apt -y install letsencrypt sudo letsencrypt certonly -a webroot --webroot-path=/var/web --email "$EMAIL" --agree-tos -d "$server_name" -d www."$server_name" sudo rm /etc/nginx/sites-available/$server_name.conf sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048 # I am SSL Man! - echo 'include /etc/nginx/blockuseragents.rules; - server { - if ($blockedagent) { + echo 'include /etc/nginx/blockuseragents.rules; + server { + if ($blockedagent) { return 403; } if ($request_method !~ ^(GET|HEAD|POST)$) { @@ -766,12 +785,12 @@ listen 80; listen [::]:80; server_name '"${server_name}"'; - # enforce https + # enforce https return 301 https://$server_name$request_uri; - } - - server { - if ($blockedagent) { + } + + server { + if ($blockedagent) { return 403; } if ($request_method !~ ^(GET|HEAD|POST)$) { @@ -780,20 +799,20 @@ listen 443 ssl http2; listen [::]:443 ssl http2; server_name '"${server_name}"' www.'"${server_name}"'; - + root /var/www/'"${server_name}"'/html/web; index index.php; - + access_log /var/log/nginx/'"${server_name}"'.app-access.log; error_log /var/log/nginx/'"${server_name}"'.app-error.log; - + # allow larger file uploads and longer script runtimes - client_body_buffer_size 50k; + client_body_buffer_size 50k; client_header_buffer_size 50k; client_max_body_size 50k; large_client_header_buffers 2 50k; sendfile off; - + # strengthen ssl security ssl_certificate /etc/letsencrypt/live/'"${server_name}"'/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/'"${server_name}"'/privkey.pem; @@ -802,22 +821,22 @@ ssl_session_cache shared:SSL:10m; ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4"; ssl_dhparam /etc/ssl/certs/dhparam.pem; - + # Add headers to serve security related headers add_header Strict-Transport-Security "max-age=15768000; preload;"; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; add_header Content-Security-Policy "frame-ancestors 'self'"; - + location / { try_files $uri $uri/ /index.php?$args; } location @rewrite { rewrite ^/(.*)$ /index.php?r=$1; } - - + + location ~ ^/index\.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; @@ -831,66 +850,68 @@ fastcgi_send_timeout 300; fastcgi_read_timeout 300; include /etc/nginx/fastcgi_params; - try_files $uri $uri/ =404; + try_files $uri $uri/ =404; } - location ~ \.php$ { - return 404; + location ~ \.php$ { + return 404; } + location ~ \.sh { - return 404; + return 404; + } + + location ~ /\.ht { + deny all; + } + + location /phpmyadmin { + root /usr/share/; + index index.php; + try_files $uri $uri/ =404; + location ~ ^/phpmyadmin/(doc|sql|setup)/ { + deny all; + } + location ~ /phpmyadmin/(.+\.php)$ { + fastcgi_pass unix:/run/php/php7.3-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + include snippets/fastcgi-php.conf; } - - location ~ /\.ht { - deny all; - } - location /phpmyadmin { - root /usr/share/; - index index.php; - try_files $uri $uri/ =404; - location ~ ^/phpmyadmin/(doc|sql|setup)/ { - deny all; - } - location ~ /phpmyadmin/(.+\.php)$ { - fastcgi_pass unix:/run/php/php7.3-fpm.sock; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include fastcgi_params; - include snippets/fastcgi-php.conf; - } } } - + ' | sudo -E tee /etc/nginx/sites-available/$server_name.conf >/dev/null 2>&1 - echo -e "$GREEN Done...$COL_RESET" + echo -e "$GREEN Done...$COL_RESET" fi - hide_output sudo systemctl reload php7.3-fpm.service - hide_output sudo systemctl restart nginx.service + sudo systemctl reload php7.3-fpm.service + sudo systemctl restart nginx.service fi - - + + # Config Database echo echo echo -e "$CYAN => Now for the database fun! $COL_RESET" echo sleep 3 - + # Create database Q1="CREATE DATABASE IF NOT EXISTS yiimpfrontend;" Q2="GRANT ALL ON *.* TO 'panel'@'localhost' IDENTIFIED BY '$password';" Q3="FLUSH PRIVILEGES;" SQL="${Q1}${Q2}${Q3}" sudo mysql -u root -p="" -e "$SQL" - + # Create stratum user Q1="GRANT ALL ON *.* TO 'stratum'@'localhost' IDENTIFIED BY '$password2';" Q2="FLUSH PRIVILEGES;" SQL="${Q1}${Q2}" - sudo mysql -u root -p="" -e "$SQL" - + sudo mysql -u root -p="" -e "$SQL" + #Create my.cnf - + echo ' [clienthost1] user=panel @@ -913,7 +934,7 @@ # Create keys file - echo ' + echo ' /dev/null 2>&1 - echo -e "$GREEN Done...$COL_RESET" + echo -e "$GREEN Done...$COL_RESET" + - # Peforming the SQL import echo echo @@ -947,13 +968,13 @@ echo -e "Performing the SQL import" echo sleep 3 - + cd ~ cd yiimp/sql - + # Import sql dump - sudo zcat 2016-04-03-yaamp.sql.gz | sudo mysql --defaults-group-suffix=host1 - + sudo zcat 2020-11-10-yaamp.sql.gz | sudo mysql --defaults-group-suffix=host1 + # Oh the humanity! sudo mysql --defaults-group-suffix=host1 --force < 2016-04-24-market_history.sql sudo mysql --defaults-group-suffix=host1 --force < 2016-04-27-settings.sql @@ -965,75 +986,80 @@ sudo mysql --defaults-group-suffix=host1 --force < 2016-11-23-coins.sql sudo mysql --defaults-group-suffix=host1 --force < 2017-02-05-benchmarks.sql sudo mysql --defaults-group-suffix=host1 --force < 2017-03-31-earnings_index.sql + sudo mysql --defaults-group-suffix=host1 --force < 2020-06-03-blocks.sql sudo mysql --defaults-group-suffix=host1 --force < 2017-05-accounts_case_swaptime.sql sudo mysql --defaults-group-suffix=host1 --force < 2017-06-payouts_coinid_memo.sql sudo mysql --defaults-group-suffix=host1 --force < 2017-09-notifications.sql sudo mysql --defaults-group-suffix=host1 --force < 2017-10-bookmarks.sql + sudo mysql --defaults-group-suffix=host1 --force < 2018-09-22-workers.sql sudo mysql --defaults-group-suffix=host1 --force < 2017-11-segwit.sql sudo mysql --defaults-group-suffix=host1 --force < 2018-01-stratums_ports.sql sudo mysql --defaults-group-suffix=host1 --force < 2018-02-coins_getinfo.sql + sudo mysql --defaults-group-suffix=host1 --force < 2019-03-coins_thepool_life.sql + sudo mysql --defaults-group-suffix=host1 --force < 2022-10-14-shares_solo.sql + sudo mysql --defaults-group-suffix=host1 --force < 2022-10-29-blocks_effort.sql echo -e "$GREEN Done...$COL_RESET" - - + + # Generating a basic Yiimp serverconfig.php echo echo echo -e "$CYAN => Generating a basic Yiimp serverconfig.php $COL_RESET" echo sleep 3 - + # Make config file echo ' 0.3 define('"'"'EXCH_AUTO_WITHDRAW'"'"', 0.3); - + // nicehash keys deposit account & amount to deposit at a time define('"'"'NICEHASH_API_KEY'"'"','"'"'f96c65a7-3d2f-4f3a-815c-cacf00674396'"'"'); define('"'"'NICEHASH_API_ID'"'"','"'"'825979'"'"'); define('"'"'NICEHASH_DEPOSIT'"'"','"'"'3ABoqBjeorjzbyHmGMppM62YLssUgJhtuf'"'"'); define('"'"'NICEHASH_DEPOSIT_AMOUNT'"'"','"'"'0.01'"'"'); - + $cold_wallet_table = array( '"'"'1PqjApUdjwU9k4v1RDWf6XveARyEXaiGUz'"'"' => 0.10, ); - + // Sample fixed pool fees $configFixedPoolFees = array( '"'"'zr5'"'"' => 2.0, '"'"'scrypt'"'"' => 20.0, '"'"'sha256'"'"' => 5.0, ); - + + // Sample fixed pool fees solo + $configFixedPoolFeesSolo = array( + '"'"'zr5'"'"' => 2.0, + '"'"'scrypt'"'"' => 20.0, + '"'"'sha256'"'"' => 5.0, + + ); + // Sample custom stratum ports $configCustomPorts = array( // '"'"'x11'"'"' => 7000, ); - + // mBTC Coefs per algo (default is 1.0) $configAlgoNormCoef = array( // '"'"'x11'"'"' => 5.0, @@ -1091,7 +1125,7 @@ echo -e "$CYAN => Updating stratum config files with database connection info. $COL_RESET" echo sleep 3 - + cd /var/stratum/config sudo sed -i 's/password = tu8tu5/password = '$blckntifypass'/g' *.conf sudo sed -i 's/server = yaamp.com/server = '$server_name'/g' *.conf @@ -1118,12 +1152,12 @@ sudo find /var/web -type f -exec chmod 664 {} + sudo chgrp www-data /var/web -R sudo chmod g+w /var/web -R - + sudo mkdir /var/log/yiimp sudo touch /var/log/yiimp/debug.log sudo chgrp www-data /var/log/yiimp -R sudo chmod 775 /var/log/yiimp -R - + sudo chgrp www-data /var/stratum -R sudo chmod 775 /var/stratum @@ -1146,7 +1180,7 @@ #Misc sudo mv $HOME/yiimp/ $HOME/yiimp-install-only-do-not-run-commands-from-this-folder sudo rm -rf /var/log/nginx/* - + #Hold update OpenSSL #If you want remove the hold : sudo apt-mark unhold openssl sudo apt-mark hold openssl @@ -1172,28 +1206,29 @@ echo -e "$GREEN Yiimp Install Script v0.2 $COL_RESET" echo -e "$GREEN Finish !!! $COL_RESET" echo -e "$GREEN***************************$COL_RESET" - echo echo echo - echo -e "$CYAN Whew that was fun, just some reminders. $COL_RESET" + echo + echo -e "$CYAN Whew that was fun, just some reminders. $COL_RESET" echo -e "$RED Your mysql information is saved in ~/.my.cnf. $COL_RESET" echo echo -e "$RED Yiimp at : http://"$server_name" (https... if SSL enabled)" - echo -e "$RED Yiimp Admin at : http://"$server_name"/site/AdminPanel (https... if SSL enabled)" + echo -e "$RED Yiimp Admin at : http://"$server_name"/site/myadmin (https... if SSL enabled)" echo -e "$RED Yiimp phpMyAdmin at : http://"$server_name"/phpmyadmin (https... if SSL enabled)" echo - echo -e "$RED If you want change 'AdminPanel' to access Panel Admin : Edit this file : /var/web/yaamp/modules/site/SiteController.php" - echo -e "$RED Line 11 => change 'AdminPanel' and use the new address" + echo -e "$RED If you want change 'myadmin' to access Panel Admin : Edit this file : /var/web/yaamp/modules/site/SiteController.php" + echo -e "$RED Line 11 => change 'myadmin' and use the new address" echo echo -e "$CYAN Please make sure to change your public keys / wallet addresses in the /var/web/serverconfig.php file. $COL_RESET" echo -e "$CYAN Please make sure to change your private keys in the /etc/yiimp/keys.php file. $COL_RESET" echo echo -e "$CYAN TUTO Youtube : https://www.youtube.com/watch?v=qE0rhfJ1g2k $COL_RESET" - echo -e "$CYAN Xavatar WebSite : https://www.xavatar.com $COL_RESET" - echo echo echo -e "$RED***************************************************$COL_RESET" echo -e "$RED YOU MUST REBOOT NOW TO FINALIZE INSTALLATION !!! $COL_RESET" echo -e "$RED***************************************************$COL_RESET" - echo + echo -e "$RED if u have white page blank on site check $COL_RESET" + echo -e "$RED php7.3-memcache | php7.3-memcached | php7.3-fpm $COL_RESET" + echo -e "$RED try just restart them first... $COL_RESET" + echo -e "$RED***************************************************$COL_RESET" echo