503 When trying to install manually

Hey Nextcloud community!

I have been trying to set up my own instance of NextCloud on a home server but have not been too successful.

Running the installation script from here and manually from here have both caused this 503 error when I try to load http://<local IP of server>/nextcloud/

My hello world text works on http://<local IP of server>/ but NextCloud won’t work.

I feel like this error is just on apache’s end, so here is the error log.

[Thu Jul 07 19:01:25.813437 2022] [http2:warn] [pid 2126] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Jul 07 19:01:25.834831 2022] [mpm_prefork:notice] [pid 2126] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Thu Jul 07 19:01:25.834852 2022] [core:notice] [pid 2126] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jul 07 19:01:54.842633 2022] [proxy:error] [pid 2127] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.1-fpm.sock (*) failed
[Thu Jul 07 19:01:54.842706 2022] [proxy_fcgi:error] [pid 2127] [client 192.168.0.14:64594] AH01079: failed to make connection to backend: httpd-UDS

Hi @Marsh.Mello, is php-fpm up ?
can you send more informations about your Apache configuration file server?

Hey @Mageunic

Here is my configuration file for apache

cat /etc/apache2/sites-available/nextcloud.conf

Alias /nextcloud "/var/www/nextcloud/"

<Directory /var/www/nextcloud/>
  Require all granted
  AllowOverride All
  Options FollowSymLinks MultiViews

  <IfModule mod_dav.c>
    Dav off
  </IfModule>
</Directory>

For php-fpm, I didn’t think it was installed. Installed it through the command apt install php-fpm. Then with a bit of googling I found the command ps aux | grep php-fpm to display its status.

ps aux | grep php-fpm
root         749  0.0  0.5 389900 46820 ?        Ss   06:59   0:00 php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf)
www-data     975  0.0  0.2 390208 17160 ?        S    06:59   0:00 php-fpm: pool Nextcloud
www-data     976  0.0  0.2 390208 17160 ?        S    06:59   0:00 php-fpm: pool Nextcloud
www-data     977  0.0  0.2 390208 17160 ?        S    06:59   0:00 php-fpm: pool Nextcloud
server      1373  0.0  0.0   6608  2264 pts/0    S+   07:10   0:00 grep --color=auto php-fpm

But unsure what to make of that. Is that it running in 4 instances?