You are not logged in.
Pages: 1
I have the official arch linux php package and fcgi installed. How can I get php to work with fastcgi? I need it for cherokee web server. On ther site is a quick how to on php, but I can't get it to work. I dont know how to start the fastcgi server and how to get the socket file. I'm doing this for the firs time, and it's quite frustrating. Can somebody help?
Offline
I think this is what you're looking for:
http://wiki.archlinux.org/index.php/Apache_fastcgi
If you're using lighttpd:
http://wiki.archlinux.org/index.php/Fas … d_lighttpd
Offline
Well, go to /etc/conf.d and find spawn-php file. Edit it and set the following variables:
SPAWNFCGI="/usr/bin/spawn-fcgi"
FCGIPROGRAM="/usr/bin/php-cgi"
USERID=youruser
GROUPID=yourgroup
FCGISOCKET="/tmp/php-fcgi.socket"
Then, run:
/etc/rc.d/spawn-php start
If you see in the ps aux output some instances of the php-cgi process, it means that PHP FastCGI is running. Then you simply copy the socket name to your webserver configuration and configure it according to the docs. Unfortunately, I can't help you with Cherokee, because I'm using Lighttpd.
PozDrX, Zyx
Arch Linux PL : Arch Linux Wiki PL
Offline
I dont use any goofy launchers. I just use php's native fastcgi launch interface, along with daemontools to keep the service up.
example: http://blog.kovyrin.net/2006/05/30/ngin … cgi-howto/
If you are interested in my daemontools specific run script, then let me know.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
I've asked on the mailing list. Cherokee has a 'wizard' (hate them, but this one actually works) to set php up. You dont need any spawning, because cherokee will spawn php if it can't find any already running (thats why you give him the UNIX socket or the host:port directive). Anyway, After running the wizard, I checked what Information source (cherokee specific) it created. So, the Interpreter field is /usr/bin/php-cgi -b /tmp/cherokee-php.socket (that's the spawning part) and then Connection is obviously /tmp/cherokee-php.socket. That's it. Now you only need to make use of the Interpreter in as many rules (again, cherokee specific) as you wish.
Offline
Which should I use from the official repo: http://www.archlinux.org/packages/?sort … =&limit=50
Why is the wiki linking to the AUR if both the versions is hosted in extra?
Birger
Offline
Pages: 1