linux/conf/systemd/php-cgi.service

16 lines
386 B
INI
Raw Permalink Normal View History

2015-09-17 10:41:22 +02:00
# In php.ini: session.save_path = /dev/shm/phpsess
2015-05-16 01:41:09 +02:00
[Unit]
Description=PHP 5.2 FastCGI
After=remote-fs.target
[Service]
ExecStartPre=/usr/bin/mkdir -p -m 0700 /dev/shm/phpsess
2015-09-17 10:41:22 +02:00
ExecStart=/usr/bin/php-cgi -b /var/lib/php5/cgi.sock -c /etc/php5/fastcgi/php.ini
2015-05-16 01:41:09 +02:00
User=wwwrun
Environment=PHP_FCGI_CHILDREN=4 PHP_FCGI_MAX_REQUESTS=2000
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target