Posts Tagged ‘spawn-fcgi’

first create a file named “php-fastcgi” in /usr/bin/, suppose your spawn-fcgi is in /usr/bin/, don’t forget to chmod +x on the file

1
2
#!/bin/sh
/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -f /usr/bin/php5-cgi

then create another file named “init-fastcgi” in /etc/init.d/ and run “sudo update-rc.d init-fastcgi defaults”

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
PHP_SCRIPT=/usr/bin/php-fastcgi
RETVAL=0
case "$1" in
start)
$PHP_SCRIPT
[...]

Saturday, November 29th, 2008 at 23:24 | 0 comments
Categories: linux
TOP