Re: gzip-static option isn't working on default index

2023-11-09 Thread Jim Anderson
The best I can find is that the it may only be searching for "/.gz" and not
checking to see if the default index file "/index.html.gz" exists.


src/usr.sbin/httpd/server_file.c

if (r != NULL && strstr(r->kv_value, "gzip") != NULL) {
/* append ".gz" to path and check existence */
ret = snprintf(gzpath, sizeof(gzpath), "%s.gz", path);
goto abort;


Jim


On Thursday, November 9th, 2023 at 07:37, Paul Pace  wrote:


> I have gzip-static set in a server block in httpd.conf.
> 
> If I make the following request:
> 
> curl -I -H 'Accept-Encoding: gzip,deflate' http://example.com
> 
> the response has no Content-Encoding header and the Content-Length
> matches /var/www/htdocs/index.html.
> 
> If I make the following request:
> 
> curl -I -H 'Accept-Encoding: gzip,deflate' http://example.com/index.html
> 
> the response includes Content-Encoding: gzip and the Content-Length
> matches /var/www/htdocts/index.html.gz.
> 
> Is there some additional configuration required or is this the intended
> output for the option?
> 
> Thank you,
> 
> Paul



Re: shmmax

2023-11-09 Thread Daniele B.


Paul de Weerd  wrote:

> Yes: don't twist knobs when you don't understand what they do.

Thnx, it is better then a Theo *template* ..


== Daniele Bonini



Java applications forget the splash on the left most screen

2023-11-09 Thread Daniele B.
Hello,

I do not know if it is pertaining your intervention range but
given 2 physical screens,
java applications like eg. NetBeans appear forgetting the initial
splash window on the left most screen.


== Daniele Bonini



Re: shmmax

2023-11-09 Thread Paul de Weerd
On Thu, Nov 09, 2023 at 08:04:34PM +0100, Daniele B. wrote:
| I'm guessing that for my usage profile I can go with an optimization
| like this:
| > sysctl kern.shminfo.shmmax=524288
| 
| Any more feedback?

Yes: don't twist knobs when you don't understand what they do.

-- 
>[<++>-]<+++.>+++[<-->-]<.>+++[<+
+++>-]<.>++[<>-]<+.--.[-]
 http://www.weirdnet.nl/ 



Re: OpenBSD_one_site_web_hosting_software_recommendation

2023-11-09 Thread Todd
https://www.tiltedwindmillpress.com/product/httpd-and-relayd-mastery/

An older book, but it has detailed setup of php applications on OpenBSD

On Thu, Nov 9, 2023 at 5:40 AM soko.tica  wrote:

> Hello,
>
> I have a task to launch from scratch one site web hosting google cloud
> instance.
>
> I know OpenBSD does have httpd web server, but I couldn't have found
> neither wordpress nor joomla software neither in packages nor in ports (7.4
> -stable).
>
> Is there a possibility to launch wordpress or joomla on such an instance on
> OpenBSD? Which manpages should I read?
> Thanks in advance,
>


Re: shmmax

2023-11-09 Thread Daniele B.


Janne Johansson  wrote:

> >  I'm here asking what
> > it is exactly the meaning for 'shared memory' here, and if implying
> > that it is eventually the max memory allocable to the graphic card
> > is correct.
> 
> No. This is not related to graphics card memory


Seems this tweak needs a vast knowledge, a certain kind 
of usage profile and some practicality with the system tools..
However, I did my homework and I didn't observe any practical
difference: 


I tried this:

sysctl kern.shminfo.shmmax=16777216

start:
wiz# vmstat -f 
3460 forks, 81357 pages, average 23.51
12 vforks, 678 pages, average 56.50
2202 __tforks, 0 pages, average 0.00
49 kthread creations, 0 pages, average 0.00

launching some apps (NetBeans, Firefox)

end:
wiz# vmstat -f 
3706 forks, 87817 pages, average 23.70
14 vforks, 689 pages, average 49.21
2297 __tforks, 0 pages, average 0.00
49 kthread creations, 0 pages, average 0.00


then:

sysctl kern.shminfo.shmmax=524288

start: 
wiz# vmstat -f 
3761 forks, 89282 pages, average 23.74
14 vforks, 689 pages, average 49.21
2308 __tforks, 0 pages, average 0.00
49 kthread creations, 0 pages, average 0.00

launching some apps (NetBeans, Firefox)

end:
wiz# vmstat -f 
4003 forks, 95495 pages, average 23.86
16 vforks, 699 pages, average 43.69
2389 __tforks, 0 pages, average 0.00
49 kthread creations, 0 pages, average 0.00

then:

sysctl kern.shminfo.shmmax=33554432

start: 
wiz# vmstat -f 
4107 forks, 97977 pages, average 23.86
16 vforks, 699 pages, average 43.69
2485 __tforks, 0 pages, average 0.00
49 kthread creations, 0 pages, average 0.00

end:
wiz# vmstat -f 
4350 forks, 104204 pages, average 23.95
18 vforks, 709 pages, average 39.39
2568 __tforks, 0 pages, average 0.00
49 kthread creations, 0 pages, average 0.00


I'm guessing that for my usage profile I can go with an optimization
like this:
> sysctl kern.shminfo.shmmax=524288

Any more feedback?


== Daniele Bonini



Re: smtpd[68513]: warn: lost processor: spamassassin exited abnormally

2023-11-09 Thread Omar Polo
I've committed the update and backported to -STABLE so the fixed package
should appear in the next days.

Thanks for the report and sorry for the breakage



gzip-static option isn't working on default index

2023-11-09 Thread Paul Pace

I have gzip-static set in a server block in httpd.conf.

If I make the following request:

curl -I -H 'Accept-Encoding: gzip,deflate' http://example.com

the response has no Content-Encoding header and the Content-Length 
matches /var/www/htdocs/index.html.


If I make the following request:

curl -I -H 'Accept-Encoding: gzip,deflate' http://example.com/index.html

the response includes Content-Encoding: gzip and the Content-Length 
matches /var/www/htdocts/index.html.gz.


Is there some additional configuration required or is this the intended 
output for the option?


Thank you,

Paul



Re: shmmax

2023-11-09 Thread Janne Johansson
>  I'm here asking what
> it is exactly the meaning for 'shared memory' here, and if implying
> that it is eventually the max memory allocable to the graphic card is
> correct.

No. This is not related to graphics card memory

-- 
May the most significant bit of your life be positive.



Re: OpenBSD_one_site_web_hosting_software_recommendation

2023-11-09 Thread Daniele B.
Peter J. Philipp :

> Instead of wordpress I invite you to be creative with C programming language
> and construct your own BCHS (pronounced beaches) website.  Many people have
> written their own blogs this way, so have I.  Check out my source code for
> this at:
> 
> https://gotweb.delphinusdns.org/?action=summary=centroidblog.got
> 
> It could be on github, but I haven't uploaded it there yet.
> 
> https://learnbchs.org/  <-- another great educational site
> 
> Best Regards,

Indeed my coporate vacuums are always very welcome here.

Nov 9, 2023 14:45:15 Peter J. Philipp :

> Instead of wordpress I invite you to be creative with C programming language
> and construct your own BCHS (pronounced beaches) website.  Many people have
> written their own blogs this way, so have I.  Check out my source code for
> this at:
> 
> https://gotweb.delphinusdns.org/?action=summary=centroidblog.got
> 
> It could be on github, but I haven't uploaded it there yet.
> 
> https://learnbchs.org/  <-- another great educational site
> 
> Best Regards,



Re: OpenBSD_one_site_web_hosting_software_recommendation

2023-11-09 Thread Peter J. Philipp
On Thu, Nov 09, 2023 at 12:38:27PM +0100, soko.tica wrote:
> Hello,
> 
> I have a task to launch from scratch one site web hosting google cloud
> instance.
> 
> I know OpenBSD does have httpd web server, but I couldn't have found
> neither wordpress nor joomla software neither in packages nor in ports (7.4
> -stable).
> 
> Is there a possibility to launch wordpress or joomla on such an instance on
> OpenBSD? Which manpages should I read?
> Thanks in advance,

Instead of wordpress I invite you to be creative with C programming language
and construct your own BCHS (pronounced beaches) website.  Many people have
written their own blogs this way, so have I.  Check out my source code for
this at:

https://gotweb.delphinusdns.org/?action=summary=centroidblog.got

It could be on github, but I haven't uploaded it there yet.

https://learnbchs.org/  <-- another great educational site

Best Regards,
-peter

-- 
Over thirty years experience on Unix-like Operating Systems starting with QNX.



shmmax

2023-11-09 Thread Daniele B.


Hello,

I come across the tweak of 'shmmax' and I'm here asking what 
it is exactly the meaning for 'shared memory' here, and if implying
that it is eventually the max memory allocable to the graphic card is
correct. 

>From man sysctl:

 To set the amount of shared memory available in the system and the
 maximum number of shared memory segments:

   # sysctl kern.shminfo.shmmax=33554432
   # sysctl kern.shminfo.shmseg=32

I miss also to understand what is the relationship between shmmax and
shmseg, eg. I actually set shmmax = 524288 dreaming a the *fastest car*.

Thxs!

== Daniele Bonini

 



Re: OpenBSD_one_site_web_hosting_software_recommendation

2023-11-09 Thread Daniele B.
If you are trying to implement a blog you can try out AvatarFree (php as well):

https://avatarfree.org
https://github.com/5mode/AvatarFree

It is a software on premise, assl and corporation free to own your social 
presence.

Eventually don't forget to edit your skinner.html and metrics.html

I am sorry if I'm not intimidated to prop my stuff..


-- Daniele Bonini

Nov 9, 2023 12:41:43 soko.tica :

> Hello,
> 
> I have a task to launch from scratch one site web hosting google cloud
> instance.
> 
> I know OpenBSD does have httpd web server, but I couldn't have found
> neither wordpress nor joomla software neither in packages nor in ports (7.4
> -stable).
> 
> Is there a possibility to launch wordpress or joomla on such an instance on
> OpenBSD? Which manpages should I read?
> Thanks in advance,



Re: OpenBSD_one_site_web_hosting_software_recommendation

2023-11-09 Thread Manuel Giraud
"Peter N. M. Hansteen"  writes:

> On Thu, Nov 09, 2023 at 12:38:27PM +0100, soko.tica wrote:
>> I have a task to launch from scratch one site web hosting google cloud
>> instance.
>> 
>> I know OpenBSD does have httpd web server, but I couldn't have found
>> neither wordpress nor joomla software neither in packages nor in ports (7.4
>> -stable).
>> 
>> Is there a possibility to launch wordpress or joomla on such an instance on
>> OpenBSD? Which manpages should I read?
>
> You're probably right that those systems do not come pre-packaged for
> OpenBSD.

Yes and I think there is no point in pre-packaging them.  Wordpress
wants to manage its update.  I have some sites with this stack
(OpenBSD/mariadb/php-fpm/httpd) and it just works.

>From this stack, the only thing that you will find in man pages is what
is related to httpd.  You could also read pkg-readmes for mariadb and
php-fpm.  And, as Peter said, the rest will be on internet.  Good luck.
-- 
Manuel Giraud



Re: OpenBSD_one_site_web_hosting_software_recommendation

2023-11-09 Thread Omar Polo
On 2023/11/09 12:38:27 +0100, "soko.tica"  wrote:
> Hello,
> 
> I have a task to launch from scratch one site web hosting google cloud
> instance.
> 
> I know OpenBSD does have httpd web server, but I couldn't have found
> neither wordpress nor joomla software neither in packages nor in ports (7.4
> -stable).
> 
> Is there a possibility to launch wordpress or joomla on such an instance on
> OpenBSD? Which manpages should I read?
> Thanks in advance,

Both wordpress and joomla are written in PHP, so start by installing it
and reading the README file the php package installs in
/usr/local/share/doc/pkg-readmes/php-8.2

There you'll find carefully described the steps you need to to do run
php stuff in the /var/www chroot with OpenBSD' httpd (and also notes for
Apache httpd and nginx).  Pay particular attention to the "Extension
modules" section since wordpress will need a few of them, "Living with
chroot" and "Making network connections".

