OS/2, eCS & ArcaOS - Technical > Web applications

Migrating Apache Web Server

(1/2) > >>

Neil Waldhauer:
I tried posting in the Google Group "Apache for OS/2", but my post disappeared so I'll try here, too.

I'm helping someone migrate from an old website hosted by OS/2 on an IBM 300 GL machine running Apache 1.3.6. The website is pretty old-school, but it has a Flash splash page.

The target machine is an IBM M-Pro, so not that much newer, but it has a working web server, Apache 2.2.23 installed as a part of the last OS/2 AMP release. It was hosting another simple website.

Looking at it, we thought to just transfer the HTDOCS directory replacing the one on the newer M-Pro with the one from the older 300 GL. This mostly works.

The problems are that web pages seem to fail to load on the first request from a browser, then the second and subsequent attempts seem to work. In addition, I can't seem to get the Flash screen to appear. (OK, on operating systems like OS/2 that do not have Flash, it's just a black page, but instead, requests for the .swf file just seem to try forever.

Those problems seem to be connected with a reconfiguration. How can I find documentation for Apache for OS/2, particularly something related to getting started?

Ian Manners:
Hi Neil,

Moving from v1.3.41 to v2.2.something, I got there from addressing the errors that appeared in the error log.
Maybe try updating Apache 1.3.6 to Apache 1.3.41 first before going to the Apache v2.x.x branch.

in httpd.conf for error reporting, I have the following:

    ErrorLog logs/error.log
    LogLevel warn

You should be able to find other error levels by googling.

Neil Waldhauer:
I selected Paul Smedley's latest Apache 2.2 HTTPD

https://os2ports.smedley.id.au/index.php?page=apache2

I adjusted the conf/httpd.conf, and the website is running.

But not all is well. The server stops serving after a few days. Is anyone running this software? The logs seem to show nothing unusual, and there isn't really very much traffic. What could cause the server to stop?

Dave Yeo:
I think Lewis has mentioned having to do regular reboots, you might want to ask him.

Paul Smedley:
Hey Neil,


--- Quote from: Neil Waldhauer on September 07, 2019, 05:34:45 pm ---I selected Paul Smedley's latest Apache 2.2 HTTPD

https://os2ports.smedley.id.au/index.php?page=apache2

I adjusted the conf/httpd.conf, and the website is running.

But not all is well. The server stops serving after a few days. Is anyone running this software? The logs seem to show nothing unusual, and there isn't really very much traffic. What could cause the server to stop?

--- End quote ---

Lewis, Massimo and a few others are using the 2019 build on their server with reasonable success.

One of the keys is to make sure you have a valid setting for MaxRequestsPerChild - I suggest 1000 based on the below from Lewis...


--- Code: ---I can report a similar experience.

I'm currently running with MaxRequestsPerChild of 1000, and have seen uptime of over 10 days, no more every-four-hour scheduled daemon restarts and no more every-three-days scheduled server reboots. Memory consumption seems generally low (under 1GB in use under normal operating conditions, and memory is returned to the pool when load decreases - wow!).

I had an issue yesterday where the server fell over, but I think we were being hammered. After the restart and the inevitable autocheck passes, the server has been up.

Nice work, Paul!
--- End code ---

Cheers,

Paul

Navigation

[0] Message Index

[#] Next page

Go to full version