16 lines
386 B
INI
16 lines
386 B
INI
# In php.ini: session.save_path = /dev/shm/phpsess
|
|
|
|
[Unit]
|
|
Description=PHP 5.2 FastCGI
|
|
After=remote-fs.target
|
|
|
|
[Service]
|
|
ExecStartPre=/usr/bin/mkdir -p -m 0700 /dev/shm/phpsess
|
|
ExecStart=/usr/bin/php-cgi -b /var/lib/php5/cgi.sock -c /etc/php5/fastcgi/php.ini
|
|
User=wwwrun
|
|
Environment=PHP_FCGI_CHILDREN=4 PHP_FCGI_MAX_REQUESTS=2000
|
|
KillSignal=SIGINT
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|