10 Commits

Author SHA1 Message Date
theraw 99df1b1165 Create install.sh 2019-05-11 15:09:41 +02:00
theraw e62368f7d4 Create builder.sh 2019-05-07 22:27:12 +02:00
theraw 2e2456a5a9 Update mysql-up 2019-05-07 21:58:19 +02:00
theraw 616f653d58 Create mysql-up 2019-05-07 21:54:33 +02:00
theraw d5b16a2332 Update php-up 2019-05-07 21:53:42 +02:00
theraw 14122af292 Update www70.conf 2019-05-07 21:51:34 +02:00
theraw 92bd967e82 Update www56.conf 2019-05-07 21:51:10 +02:00
theraw c4e15cd318 Create www70.conf 2019-05-07 21:49:05 +02:00
theraw d758cd1d4e Update www56.conf 2019-05-07 21:49:02 +02:00
theraw 2b9d4182dc Update www56.conf 2019-05-07 21:48:42 +02:00
6 changed files with 129 additions and 3 deletions
+9
View File
@@ -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
+6 -1
View File
@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
export CDN="cdn.dope.al/nginx/php" export CDN=""
apt install software-properties-common -y apt install software-properties-common -y
apt install python-software-properties -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/;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 perl -pi -e 's/;date.timezone =/date.timezone = UTC/g' /etc/php/7.0/fpm/php.ini
service php7.0-fpm start 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
+2 -2
View File
@@ -14,7 +14,7 @@ listen.allowed_clients = 127.0.0.1
pm = ondemand pm = ondemand
pm.max_children = 200 pm.max_children = 200
pm.start_servers = 2 pm.start_servers = 5
pm.min_spare_servers = 10 pm.min_spare_servers = 10
pm.max_spare_servers = 200 pm.max_spare_servers = 200
pm.process_idle_timeout = 2s; pm.process_idle_timeout = 2s;
@@ -34,7 +34,7 @@ pm.max_requests = 1000
;catch_workers_output = yes ;catch_workers_output = yes
;clear_env = no ;clear_env = no
security.limit_extensions = .php .php3 .php4 .php5 security.limit_extensions = .php
env[HOSTNAME] = $HOSTNAME env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp env[TMP] = /tmp
+55
View File
@@ -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
+42
View File
@@ -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
+15
View File
@@ -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/