Change the Server now problems in apps

The Apcahe2 server is up and running just fine.
Most of the apps runs exactly as before.

I have problems with the nextcloud, wordpress, phpmyadmin, pihole, and baikal.
All of this returns the same error message in browser " Service Unavailable"

In nextcloud i reinstall, remove install again and when i run “ncc list”
i get “Segmentation fault”

Is there any way to fix that problem.
Thank you

hmm this usually indicates issues with the executable, like the program did not fit to the system architecture or has some corruption.

Did you tried to reinstall wordpress, phpmyadmin, pihole, and baikal as well? How you access the sites? Did you had any revers proxy active before? Or SSL? Any custom configuration?

I tried to reinstall all of the above apps and none of them works
In case of Pihole i get this error message
"[i] SELinux not detected
[i] Update local cache of available packages…
"
and it stops.

I access this sites inside the home network
No i dont have revers proxies active
No SSL
No custom Configuration to above apps

the messages are fine and as expected. Usually the installer should continue as follow

  [i] SELinux not detected
  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.4.30

  [✓] Checking apt-get for upgraded packages... up to date!

What exactly do you mean with, it stops??

It throws a window screen says :

  • Command: ./install.sh --disable-install-webserver
    │ - Exit code: 139
    │ - DietPi version: v8.6.1 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 2 |
    │ DISTRO: 6
    │ - Image creator: DietPi Core Team
    │ - Pre-image: from scratch
    │ - Error log:

    │ [✓] Root user check

    │ .;;,.
    │ .ccccc:,.
    │ :cccclll:. …,
    │ :ccccclll. ;ooodc
    │ 'ccll:;ll .oooodc

    │ Retry : Re-run the last command that failed ↑
    │ DietPi-Config : Edit network, APT/NTP mirror settings etc ▮


your entire system doesn’t looks healthy. First the Segmentation fault messages and now strange characters as error message.

Not sure if it’s gonna help, but you could do some basic fs checks

> /forcefsck
reboot
# then after reboot
journalctl -t systemd-fsck

@MichaIng
further ideas?

Here the results

dietpi@station:~$ sudo journalctl -t systemd-fsck
– Journal begins at Mon 2022-07-25 16:06:10 EEST, ends at Mon 2022-07-25 17:04: 42 EEST. –
Mar 20 21:55:25 station systemd-fsck[148]: Please pass ‘fsck.mode=force’ on the kernel command line rather than creating /forcefsck on the root file system.
Jul 25 16:06:10 station systemd-fsck[166]: e2fsck 1.46.2 (28-Feb-2021)
Jul 25 16:06:10 station systemd-fsck[166]: Pass 1: Checking inodes, blocks, and sizes
Jul 25 16:06:12 station systemd-fsck[166]: Pass 2: Checking directory structure
Jul 25 16:06:15 station systemd-fsck[166]: Pass 3: Checking directory connectivi ty
Jul 25 16:06:15 station systemd-fsck[166]: Pass 4: Checking reference counts
Jul 25 16:06:15 station systemd-fsck[166]: Pass 5: Checking group summary inform ation
Jul 25 16:06:15 station systemd-fsck[166]: /dev/mmcblk0p2: 154691/938400 files ( 0.2% non-contiguous), 1436959/3756032 blocks
Jul 25 16:06:19 station systemd-fsck[263]: Please pass ‘fsck.mode=force’ on the kernel command line rather than creating /forcefsck on the root file system.
Jul 25 16:06:19 station systemd-fsck[279]: fsck.fat 4.2 (2021-01-31)
Jul 25 16:06:19 station systemd-fsck[279]: /dev/mmcblk0p1: 359 files, 103875/258 077 clusters

Something is not right, i think.

Hmm, fsck logs look fine. Please try to reinstall PHP packages:

sudo apt update
sudo apt install --reinstall $(dpkg --get-selections | mawk '/php7.4/{print $1}')
sleep 3
journalctl -u php7.4-fpm

Jul 25 16:06:41 station systemd[1]: Starting The PHP 7.4 FastCGI Process Manager…
Jul 25 16:06:43 station systemd[1]: php7.4-fpm.service: Main process exited, code=killed, status=11/SEGV
Jul 25 16:06:43 station systemd[1]: php7.4-fpm.service: Failed with result ‘signal’.
Jul 25 16:06:43 station systemd[1]: Failed to start The PHP 7.4 FastCGI Process Manager.

I made the reinstall and in journalctl command i get the above message

Nasty, so the issue must be with one of the dependencies. I’ll give you instructions about reinstalling those when I’m home.

A quick check whether it works is running the php command.

1 Like

When i run the php i get

dietpi@station:~$ php
Segmentation fault

