Page 1 of 1

PHP Cannot find Bzip2

PostPosted: Sep 5th, '24, 16:17
by laidlaws
I have installed task-lamp-php. The browser refuses to open for a local search, with the usual message that "the site may be busy," etc. The error log says that PHP cannot find bzip2, and exits. This has never happened before. The files it is looking for are there, and permissions look O.K. Everything in /var/www/html is owned by user and group apache.Stack Exchange says that PHP must be specifically compiled for the environment, but if so, I would need to compile it for each reinstall. Installing from any distro, it would seem not to be the problem here.

Have I missed something?

Re: PHP Cannot find Bzip2

PostPosted: Sep 5th, '24, 16:27
by doktor5000
Your description is a bit vague.
"browser refuses to open for a local search" meaning you're trying to access http://localhost locally on the server where you installed task-lamp? or remotely from a different box ?
And what do you actually try to access, and what did you put under /var/www/html ? Also did you configure your firewall ?

Starting a bit more structured, what does the following output as root
Code: Select all
systemctl status httpd -al -n50


On a related note, have a look at https://wiki.mageia.org/en/Task-lamp-installation

Re: PHP Cannot find Bzip2

PostPosted: Sep 6th, '24, 00:15
by laidlaws
Here is the result you asked for:

Code: Select all
systemctl status httpd -al -n50
[sudo] password for doug:
× httpd.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
     Active: failed (Result: exit-code) since Thu 2024-09-05 20:45:01 AEST; 11h ago
   Duration: 140ms
    Process: 3866 ExecStart=/usr/s

bin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FA>
   Main PID: 3866 (code=exited, status=1/FAILURE)
     Status: "Configuration loaded."
        CPU: 152ms

Sep 05 20:45:00 dougshost.douglaidlaw.net systemd[1]: Starting httpd.service...
Sep 05 20:45:01 dougshost.douglaidlaw.net systemd[1]: Started httpd.service.
Sep 05 20:45:01 dougshost.douglaidlaw.net systemd[1]: httpd.service: Main process exited, c>
Sep 05 20:45:01 dougshost.douglaidlaw.net systemd[1]: httpd.service: Failed with result 'ex>

Re: PHP Cannot find Bzip2

PostPosted: Sep 6th, '24, 00:34
by doktor5000
You might need to run that in a bigger terminal as the most relevant part has been cut. Or try with
Code: Select all
systemctl --no-pager status httpd -al -n50


Also check httpd logs on why it actually failed.

Re: PHP Cannot find Bzip2

PostPosted: Sep 6th, '24, 03:10
by laidlaws
The installer won't install from a USB key, saying it is "outside the loop." The total installation may be borked. I am about to do a complete reinstall, and will report back afterwards.

Re: PHP Cannot find Bzip2

PostPosted: Sep 6th, '24, 10:27
by laidlaws
i redirected the output of your script to a file, hoping to catch ALL the output. The file was short and sweet:

Code: Select all
httpd.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
     Active: inactive (dead)


Both files mentioned there are system files, and should be O.K.