Re: webserver with PHP support

2024-04-26 Thread Alexey
Thanks to all.
Yes, I know about php-fpm, but bozohttpd seems not to be able
to support it. I'm just playing. No high load, no production environment.

> 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

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



Re: webserver with PHP support

2024-04-25 Thread Mike Pumford




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/ 


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


Re: webserver with PHP support

2024-04-24 Thread Justin Parrott
bin/php is probably for the shell or something

libexec is probably what you want from httpd

On Wed, Apr 24, 2024 at 1:21 AM Alexey  wrote:

> Hello list,
> tell me please what's the difference between
>
> /usr/pkg/libexec/cgi-bin/php
> and
> /usr/pkg/bin/php
>
> 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/
>
>

-- 
renegade6969...@gmail.com
https://www.facebook.com/profile.php?id=61556020800880
https://twitter.com/Rose29283220654


Re: webserver with PHP support

2024-04-24 Thread Ramiro Aceves



El 23 de abril de 2024 21:07:58 CEST, Alexey  escribió:
>Hello list,
>tell me please what's the difference between
>
>/usr/pkg/libexec/cgi-bin/php
>and
>/usr/pkg/bin/php
>
>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/
>

Hello,

I think  /usr/pkg/bin/php is the command line interface and 
/usr/pkg/libexec/cgi-bin/php the CGI command.

Regards
Ramiro.


webserver with PHP support

2024-04-23 Thread Alexey
Hello list,
tell me please what's the difference between

/usr/pkg/libexec/cgi-bin/php
and
/usr/pkg/bin/php

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/