SecretAnorak

AWS Setup for Combu

Jul 17th, 2018
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. (Configure AWS firewall inbound SSH, HTTP & HTTPS)
  2.  
  3. apt-get update
  4. apt-get install mc
  5. apt-get install apache2
  6. (visit your domain and check apache page)
  7.  
  8. apt-get install mysql-server
  9. mysql_secure_installation
  10. (enter password, choose N for password tool, N for change password, Y to everything else)
  11.  
  12. apt-get install php libapache2-mod-php php-mcrypt php-mysql
  13. nano /etc/apache2/mods-enabled/dir.conf
  14.  
  15. <IfModule mod_dir.c>
  16. DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
  17. </IfModule>
  18.  
  19. systemctl restart apache2
  20. nano /var/www/html/info.php
  21.  
  22. <?php
  23. phpinfo();
  24. ?>
  25.  
  26. apt-get install sendmail
  27. apt-get install phpmyadmin php-mbstring php-gettext
  28.  
  29. (use space to select apache 2 when prompted then tab to ok & hit enter)
  30. (Select yes to dbconfig-common)
  31. (enter your password twice)
  32.  
  33. phpenmod mcrypt
  34. phpenmod mbstring
  35. systemctl restart apache2
  36.  
  37. (use mc to chmod /var/lib/php/sessions to read by others and read by groups)
  38.  
  39. // if you cannot log in to myphp admin create a new user:
  40. mysql
  41. CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
  42. GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
  43. quit
  44.  
  45. Install Combu
Advertisement
Add Comment
Please, Sign In to add comment