Compare commits
10 Commits
5287a12787
...
99df1b1165
| Author | SHA1 | Date | |
|---|---|---|---|
| 99df1b1165 | |||
| e62368f7d4 | |||
| 2e2456a5a9 | |||
| 616f653d58 | |||
| d5b16a2332 | |||
| 14122af292 | |||
| 92bd967e82 | |||
| c4e15cd318 | |||
| d758cd1d4e | |||
| 2b9d4182dc |
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
|
||||
sudo add-apt-repository 'deb [arch=amd64] http://mirror.23media.de/mariadb/repo/10.3/ubuntu bionic main'
|
||||
apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y
|
||||
|
||||
sudo apt install mariadb-server
|
||||
|
||||
mysql_secure_installation
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
export CDN="cdn.dope.al/nginx/php"
|
||||
export CDN=""
|
||||
|
||||
apt install software-properties-common -y
|
||||
apt install python-software-properties -y
|
||||
@@ -47,3 +47,8 @@ perl -pi -e 's/error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT/error_reporti
|
||||
perl -pi -e 's/;error_log = syslog/error_log = php_error.log/g' /etc/php/7.0/fpm/php.ini
|
||||
perl -pi -e 's/;date.timezone =/date.timezone = UTC/g' /etc/php/7.0/fpm/php.ini
|
||||
service php7.0-fpm start
|
||||
|
||||
|
||||
#Clean up.
|
||||
apt-get remove php7.3-common php7.3-xml -y; apt-get autoremove -y
|
||||
rm -Rf /etc/php/7.3
|
||||
|
||||
@@ -14,7 +14,7 @@ listen.allowed_clients = 127.0.0.1
|
||||
|
||||
pm = ondemand
|
||||
pm.max_children = 200
|
||||
pm.start_servers = 2
|
||||
pm.start_servers = 5
|
||||
pm.min_spare_servers = 10
|
||||
pm.max_spare_servers = 200
|
||||
pm.process_idle_timeout = 2s;
|
||||
@@ -34,7 +34,7 @@ pm.max_requests = 1000
|
||||
;catch_workers_output = yes
|
||||
;clear_env = no
|
||||
|
||||
security.limit_extensions = .php .php3 .php4 .php5
|
||||
security.limit_extensions = .php
|
||||
env[HOSTNAME] = $HOSTNAME
|
||||
env[PATH] = /usr/local/bin:/usr/bin:/bin
|
||||
env[TMP] = /tmp
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
[php70]
|
||||
;prefix = /path/to/pools/$pool
|
||||
user = nginx
|
||||
group = nginx
|
||||
listen = 127.0.0.1:9100
|
||||
listen.backlog = 65535
|
||||
listen.owner = nginx
|
||||
listen.group = nginx
|
||||
;listen.mode = 0660
|
||||
;listen.acl_users =
|
||||
;listen.acl_groups =
|
||||
listen.allowed_clients = 127.0.0.1
|
||||
; process.priority = -19
|
||||
; process.dumpable = yes
|
||||
|
||||
|
||||
pm = ondemand
|
||||
pm.max_children = 200
|
||||
pm.start_servers = 5
|
||||
pm.min_spare_servers = 10
|
||||
pm.max_spare_servers = 200
|
||||
pm.process_idle_timeout = 2s;
|
||||
pm.max_requests = 1000
|
||||
|
||||
|
||||
;pm.status_path = /status
|
||||
;ping.path = /ping
|
||||
;ping.response = pong
|
||||
|
||||
; enable those logs if you have cpu or other problems are helpful but disable after you're done
|
||||
; because having a lot of logs on it means more resources will be used!
|
||||
;access.log = /var/log/php_debug_70.log
|
||||
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
|
||||
;slowlog = log/$pool.log.slow
|
||||
;request_slowlog_timeout = 0
|
||||
;request_terminate_timeout = 0
|
||||
;rlimit_files = 1024
|
||||
;rlimit_core = 0
|
||||
;chroot =
|
||||
;chdir = /var/www
|
||||
;catch_workers_output = yes
|
||||
;clear_env = no
|
||||
|
||||
|
||||
security.limit_extensions = .php
|
||||
env[HOSTNAME] = $HOSTNAME
|
||||
env[PATH] = /usr/local/bin:/usr/bin:/bin
|
||||
env[TMP] = /tmp
|
||||
env[TMPDIR] = /tmp
|
||||
env[TEMP] = /tmp
|
||||
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
|
||||
;php_flag[display_errors] = off
|
||||
;php_admin_value[error_log] = /var/log/fpm-php.www.log
|
||||
;php_admin_flag[log_errors] = on
|
||||
php_admin_value[memory_limit] = 128M
|
||||
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
# Please use this to build dynamic modules every single detail is strictly required!
|
||||
./configure \
|
||||
--user=nginx \
|
||||
--group=nginx \
|
||||
--modules-path=/nginx/modules/ \
|
||||
--sbin-path=/usr/sbin/nginx \
|
||||
--conf-path=/nginx/nginx.conf \
|
||||
--pid-path=/run/nginx.pid \
|
||||
--lock-path=/run/nginx.lock \
|
||||
--error-log-path=/var/log/nginx/error.log \
|
||||
--http-log-path=/var/log/nginx/access.log \
|
||||
--with-pcre \
|
||||
--with-threads \
|
||||
--with-file-aio \
|
||||
--with-http_ssl_module \
|
||||
--with-http_v2_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_addition_module \
|
||||
--with-http_xslt_module \
|
||||
--with-http_image_filter_module \
|
||||
--with-http_geoip_module \
|
||||
--with-http_sub_module \
|
||||
--with-http_dav_module \
|
||||
--with-http_flv_module \
|
||||
--with-http_mp4_module \
|
||||
--with-http_gunzip_module \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_auth_request_module \
|
||||
--with-http_random_index_module \
|
||||
--with-http_secure_link_module \
|
||||
--with-http_slice_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-mail \
|
||||
--with-mail_ssl_module \
|
||||
--with-stream \
|
||||
--with-stream_ssl_module \
|
||||
--with-stream_realip_module \
|
||||
--with-stream_geoip_module \
|
||||
--with-ld-opt="-Wl,-rpath,/usr/local/lib/" \
|
||||
--add-dynamic-module=/the path of /ngx_devel_kit \
|
||||
--add-dynamic-module=/your module path
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir /opt/xgeoip; cd /opt/xgeoip; wget https://sourceforge.net/projects/xtables-addons/files/Xtables-addons/xtables-addons-3.3.tar.xz/download; tar xf download; rm -rf download
|
||||
mv /opt/xgeoip/xtables-addons-3.3 /opt/iptables-geoip-3.3
|
||||
cd /opt/iptables-geoip-3.3; ./configure
|
||||
make -j`nproc`
|
||||
make install
|
||||
clear
|
||||
bash /opt/iptables-geoip-3.3/geoip/xt_geoip_dl
|
||||
mv /opt/iptables-geoip-3.3/geoip/GeoLite2-Country-CSV_*/* /opt/iptables-geoip-3.3/geoip
|
||||
|
||||
bash /opt/iptables-geoip-3.3/geoip/xt_geoip_build
|
||||
mkdir -p /usr/share/xt_geoip/
|
||||
mv /opt/iptables-geoip-3.3/geoip/*.iv4 /usr/share/xt_geoip/
|
||||
mv /opt/iptables-geoip-3.3/geoip/*.iv6 /usr/share/xt_geoip/
|
||||
Reference in New Issue
Block a user