back

Current XML syntax

The current xml syntax used

/etc/fpm.conf

<?xml version="1.0" ?>
<configuration>
	<section name="global_options">
		<value name="pid_file">/var/run/fpm.pid</value>
		<value name="daemonize">yes</value>
		<value name="error_log">/var/log/fpm/errors.log</value>
		<value name="log_level">notice</value>
		<value name="emergency_restart_threshold">10</value>
		<value name="emergency_restart_interval">1m</value>
		<value name="process_control_timeout">5s</value>
	</section>
	<workers>
		<section name="pool">
			<value name="name">www</value>

			<value name="user">www_www</value>
			<value name="group">www</value>

			<value name="pm">
				<value name="style">dynamic</value>
				<value name="max_children">42</value>
				<value name="dynamic">
					<value name="start_servers">5</value>
					<value name="min_spare_servers">3</value>
					<value name="max_spare_servers">10</value>
				</value>
			</value>
			<value name="max_requests">500</value>

			<value name="listen_address">127.0.0.1:9000</value>
			<value name="listen_options">
				<value name="backlog">-1</value>
				<value name="owner">_nginx</value>
				<value name="group">_nginx</value>
				<value name="mode">0660</value>
			</value>

			<value name="status">/status</value>
			<value name="ping">/ping</value>
			<value name="pong">pong</value>

			<value name="request_terminate_timeout">0s</value>
			<value name="request_slowlog_timeout">0s</value>
			<value name="slowlog">/home/www/logs/php-fpm.log.slow</value>
			<value name="rlimit_files">1024</value>
			<value name="rlimit_core">0</value>
			<value name="chroot">no</value>
			<value name="chdir">/home/www/docs</value>
			<value name="catch_workers_output">yes</value>
			<value name="allowed_clients">127.0.0.1</value>

			<value name="php_defines">
				<value name="sendmail_path">/usr/sbin/sendmail -t -i</value>
				<value name="display_errors">On</value>
				<value name="error_log">/home/www_www/logs/php.log</value>
				<value name="open_basedir">/home/www_www/docs:/home/www_www/tmp:/bin</value>
				<value name="session.save_path">/home/www_www/sessions</value>
				<value name="upload_tmp_dir">/home/www_www/tmp</value>
			</value>

			<value name="environment">
				<value name="PATH">bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin</value>
			</value>
		</section>
		<section name="pool">
			<value name="name">backoffice</value>

			<value name="user">www_backoffice</value>
			<value name="group">www</value>

			<value name="pm">
				<value name="style">dynamic</value>
				<value name="max_children">42</value>
				<value name="dynamic">
					<value name="start_servers">5</value>
					<value name="min_spare_servers">3</value>
					<value name="max_spare_servers">10</value>
				</value>
			</value>
			<value name="max_requests">500</value>

			<value name="listen_address">127.0.0.1:9001</value>
			<value name="listen_options">
				<value name="backlog">-1</value>
				<value name="owner">_nginx</value>
				<value name="group">_nginx</value>
				<value name="mode">0660</value>
			</value>

			<value name="status">/status</value>
			<value name="ping">/ping</value>
			<value name="pong">pong</value>

			<value name="request_terminate_timeout">0s</value>
			<value name="request_slowlog_timeout">0s</value>
			<value name="slowlog">/home/backoffice/logs/php-fpm.log.slow</value>
			<value name="rlimit_files">1024</value>
			<value name="rlimit_core">0</value>
			<value name="chroot">no</value>
			<value name="chdir">/home/backoffice/docs</value>
			<value name="catch_workers_output">yes</value>
			<value name="allowed_clients">127.0.0.1</value>

			<value name="php_defines">
				<value name="sendmail_path">/usr/sbin/sendmail -t -i</value>
				<value name="display_errors">On</value>
				<value name="error_log">/home/www_backoffice/logs/php.log</value>
				<value name="open_basedir">/home/www_backoffice/docs:/home/www_backoffice/tmp</value>
				<value name="session.save_path">/home/www_backoffice/sessions</value>
				<value name="upload_tmp_dir">/home/www_backoffice/tmp</value>
			</value>

			<value name="environment">
				<value name="PATH">bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin</value>
			</value>
		</section>
		<section name="pool">
			<value name="name">www.another.site.com</value>

			<value name="user">www_www.another.site.com</value>
			<value name="group">www</value>

			<value name="pm">
				<value name="style">dynamic</value>
				<value name="max_children">12</value>
				<value name="dynamic">
					<value name="start_servers">2</value>
					<value name="min_spare_servers">1</value>
					<value name="max_spare_servers">5</value>
				</value>
			</value>
			<value name="max_requests">500</value>

			<value name="listen_address">127.0.0.1:9002</value>
			<value name="listen_options">
				<value name="backlog">-1</value>
				<value name="owner">_nginx</value>
				<value name="group">_nginx</value>
				<value name="mode">0660</value>
			</value>

			<value name="status">/status</value>
			<value name="ping">/ping</value>
			<value name="pong">pong</value>

			<value name="request_terminate_timeout">0s</value>
			<value name="request_slowlog_timeout">0s</value>
			<value name="slowlog">/logs/php-fpm.log.slow</value>
			<value name="rlimit_files">1024</value>
			<value name="rlimit_core">0</value>
			<value name="chroot">/home/www.another.site.com</value>
			<value name="chdir">/docs</value>
			<value name="catch_workers_output">yes</value>
			<value name="allowed_clients">127.0.0.1</value>

			<value name="php_defines">
				<value name="sendmail_path">/bin/mini_sendmail -t -i</value>
				<value name="display_errors">On</value>
				<value name="error_log">/logs/php.log</value>
				<value name="open_basedir">/docs:/tmp</value>
				<value name="session.save_path">/sessions</value>
				<value name="upload_tmp_dir">/tmp</value>
			</value>

			<value name="environment">
				<value name="PATH">bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin</value>
			</value>
		</section>
	</workers>
</configuration>