Similarly, you'll also need mariadb (for wordpress at least.)  Same
thing, the package installs a README file with the relevant information.

Then, installing wordpress is a matter of fetching the latest sources,
unzip them somewhere under /var/www/ and run the installer.  It will
probably complain about a few missing php modules (stuff like php-gd or
maybe php-zip).  Install them, restart php-fpm, rinse and repeat until
it's happy :)



Re: OpenBSD_one_site_web_hosting_software_recommendation

2023-11-09 Thread Mike Fischer
Yep, WordPress is doable. I’ve never used Joomla, so I can’t say for sure.

One thing to note is that OpenBSD httpd does not have the .htaccess mechanism. 
So sites relying on Apache httpd .htaccess features might need some thought. 
OTOH there is a port for Apache httpd…


HTH
Mike

> Am 09.11.2023 um 12:58 schrieb Peter N. M. Hansteen :
> 
> On Thu, Nov 09, 2023 at 12:38:27PM +0100, soko.tica wrote:
>> I have a task to launch from scratch one site web hosting google cloud
>> instance.
>> 
>> I know OpenBSD does have httpd web server, but I couldn't have found
>> neither wordpress nor joomla software neither in packages nor in ports (7.4
>> -stable).
>> 
>> Is there a possibility to launch wordpress or joomla on such an instance on
>> OpenBSD? Which manpages should I read?
> 
> You're probably right that those systems do not come pre-packaged for OpenBSD.
> 
> But simple web search on "wordpress on openbsd httpd" and "joomla on openbsd 
> httpd"
> yields enough seemingly relevant hits that I strongly suspect both are doable.
> 
> I have not tried either myself, though.
> 
> -- 
> Peter N. M. Hansteen, member of the first RFC 1149 implementation team
> https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
> "Remember to set the evil bit on all malicious network traffic"
> delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
> 




