Cooker - Apache installation

I am in the process of providing a localization Dutch for bugzilla 5.2, so I need that installed.
But AFAICS is Openmandriva Cooker the only distrib that carries this version.
Installing OpenMandriva Cooker (I’m a long time user of the Mandrake tree) went quite easy. Then I used dnfdragora to install apache-base and its dependencies, and that went apprently well, but not really.
I get running as root the following:

systemctl -l status httpd
Unit httpd.service could not be found

,

getent passwd apache
returns nothing

And subsequently the installation of bugzilla 5.2 fails since it requires the apache group and a running apache.
I know Cooker is not stable version, but this is not really untrodden territory, isn’t it?

@hviaene
welcome1

Right now or within some hours ROME will get all the packages from cooker so it will be basically the same as you have.

As for Apache, you’ll need a developer or a very advanced users to get your question answered.
Stay tuned.

Check for the presence of the apache2 service instead of httpd. I think they are naming them to differentiate between nginx … etc…

Alas, apache2 service not found.
I checekd the contents of apache-bas in dnfdragora, and found e.g. the config files, but no service. And with Kuser, I checked and found no apache-user or -group installed either. So where is the actual server stuff hidden??

Please check the contents of this package and make sure it has what you need:

https://openmandriva.pkgs.org/cooker/openmandriva-main-release-aarch64/apache-base-2.4.62-3-omv2490.aarch64.rpm.html

If you have not installed this package already, please do and verify if it solves the issue.

Excuse me, I didn’t see your comments sooner, must have deleted some mail too quickly. Anyway, if I read you correctly, you indicate me an aarch64 item not x86-64. Would that do any good on my AMD-based desktop???

Here is the alternative package for x86_64:

https://openmandriva.pkgs.org/cooker/openmandriva-main-release-x86_64/apache-base-2.4.62-3-omv2490.x86_64.rpm.html

The files should be the same.

Downloaded the rpm pointed to, used dnfdragora ro remove all apache, removed leftover /etc/httpd.
Then installed file with
dnf install ./apache-base-2.4.62-3-omv2490.x86_64.rpm
and let dnf add all other required apache packages.
Got errors for downloading cooker-testing-x86_64-extra and -restricted and -nonfree, but apparently it installed 44 packages and no problems seen in running the scriptlets, except at the end 3 warnings for deprecated posix.fork .wait .execute.
Feedback on the CLI finally Ready (i guess since I run in Dutch).
But again using kuser: no user or group apache, no service apache2 with systemctl.

Those are false positives.

You really only needed to do sudo dnf install apache2-base

If I had to take a guess, I would say the package needs maintenance and has been “replaced” by nginx in terms of priority and upkeep.

Does that mean that the person who built this bugzilla5.2 rpm hasn’t been able to install that one on cooker??

I’m not running OM every day, tried today and did system updates and gort a.o. kernel 6.13 and a whole bunch of apache packages. Rebooted to be sure to run the latest kernel and then checked for apache, but no change, no dervice known, no user in the system.
Consulted the apache documentation and tried to manually start, but get this strange result:

apachectl -k start

Command ‘apachectl’ can be found in:
package ‘apache-base’ (main, installed)
Checked in dnfdragora the contents of the package, but I don’t see that item in the files, and not in /usr/bin or /usr/sbin. Any idea what is going on??
The whole thing blocks me from installing bugzilla5.2, that needs apache.

Sorry for the misspelling earlier. The package is apache-base. You get that notification when the package is not installed.

Here is the makeup of that package for cooker:

https://openmandriva.pkgs.org/cooker/openmandriva-main-release-x86_64/apache-base-2.4.63-1-omv2590.x86_64.rpm.html

Doing a page search for apachectl shows a man page.

When I look at the pacakge recipe for apache which produces the apache-base package, I find this:

It looks like you will need the apache-mpm-event package to get those utilities according to the spec:

sudo dnf in apache-mpm-event

Installing that package resolves the problem of the service niot existing. TX for that. BTW, the name of the service is httpd, not apache2.
But I’m still not at the end of the trouble, the service refuses to start because of the missing apache user (and group I guess):
apachectl AH00543: httpd: bad user name apache
That user is defined in /etc/http/conf/http.conf. I’ll refrazin from trying to create it manually since this is a system user (id below 1000 on other installations).

That’s a bug, we’ve decided a while ago to rename the user to to www so it can be shared between apache, nginx and other webservers to make switching from one to another easier. Must have overlooked the default config there. Fixing…

2 Likes

That’s a decision which has (maybe?) unexpecterd ramifications. The bugzilla5.2 in the cooker repos will not install then, it requires user apache. Unless it picks it up from the /etc/http/conf/http.conf file.
I will test this again after your fix is introduced.

The choice to rename the user has nothing to do with if Bugzilla will install or not. He already said the problem was the default config and that he will fix it. Chances are, it’s probably already fixed in cooker. It will be part of the refresh to ROME, and probably Rock 6.0.

Yes, I got a load of apache update packages in and thse resolve the issue of httpd running, and removes the errors for unknown apache user when trying to install bugzilla 5.2.
I will start anotther thread on that one, because some strange requirement pops up there.
Tx for your help.

2 Likes