apt install --reinstall libargon2-1 libedit2 libmagic1 libpcre2-8-0 libsodium23 libssl1.1 libxml2 zlib1g libffi7 libedit2
php
dietpi@station:~$ sudo apt install --reinstall libargon2-1 libedit2 libmagic1 libpcre2-8-0 libsodium23 libssl1.1 libxml2 zlib1g libffi7 libedit2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 9 reinstalled, 0 to remove and 1 not upgraded.
Need to get 2577 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://deb.debian.org/debian bullseye/main armhf libffi7 armhf 3.3-6 [19.9 kB]
Get:2 https://deb.debian.org/debian bullseye/main armhf libpcre2-8-0 armhf 10.36-2 [212 kB]
Get:3 https://archive.raspberrypi.org/debian bullseye/main armhf libssl1.1 armhf 1.1.1n-0+deb11u3+rpt1 [1292 kB]
Get:4 https://deb.debian.org/debian bullseye/main armhf zlib1g armhf 1:1.2.11.dfsg-2+deb11u1 [84.8 kB]
Get:5 https://deb.debian.org/debian bullseye/main armhf libargon2-1 armhf 0~20171227-0.2 [20.4 kB]
Get:6 https://deb.debian.org/debian bullseye/main armhf libedit2 armhf 3.1-20191231-2+b1 [81.1 kB]
Get:7 https://deb.debian.org/debian bullseye/main armhf libmagic1 armhf 1:5.39-3 [117 kB]
Get:8 https://deb.debian.org/debian bullseye/main armhf libsodium23 armhf 1.0.18-1 [147 kB]
Get:9 https://deb.debian.org/debian bullseye/main armhf libxml2 armhf 2.9.10+dfsg-6.7+deb11u2 [603 kB]
Fetched 2577 kB in 7s (395 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 65106 files and directories currently installed.)
Preparing to unpack .../libffi7_3.3-6_armhf.deb ...
Unpacking libffi7:armhf (3.3-6) over (3.3-6) ...
Setting up libffi7:armhf (3.3-6) ...
(Reading database ... 65106 files and directories currently installed.)
Preparing to unpack .../libpcre2-8-0_10.36-2_armhf.deb ...
Unpacking libpcre2-8-0:armhf (10.36-2) over (10.36-2) ...
Setting up libpcre2-8-0:armhf (10.36-2) ...
(Reading database ... 65106 files and directories currently installed.)
Preparing to unpack .../libssl1.1_1.1.1n-0+deb11u3+rpt1_armhf.deb ...
Unpacking libssl1.1:armhf (1.1.1n-0+deb11u3+rpt1) over (1.1.1n-0+deb11u3+rpt1) ...
Setting up libssl1.1:armhf (1.1.1n-0+deb11u3+rpt1) ...
(Reading database ... 65106 files and directories currently installed.)
Preparing to unpack .../zlib1g_1%3a1.2.11.dfsg-2+deb11u1_armhf.deb ...
Unpacking zlib1g:armhf (1:1.2.11.dfsg-2+deb11u1) over (1:1.2.11.dfsg-2+deb11u1) ...
Setting up zlib1g:armhf (1:1.2.11.dfsg-2+deb11u1) ...
(Reading database ... 65106 files and directories currently installed.)
Preparing to unpack .../libargon2-1_0~20171227-0.2_armhf.deb ...
Unpacking libargon2-1:armhf (0~20171227-0.2) over (0~20171227-0.2) ...
Preparing to unpack .../libedit2_3.1-20191231-2+b1_armhf.deb ...
Unpacking libedit2:armhf (3.1-20191231-2+b1) over (3.1-20191231-2+b1) ...
Preparing to unpack .../libmagic1_1%3a5.39-3_armhf.deb ...
Unpacking libmagic1:armhf (1:5.39-3) over (1:5.39-3) ...
Preparing to unpack .../libsodium23_1.0.18-1_armhf.deb ...
Unpacking libsodium23:armhf (1.0.18-1) over (1.0.18-1) ...
Preparing to unpack .../libxml2_2.9.10+dfsg-6.7+deb11u2_armhf.deb ...
Unpacking libxml2:armhf (2.9.10+dfsg-6.7+deb11u2) over (2.9.10+dfsg-6.7+deb11u2) ...
Setting up libsodium23:armhf (1.0.18-1) ...
Setting up libargon2-1:armhf (0~20171227-0.2) ...
Setting up libedit2:armhf (3.1-20191231-2+b1) ...
Setting up libmagic1:armhf (1:5.39-3) ...
Setting up libxml2:armhf (2.9.10+dfsg-6.7+deb11u2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u3) ...
dietpi@station:~$ php
Segmentation fault

Again with this fault