Skip to content

Instantly share code, notes, and snippets.

@logue
Last active November 5, 2018 21:49
Show Gist options
  • Save logue/74ff562cb48bd4c9cf89a8da0b86fab8 to your computer and use it in GitHub Desktop.
Save logue/74ff562cb48bd4c9cf89a8da0b86fab8 to your computer and use it in GitHub Desktop.
Ubuntu 18.04LTSにLEMP+Ajenti環境構築 ref: https://qiita.com/logue/items/2b7ba8db1f0bfd65d520
sudo apt install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install -y php7.2 php7.2-mbstring php7.2-mysql
$ update-locale LC_ALL=C.UTF-8
$ apt install software-properties-common
$ add-apt-repository ppa:ondrej/php
$ apt update
$ apt upgrade
$ apt install -y php7.2-cli php7.2-fpm php7.2-curl php7.2-mbstring composer
sudo apt-get purge apache2 apache2-utils apache2-bin apache2-data
$ wget -q http://nginx.org/keys/nginx_signing.key -O- | sudo apt-key add -
wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key
apt update
apt install nginx
apt update
apt install nginx
$ apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
$ add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/repo/10.3/ubuntu bionic main'
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
add-apt-repository 'deb [arch=amd64,i386] http://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/repo/10.2/ubuntu artful main'
$ apt update
$ apt install mariadb-server
apt update
apt install mariadb-server
$ apt upgrade
$ apt install python-pillow
$ wget http://security.ubuntu.com/ubuntu/pool/universe/p/pillow/python-imaging_4.1.1-3build2_all.deb
$ dpkg -i python-imaging_4.1.1-3build2_all.deb
$ wget -O- https://raw.github.com/ajenti/ajenti/1.x/scripts/install-ubuntu.sh | sudo sh
$ wget -O- https://raw.github.com/ajenti/ajenti/1.x/scripts/install-ubuntu.sh | sudo sh
wget -O- https://raw.github.com/ajenti/ajenti/1.x/scripts/install-ubuntu.sh | sudo sh
apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php7.2-fpm
service ajenti restart
pip uninstall ajenti-panel ajenti.plugin.dashboard ajenti.plugin.settings ajenti.plugin.plugins ajenti-panel ajenti.plugin.dashboard ajenti.plugin.settings ajenti.plugin.plugins ajenti.plugin.filemanager ajenti.plugin.notepad ajenti.plugin.packages ajenti.plugin.services ajenti.plugin.terminal
apt remove ajenti*
rm -rf /etc/ajenti
apt purge ajenti
pip uninstall ajenti-panel ajenti.plugin.dashboard ajenti.plugin.settings ajenti.plugin.plugins ajenti-panel ajenti.plugin.dashboard ajenti.plugin.settings ajenti.plugin.plugins ajenti.plugin.filemanager ajenti.plugin.notepad ajenti.plugin.packages ajenti.plugin.services ajenti.plugin.terminal
apt remove ajenti*
rm -rf /etc/ajenti
apt purge ajenti
deb http://nginx.org/packages/ubuntu/ bionic nginx
deb-src http://nginx.org/packages/ubuntu/ bionic nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment