Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. create new droplet on Digital Ocean (1 GB Memory / 25 GB Disk / AMS3 - Ubuntu 16.04.4 x64)
- 2. create new app for Discord in https://discordapp.com/developers/applications/me
- 2.1. Put a name for the app and set "Redirect URL" to http://<server_ip>/auth/
- 2.2 click "generate oauth url" button and select "Bot". save the app.
- 2.3 invite bot in your discord server with this url: https://discordapp.com/oauth2/authorize?client_id=<CLIENT_ID>&scope=bot&permissions=0
- 3. create new app in eve online developer website, at https://developers.eveonline.com/
- 3.1 put a name and description, set a "Connection Type" to "Authentication Only" and set "Callback URL" to http://<server_ip>/auth/
- 4. SSH login to your server (putty)
- 5. update local package with "apt-get update"
- 6. allow SSH connection in firewall with "ufw allow OpenSSH"
- 7. enable firewall with "ufw enable"
- 8. do command "ufw status" to check if SSH connections are still allowed
- 9. install apache with "apt-get install apache2"
- 10. allow incoming traffic for apache with " ufw allow 'Apache Full' "
- 11. check if apache web server is running with "systemctl status apache2"
- 12. install PHP with "apt install php"
- 13. install PHP plugin with "apt-get install php-sqlite3 php-curl php-xml"
- 14. cd to /var/www/ and do command "git clone https://github.com/shibdib/Keepstar.git"
- 15. cd to /Keepstar/
- 16. install "composer" with command "apt install composer"
- 17. do command "composer install" to install all dependencies
- 18. cd to /config/ folder and edit the example config file with command "nano config.new.php". Save this file with name "config.php"
- 19. do command "sudo chown -R www-data:www-data /var/www/Keepstar"
- 20. Setup a cron job with "crontab -u www-data -e" and put 0 */2 * * * php /var/www/Keepstar/cron.php
- 21. make new "keepstar.conf" file in "etc/apache2/conf-available/" and paste this inside:
- <VirtualHost *:80>
- ServerAdmin admin@admin.info
- ServerName <ip_of_your_server>
- DocumentRoot /var/www/Keepstar/public
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- <Directory /var/www/Keepstar/public>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Order allow,deny
- allow from all
- </Directory>
- </VirtualHost>
- 22. do command "a2ensite mywebsite" to enable new site
- 23. do command "apache2 reload" to activate new site
- 24. visit http://<your_server_ip>/admin/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement