PHP Cannot find Bzip2

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

PHP Cannot find Bzip2

Postby laidlaws » Sep 5th, '24, 16:17

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?
laidlaws
 
Posts: 282
Joined: May 24th, '11, 04:58

Re: PHP Cannot find Bzip2

Postby doktor5000 » Sep 5th, '24, 16:27

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: PHP Cannot find Bzip2

Postby laidlaws » Sep 6th, '24, 00:15

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>
Last edited by doktor5000 on Sep 6th, '24, 00:32, edited 1 time in total.
Reason: added code tags
laidlaws
 
Posts: 282
Joined: May 24th, '11, 04:58

Re: PHP Cannot find Bzip2

Postby doktor5000 » Sep 6th, '24, 00:34

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: PHP Cannot find Bzip2

Postby laidlaws » Sep 6th, '24, 03:10

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.
laidlaws
 
Posts: 282
Joined: May 24th, '11, 04:58

Re: PHP Cannot find Bzip2

Postby laidlaws » Sep 6th, '24, 10:27

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.
laidlaws
 
Posts: 282
Joined: May 24th, '11, 04:58


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron