Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anstak/045d2f79934b3eea171fd2198feff4a5 to your computer and use it in GitHub Desktop.
Save anstak/045d2f79934b3eea171fd2198feff4a5 to your computer and use it in GitHub Desktop.
The Perfect Web Server - Nginx, Ajenti, Ubuntu
#Insall Ajenti
apt-get update
wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
apt-get update
apt-get install ajenti
service ajenti restart
# Uninstall Apache2
sudo apt-get autoremove && sudo apt-get remove apache2*
# Fix Mysql error for FirstVDS
apt-get install dialog apt-utils
apt-get install bsdutils
# Install Ajenti-v
apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql
# Need to install ruby before puma plugin: https://www.howtoforge.com/tutorial/installing-ruby-on-rails-on-ubuntu-1404/
apt-get install curl
curl -#LO https://rvm.io/mpapis.asc # I think is not really good way to install ruby becouse there are only 2.3.0
gpg --import mpapis.asc
curl -sSL https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm requirements
rvm list known
rvm install 2.3.0
rvm use 2.3.0 --default
# Nedd to install Bundler and Puma gems for normal work
# I use "rvm gemset use global" for crontab job
gem install bundler
gem install puma
# I think need to install Rails
gem install rails
# If you want to install specific version of Rails: gem install rails -v 5.0.0
# If you <3 Ruby
apt-get install ajenti-v-ruby-puma # if you need Unicorn: ajenti-v-ruby-unicorn
# If you need Python
apt-get install ajenti-v-python-gunicorn
# If you need nodeJS
apt-get install ajenti-v-nodejs
# If you want FTP
apt-get install ajenti-v-ftp-pureftpd
# If you want mail
apt-get install ajenti-v-mail
# If you want POP support (for gmail etc.)
apt-get install courier-pop
# Restart All Services
sudo service php5-fpm restart
sudo service nginx restart
sudo service ajenti restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment