Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 13122310958/2c0e1f73c1b714ff76200cee6a3ca5ac to your computer and use it in GitHub Desktop.
Save 13122310958/2c0e1f73c1b714ff76200cee6a3ca5ac 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*
# Install Ajenti-v
apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql
# If you <3 Ruby
apt-get install ajenti-v-ruby-unicorn ajenti-v-ruby-puma
# 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
@13122310958
Copy link
Author

sudo apt-get install software-properties-common python-software-properties
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
apt update

Uninstall Apache2

sudo apt-get autoremove && sudo apt-get remove apache2* -y

Install Ajenti-v

apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php7.0-fpm php7.0-mysql php7.0-curl php7.0-json php7.0-gd php7.0-curl php7.0-zip -y

If you want FTP

apt-get install ajenti-v-ftp-pureftpd -y

If you want mail

apt-get install ajenti-v-mail -y

sudo apt-get install imagemagick -y
sudo apt-get install php5-imagick -y

sudo apt-get install php-imagick -y

sudo apt-get install php5-curl curl php5-dev -y
sudo apt-get install php7.0-curl curl php7.0-dev -y

sudo apt install php7.0-zip -y

@13122310958
Copy link
Author

apt install unzip -y

@13122310958
Copy link
Author

13122310958 commented Aug 11, 2018

sudo apt install php-xml php7.0-xml php-gd php5-gd php7.0-gd -y

@13122310958
Copy link
Author

13122310958 commented Mar 7, 2019

#Insall Ajenti
sudo apt-get update
sudo wget http://repo.ajenti.org/debian/key -O- | sudo apt-key add -
sudo echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
sudo apt-get update

sudo apt-get install software-properties-common python-software-properties -y
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt update

sudo apt-get autoremove && sudo apt-get remove apache2* -y

sudo apt-get install ajenti -y

sudo apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php7.0-fpm php7.0-mysql php7.0-curl php7.0-json php7.0-gd php7.0-curl php7.0-zip -y
sudo apt-get install php7.0-curl curl php7.0-dev -y
sudo apt-get install imagemagick -y

sudo apt install php-xml php7.0-xml php7.0-gd unzip zip -y
sudo apt-get install ajenti-v-ftp-pureftpd -y

@13122310958
Copy link
Author

13122310958 commented Mar 7, 2019

sudo add-apt-repository ppa:certbot/certbot -y
sudo apt-get update
sudo apt-get install python-certbot-nginx -y

#after installed certbot
sudo certbot --nginx -d example.com -d www.example.com

@13122310958
Copy link
Author

sudo su -

@13122310958
Copy link
Author

#update . fix can not found python-imaging :
wget https://launchpad.net/ubuntu/+source/pillow/4.1.1-3build2/+build/13243580/+files/python-imaging_4.1.1-3build2_all.deb
dpkg -i python-imaging_4.1.1-3build2_all.deb

php 7.2

sudo apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php7.2-fpm php7.2-mysql php7.2-curl php7.2-json php7.2-gd php7.2-curl php7.2-zip php7.2-curl curl php7.2-dev -y
sudo apt-get install imagemagick -y

sudo apt install php-xml php7.2-xml php7.2-gd unzip zip -y
sudo apt-get install ajenti-v-ftp-pureftpd -y

@gerMdz
Copy link

gerMdz commented Jul 2, 2020

Gracias, Muchas gracias

@elaoshi
Copy link

elaoshi commented Nov 4, 2020

sudo apt-get install software-properties-common -y

sudo apt --fix-broken install

sudo apt install php7.2-mbstring

@elaoshi
Copy link

elaoshi commented May 10, 2021

php 7.4

sudo apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php7.4-fpm php7.4-mysql php7.4-curl php7.4-json php7.4-gd php7.4-curl php7.4-zip php7.4-curl curl php7.4-dev -y

sudo apt install php-xml php7.4-xml php7.4-gd unzip zip php7.4-mbstring php7.4-redis -y

@NorDULaN
Copy link

NorDULaN commented Apr 1, 2022

Gracias)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment