pannl.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. apt-get update
  2. apt-get -y install mysql-server
  3. mysql_secure_installation
  4. chown -R mysql:mysql /var/lib/mysql/
  5. chmod -R 775 /var/lib/mysql/
  6. apt-get -y install nginx php5 php5-fpm php5-cli php5-mysql php5-mcrypt
  7. rm /etc/nginx/sites-enabled/default
  8. rm /etc/nginx/sites-available/default
  9. mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old
  10. cd /etc/nginx
  11. wget https://raw.githubusercontent.com/gatotkaca2/panel/master/conf/nginx.conf
  12. cd /etc/nginx/conf.d
  13. wget https://raw.githubusercontent.com/gatotkaca2/panel/master/conf/vps.conf
  14. sed -i 's/cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php5/fpm/php.ini
  15. sed -i 's/listen = \/var\/run\/php5-fpm.sock/listen = 127.0.0.1:9000/g' /etc/php5/fpm/pool.d/www.conf
  16. useradd -m vps
  17. mkdir -p /home/vps/public_html
  18. echo "<?php phpinfo() ?>" > /home/vps/public_html/info.php
  19. chown -R www-data:www-data /home/vps/public_html
  20. chmod -R g+rw /home/vps/public_html
  21. service php5-fpm restart
  22. service nginx restart
  23. cd /home/vps/public_html
  24. wget https://raw.githubusercontent.com/gatotkaca2/panel/master/conf/pnnl.tar
  25. tar -xvf pnnl.tar
  26. rm pnnl.tar
  27. mysql -u root -p
  28. chmod 777 /home/vps/public_html/config
  29. chmod 777 /home/vps/public_html/config/config.ini
  30. chmod 777 /home/vps/public_html/config/route.ini
  31. service openvpn-nl restar