Re: OpenBSD_one_site_web_hosting_software_recommendation

2023-11-09 Thread Maja Reberc
WordPress and Joomla can be deployed without using a port/package. I've
always done it this way.

It's up to you which web server you choose. I'd go with OpenBSD httpd
because I really like its simple configuration (in contrast to Apache).
If you decide to use httpd, definitely read httpd(8). httpd.conf(5) has
some very neat config file examples.

If you plan on using an SSL certificate from Let's Encrypt, you will
find acme-client(1) most useful. It's really nice light replacement for
certbot.

See this guide for installing WordPress on OpenBSD:
https://www.openbsdhandbook.com/howto/wordpress/

In essence, you'll need to set httpd up to use PHP (examples have that
covered), and set up MariaDB. Then you drop WP files, extract them in
the server root, and complete the process in the web browser.

WP also has an install guide you can follow:
https://developer.wordpress.org/advanced-administration/before-install/howto-install/
This one will probably use Apache, though.

On Thu, 9 Nov 2023 12:38:27 +0100
"soko.tica"  wrote:

> Hello,
> 
> I have a task to launch from scratch one site web hosting google cloud
> instance.
> 
> I know OpenBSD does have httpd web server, but I couldn't have found
> neither wordpress nor joomla software neither in packages nor in
> ports (7.4 -stable).
> 
> Is there a possibility to launch wordpress or joomla on such an
> instance on OpenBSD? Which manpages should I read?
> Thanks in advance,


