[apache] : problem with apache aarch64

Problems with packages? Post here, using [tags] of the package name.

[apache] : problem with apache aarch64

Postby hp4 » Wed Feb 24, 2021 2:39 pm

Hi,

I've posted a strange problem with my apache-package on RPI4/aarch64 in the ARMv8-forum, but up to now didn't receive a comment: files delivered via apache from a cifs-mount-point seem to be corrupted. wget reports corrupted http-protocol.

https://archlinuxarm.org/forum/viewtopic.php?f=65&t=15144

I did some additional testing and the files seem to be correctly delivered by the lighttpd-webserver.

Since the files

- can be directly accessed by other applications
- apache works fine on RPI4 with 32Bit-archlinuxarm
- lighttpd serves the files correctly

I hope that I didn't miss a mistake in the apache-configuration, so I think that the apache build for aarch64 must have a problem with file handling for mounted trees.

It would be nice, if someone with a running apache on RPI4/aarch64 could do a quick check with loading pdf- or jpg-files from a cifs-mount within the document root.
hp4
 
Posts: 45
Joined: Thu May 30, 2013 12:09 pm

Re: [apache] : problem with apache aarch64

Postby robg » Wed Feb 24, 2021 5:56 pm

Does Apache provide arm64 builds on their website that you can download and test? If not, can you build Apache following their official instructions? If that works, you should compare their build instructions with the arch PKGBUILD and check where (and why) it differs and if a fix can be proposed. If their official build fails, you should take this matter to their forums.
robg
 
Posts: 186
Joined: Tue Jan 05, 2021 8:22 am

Re: [apache] : problem with apache aarch64

Postby hp4 » Wed Feb 24, 2021 7:25 pm

Thanks for your help. I couldn't find an arm64-binary for apache. So I'll have to follow your advice and try to build from source: but it may take some time , since I don't have much experience in building big software packages (with probably many dependencies) for archlinuxarm.
In the meantime I would still be happy to receive some test-results from people, who have this configuration running.
hp4
 
Posts: 45
Joined: Thu May 30, 2013 12:09 pm

Re: [apache] : problem with apache aarch64

Postby robg » Thu Feb 25, 2021 12:20 pm

If Apache builds on ARM64 at all - which appears to be the case - it should suffice to follow their instructions here: http://httpd.apache.org/docs/2.4/install.html

If the build fails, I would suggest comparing the instructions against those in the PKGBUILD file in package repository.

You are right of course in wanting a reply from someone that runs the same setup.
robg
 
Posts: 186
Joined: Tue Jan 05, 2021 8:22 am

Re: [apache] : problem with apache aarch64

Postby hp4 » Thu Feb 25, 2021 9:22 pm

thanks for your help. I followed your recommendation and built my own apache server. The problem also occurred with this private build.

So I discussed it with the apache-development and they suggested to specify the options

"EnableSendfile off"
"EnableMMAP off"

These 2 configuration options solve the problem, the delivered files aren't corrupted.

The corresponding apache documentation https://httpd.apache.org/docs/2.4/en/mod/core.html talks about:

$this->bbcode_second_pass_quote('', 'F')or server configurations that are vulnerable to these problems....


Since I didn't observe this problem with the archlinux 32Bit-kernel, I'm wondering:

Is the archlinux 64Bit-kernel vulnerable?

I don't know anything about this "sendfile support in the kernel"-stuff, but is it an implementation-bug in the kernel, which might also affect other applications using this kernel feature? Should the feature be disabled in the kernel-configuration, if possible?

should this issue be redirected to the archlinux-kernel developers? Should anyone follow up this issue or should it simply be closed?
hp4
 
Posts: 45
Joined: Thu May 30, 2013 12:09 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 5 guests