Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script (web services) not launching with PHP8 in Archlinux( /Manjaro Linux) Install #447

Open
rod2ik opened this issue Nov 30, 2021 · 7 comments

Comments

@rod2ik
Copy link

rod2ik commented Nov 30, 2021

Hello,

Thanks for this wonderful software.

I am having problems to install your script with PHP 8 on Manjaro Linux, which should globally be similar to ArchLinux, I would say (I don't think it is the Manjaro specificity that causes problems, but the PHP8 part of it)

Could you please be of any help? may be adapt your script ?

(Adapting your install notes for Archlinux), I had to add a line export PATH=$PATH:/usr/sbin in my .bashrc root file to launch the install script on Manjaro Linux: otherwise the script won't launch.

But afterwards it works fine until it fails to enable the web services, since PHP8. May be the same problem exists in the ArchLinux install, with PHP8 as well ?

The following config lines have changed (between PHP7 and PHP8) in the /etc/httpd/conf/httpd.conf apache config file, to run apache with PHP8 on Archlinux (and Manjaro Linux). I think they are the main cause of the failing of the script (but I may be wrong, you know better than me):

# PHP8 compatible way to configure the apache conf file in ArhcLinux/Manjaro Linux

# The following line has to be commented
#LoadModule mpm_event_module modules/mod_mpm_event.so

# this one must be uncommented
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

# Load php8 module
LoadModule php_module modules/libphp.so

# Uncomment the line
Include conf/extra/php_module.conf

Alternatively, you could guide me through what has to be changed/adapted for PHP8 and Manjaro Linux? (/PHP8+Archlinux ?)

Thanks very much for any reply,

@Sebastian-Roth
Copy link
Member

@rod2ik Interestingly we've had a post on Arch in the forums that was updated just recently: https://forums.fogproject.org/topic/15594/got-arch-manjaro-install-to-work

We are very happy to make this work on Manjaro and Arch but it'd be very handy to have exact information on what needs to be changed. Best if you can send in a pull request (against dev-branch not master) or post a git diff output for us to include.

The following config lines have changed (between PHP7 and PHP8) in the /etc/httpd/conf/httpd.conf apache config file, to run apache with PHP8 on Archlinux (and Manjaro Linux).

We are talking about this part of the installer I guess: https://github.com/FOGProject/fogproject/blob/dev-branch/lib/common/functions.sh#L2107

If you're unable to send in a pull request of diff you might send us a default httpd.conf before adjustments.

I had to add a line export PATH=$PATH:/usr/sbin in my .bashrc root file to launch the install script on Manjaro Linux: otherwise the script won't launch.

I know the check on PATH in the installer is not ideal to see if people use a proper root environment. If you have other ideas on how to make sure, I am happy to know about it. In the past we had people use sudo ./installfog.sh or su instead of su - and ran into strange problems. Therefore we added the check at some point.

@Sebastian-Roth
Copy link
Member

@rod2ik Please help us with some more details.

@rod2ik
Copy link
Author

rod2ik commented Dec 16, 2021

Thanks for your reply. I will take some spare time to try to give you the best answer ASAP

@Sebastian-Roth
Copy link
Member

@rod2ik Hope you had a good start to the new year. Any news on this issue?

@Sebastian-Roth
Copy link
Member

I just got my act together and tried to find most references we have to FOG supporting Arch Linux.

https://forums.fogproject.org/topic/1697/install-fog-on-arch-linux
https://forums.fogproject.org/topic/6522/latest-git-fails-during-install-on-arch-linux

As well I am trying to reach out to all the people being involved with in the past: @dfear @mastacontrola @gfokkema @jonbesga @ase1590 @wayneworkman @rod2ik

Is anyone of you still using FOG on Arch Linux? And if yes, then is anyone of you keen and able to help update the code (mainly bash installer scripts)?

Might sound a bit harsh but Arch support will be removed from the code if we don't find anyone to work on this part. We won't purge github history so if someone comes along later we can still get things back without much effort. So if we don't hear back from anyone taking the lead within the next two weeks on this we'll remove Arch support.

@ase1590
Copy link

ase1590 commented Jan 16, 2022

I've retired my FOG Arch server after a career change.

I'd say I agree, dropping arch support for the time being unless someone else wants to stop in would be the right move.

@Sebastian-Roth
Copy link
Member

@ase1590 Thanks for your quick response.

I just figured I should ask in the forums as well before finally tossing it out: https://forums.fogproject.org/topic/15591/arch-manjaro-install-database-and-web-fails

So there is a last chance here we find someone willing to help on the ARCH support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants