nginx php perf twiks

This commit is contained in:
2019-11-13 17:14:07 +01:00
parent 1238177d1d
commit 7c2ca44660
8 changed files with 41 additions and 6 deletions
+1
View File
@@ -29,6 +29,7 @@ server {
fastcgi_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
fastcgi_read_timeout 150;
}
location ~ /\.ht {
+5 -5
View File
@@ -1,10 +1,5 @@
FROM php:7.0-fpm
COPY ./php-custom.ini /usr/local/etc/php/conf.d/php-custom.ini
COPY ./bashrc /root/.bashrc
COPY ./inputrc /root/.inputrc
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
@@ -31,3 +26,8 @@ RUN export COMPOSER_HOME=/usr/local/composer && \
curl https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar \
-L -o /usr/local/bin/drush && \
chmod +x /usr/local/bin/drush
COPY ./php-custom.ini /usr/local/etc/php/conf.d/php-custom.ini
COPY ./bashrc /root/.bashrc
COPY ./inputrc /root/.inputrc
+1 -1
View File
@@ -1,4 +1,4 @@
PS1='\e[36m\e[1mPHP\e[0m:\e[90m\w\e[0m\n$ '
PS1='\e[36m\e[1medlpd8-PHP\e[0m:\e[90m\w\e[0m\n$ '
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
+1
View File
@@ -1,3 +1,4 @@
memory_limit = 512M
upload_max_filesize = 50M
post_max_size = 50M
max_execution_time = 30
+20
View File
@@ -0,0 +1,20 @@
[www]
;user = www-data
;group = www-data
;listen = 0.0.0.0:9000
;pm = dynamic
;pm.max_children = 5
;pm.start_servers = 2
;pm.min_spare_servers = 1
;pm.max_spare_servers = 3
catch_workers_output = yes
php_admin_flag[log_errors] = on
php_admin_flag[display_errors] = off
php_admin_value[error_reporting] = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED
php_admin_value[error_log] = /var/log/error.log
access.log = /var/log/access.log
php_value[memory_limit] = 512M
php_value[post_max_size] = 50M
php_value[upload_max_filesize] = 50M
php_value[max_execution_time] = 150