System Engineering

Install nginx + php-fpm on openSUSE

Posted on

1. Download and install packages zypper install nginx php5-fpm chmod 1733 /var/lib/php5 2. Configure php-fpm cp -p /etc/php5/fpm/php-fpm.conf.default /etc/php5/fpm/php-fpm.conf vi /etc/php5/fpm/php-fpm.conf include=/etc/php5/fpm/vhosts.d/*.conf pm.max_children = 30 rlimit_files = 102400 catch_workers_output = yes emergency_restart_threshold 10 emergency_restart_interval 30s process_control_timeout 10s ;listen = 127.0.0.1:9000 listen = /var/run/php5-fpm.sock listen.owner = nginx error_log = /var/log/php-fpm/php-fpm.log security.limit_extensions = .php .do .json .soap 3. […]