NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: webserver with PHP support





On 24/04/2024 15:11, Justin Parrott wrote:
    I mean that this works:
         /usr/libexec/httpd -b -U nobody -C .php
    /usr/pkg/libexec/cgi-bin/php /var/www/

    and this does not:
         /usr/libexec/httpd -b -U nobody -C .php /usr/pkg/bin/php /var/www/

-- best regards, Alexey
    https://alexeyka.zantsev.com/ <https://alexeyka.zantsev.com/>


You can do PHP with cgi but its far more efficient to use the php-fpm package which runs PHP using the fastCGI protocol which is supported by most web servers. I use apache, but any HTTP server supporting the protocol should work.

Mike


Home | Main Index | Thread Index | Old Index