Category : nginx

https://github.com/arut/nginx-rtmp-module apt-get install build-essential -y apt-get install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev unzip -y wget http://nginx.org/download/nginx-1.19.1.tar.gz tar xvfz nginx-1.19.1.tar.gz && cd nginx-1.19.1 mkdir modules cd modules wget https://github.com/arut/nginx-rtmp-module/archive/master.zip unzip master.zip ./configure –add-module=/modules/nginx-rtmp-module –with-http_ssl_module –with-http_mp4_module make make install installation will be in /usr/local/nginx sample cfg user nobody; worker_processes 1; error_log logs/error.log off; events { worker_connections 1024; ..

Read more

apt-get install build-essential apt-get install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev mkdir nginx_temp && cd nginx_temp wget http://nginx.org/download/nginx-1.19.1.tar.gz tar xvfz nginx-1.19.1.tar.gz && cd nginx-1.19.1 ./configure –prefix=/etc/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=/var/run/nginx.pid –lock-path=/var/run/nginx.lock –user=www-data –group=www-data –with-http_ssl_module –with-http_v2_module –with-http_mp4_module –with-http_gunzip_module –with-http_gzip_static_module make && ma..

Read more

apt install nginx-full php7.4-fpm (php7-mysql php-gd additional for wordpress) nano /etc/php7/fpm/php.inicgi.fix_pathinfo=0upload_max_filesize = 64Mpost_max_size = 64M sample config http for wordpress site. nginx webroot directory is /var/www/kampot file name kampot.conf in /etc/nginx/conf.d file is additional to basic nginx config (file name and path added in nginx.config) running with php7.4-fpm — server { listen 80; charset utf-8; ..

Read more