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

Apache start fails using manual and automated install #1

Open
JayEn84 opened this issue Mar 9, 2024 · 1 comment
Open

Apache start fails using manual and automated install #1

JayEn84 opened this issue Mar 9, 2024 · 1 comment

Comments

@JayEn84
Copy link

JayEn84 commented Mar 9, 2024

Hey Maurizio,

testing your script, looks very charming. I tried the automated and the manual install. Unfortunately, after both tries, apache2 was not running on my machine.
apache2 --version
gives me the following error:
[core:warn] [pid 1192] AH00111: Config variable ${APACHE_RUN_DIR} is not defined apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot

Looking at your script, you do not edit apache2.conf at all. Do you have an idea what's going on?

Thanks for your script anyways! Greetings

@JayEn84
Copy link
Author

JayEn84 commented Mar 9, 2024

A closer look at the manual installation and executing the commands one by one, I already receive an error directly after the apache installation:

Command:

PHPVERS="8.3 8.2 8.1 8.0 7.4 7.3 7.2 7.1 7.0 5.6"
PHPMODS="cli bcmath bz2 curl fpm gd gmp igbinary imagick imap intl mbstring mcrypt memcached msgpack mysql readline redis soap sqlite3 xsl zip"
APTPACKS=$(for VER in $PHPVERS; do echo -n "libapache2-mod-php$VER php$VER "; for MOD in $PHPMODS; do if [ "$VER" = "8.3" -a "$MOD" = "mcrypt" ]; then continue; fi; echo -n "php$VER-$MOD "; done; done)
apt install -y apache2 brotli openssl libapache2-mod-fcgid $APTPACKS

Result (excerpt):

Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
invoke-rc.d: initscript apache2, action "start" failed.
× apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2024-03-09 13:36:25 CET; 3ms ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 174568 ExecStart=/usr/sbin/apachectl start (code=exited, status=139)

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

1 participant