Re: OpenBSD_one_site_web_hosting_software_recommendation

2023-11-09 Thread Peter N. M. Hansteen
On Thu, Nov 09, 2023 at 12:38:27PM +0100, soko.tica wrote:
> I have a task to launch from scratch one site web hosting google cloud
> instance.
> 
> I know OpenBSD does have httpd web server, but I couldn't have found
> neither wordpress nor joomla software neither in packages nor in ports (7.4
> -stable).
> 
> Is there a possibility to launch wordpress or joomla on such an instance on
> OpenBSD? Which manpages should I read?

You're probably right that those systems do not come pre-packaged for OpenBSD.

But simple web search on "wordpress on openbsd httpd" and "joomla on openbsd 
httpd"
yields enough seemingly relevant hits that I strongly suspect both are doable.

I have not tried either myself, though.

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



OpenBSD_one_site_web_hosting_software_recommendation

2023-11-09 Thread soko.tica
Hello,

I have a task to launch from scratch one site web hosting google cloud
instance.

I know OpenBSD does have httpd web server, but I couldn't have found
neither wordpress nor joomla software neither in packages nor in ports (7.4
-stable).

Is there a possibility to launch wordpress or joomla on such an instance on
OpenBSD? Which manpages should I read?
Thanks in advance,


Re: Regression (or misconfig on my side?) after OpenOSPFd upgrade (OpenBSD 7.3 -> 7.4)

2023-11-09 Thread Stuart Henderson
On 2023-11-07, Laurent CARON  wrote:
> Hi,
>
> After upgrading a 7.3 to 7.4 OpenBSD box, I noticed OSPF adjacencies 
> using a password are not coming up with the following in /var/log/messages:
>
> ospfd[55040]: recv_packet: authentication error, neighbor ID X.X.X.X 
> interface vlanXX
>
> After removing the authentication, I was able to get adjacencies to come up.
>
> Config contains:
>
> password=""
> auth-key $password
> auth-type simple
>
> This config was working perfectly fine until OpenBSD 7.3 but fails with 7.4
>
> The 'only' way I found to have it working is to get rid of authentication.

Out of interest, any particular reason to use auth-type simple (which
always struck me as being pretty useless for a multicast protocol)
rather than crypt?