Last active
March 24, 2020 19:20
-
-
Save Hadryan/34472e59e6ccbeb9a06f0775da3174bc to your computer and use it in GitHub Desktop.
not really correct nginx configuration (but at the end it worked)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### 1 | |
sudo nano /etc/apt/sources.list | |
deb http://www.deb-multimedia.org/ stretch main non-free | |
apt-key adv --recv-keys --keyserver pgpkeys.eu 5C808C2B65558117 | |
sudo apt-get install debian-keyring | |
sudo apt-get update | |
sudo apt-get -f install | |
sudo apt-get install deb-multimedia-keyring | |
sudo apt-get update | |
sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev unzip mc imagemagick build-essential htop git fail2ban libreadline-dev libncurses5-dev libpcre3 libpcre3-dev libssl-dev perl make ffmpeg libfaac-dev libfdk-aac-dev openssl libxml2 libc6 libc6-dev libaio1 libaio-dev libxslt1-dev zlib1g zlib1g-dev libgd-dev libgeoip-dev libpcre++-dev mcrypt | |
sudo apt install php7.3-fpm php7.3-intl php7.3-mcrypt | |
sudo apt-get install php7.3-fpm php7.3-intl php7.3-curl php7.3-gd php7.3-json php7.3-mysql php7.3-sqlite3 php7.3-pgsql php7.3-bz2 php7.3-mbstring php7.3-soap php7.3-xml php7.3-zip php7.3-opcache | |
sudo bash -c "echo extension=mcrypt.so > /etc/php/7.3/mods-available/mcrypt.ini" | |
sudo bash -c "echo extension=/usr/lib/php/20180731/mcrypt.so > /etc/php/7.3/cli/conf.d/mcrypt.ini" | |
sudo bash -c "echo extension=/usr/lib/php/20180731/mcrypt.so > /etc/php/7.3/fpm/conf.d/mcrypt.ini" | |
/usr/lib/php/20180731/sodium.so | |
sudo bash -c "echo extension=/usr/lib/php/20180731/sodium.so > /etc/php/7.3/cli/conf.d/sodium.ini" | |
sudo bash -c "echo extension=/usr/lib/php/20180731/sodium.so > /etc/php/7.3/fpm/conf.d/sodium.ini" | |
##### 2 | |
sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev unzip mc imagemagick build-essential htop git fail2ban libreadline-dev libncurses5-dev libpcre3 libpcre3-dev libssl-dev perl make ffmpeg libfaac-dev libfdk-aac-dev openssl libxml2 libc6 libc6-dev libaio1 libaio-dev libxslt1-dev zlib1g zlib1g-dev libgd-dev libgeoip-dev libpcre++-dev mcrypt php7.0-mcrypt | |
cp -p -r -f "20-zip.ini" "/etc/php/7.3/fpm/conf.d/20-zip.ini" | |
sudo apt install php7.3-cli php7.3-common php7.3-curl php7.3-mbstring php7.3-mysql php7.3-xml | |
sudo apt-get install php7.3-fpm php7.3-intl php7.3-curl php7.3-gd php7.3-json php7.3-mysql php7.3-sqlite3 php7.3-pgsql php7.3-bz2 php7.3-mbstring php7.3-soap php7.3-xml php7.3-zip php7.3-opcache php7.3-cli php7.3-common | |
./configure --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=www-data --group=www-data --with-http_ssl_module --with-http_secure_link_module --add-module=../nginx-vod-module-master --add-dynamic-module=../ngx_aws_auth-master --add-dynamic-module=../nginx-secure-token-module-master --with-file-aio --with-threads --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-cc-opt=-O3 --with-stream=dynamic --with-stream_ssl_module --with-pcre | |
#### 3 | |
./configure --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=www-data --group=www-data --with-http_ssl_module --with-http_secure_link_module --add-module=../nginx-vod-module-master --add-module=../ngx_aws_auth-master --add-module=../nginx-secure-token-module-master --with-file-aio --with-threads --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-cc-opt="-O3" --with-stream=dynamic --with-stream_ssl_module --with-pcre --with-sodium=/usr/local/include/sodium |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment