NextCloud unable to load

http://10.0.0.22/nextcloud/index.php

You are currently running 7.1.33-15+ubuntu20.04.1+deb.sury.org+1. Please update your PHP version.

PHP 7.4.5 (cli) (built: Apr 28 2020 14:49:23) ( NTS )
Copyright © The PHP Group
Zend Engine v3.4.0, Copyright © Zend Technologies
with Zend OPcache v7.4.5, Copyright ©, by Zend Technologies

Seems like the wrong version is used by your NextCloud instance. Did you specify the php version to use in your nginx / apache conf ?

cli != webserver

Please verify your webserver is using the right php version.

hah@SyncCloud:~$ systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-05-01 16:20:57 +08; 18s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 28156 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

May 01 16:20:57 SyncCloud systemd[1]: Starting The Apache HTTP Server…
May 01 16:20:57 SyncCloud apachectl[28165]: AH00526: Syntax error on line 10 of /etc/apache2/sites-en>
May 01 16:20:57 SyncCloud apachectl[28165]: Either all Options must start with + or -, or no Option m>
May 01 16:20:57 SyncCloud apachectl[28156]: Action ‘start’ failed.
May 01 16:20:57 SyncCloud apachectl[28156]: The Apache error log may have more information.
May 01 16:20:57 SyncCloud systemd[1]: apache2.service: Control process exited, code=exited, status=1/>
May 01 16:20:57 SyncCloud systemd[1]: apache2.service: Failed with result ‘exit-code’.
May 01 16:20:57 SyncCloud systemd[1]: Failed to start The Apache HTTP Server.

It doesn’t help to open multiple requests for the same issue and waste the time of the volunteers to answer it. As far as I can see you’ve already addressed this problem here:

2 Likes

hah@SyncCloud:/var/www/html$ php --version
PHP 7.1.33-15+ubuntu20.04.1+deb.sury.org+1 (cli) (built: Apr 28 2020 14:48:23) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright © 1998-2018 Zend Technologies
with Zend OPcache v7.1.33-15+ubuntu20.04.1+deb.sury.org+1, Copyright © 1999-2018, by Zend Technologies
shah@SyncCloud:/var/www/html$

oaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabl>
Active: active (running) since Fri 2020-05-01 19:56:01 +08; 18min ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 27286 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 27307 (apache2)
Tasks: 8 (limit: 14193)
Memory: 50.0M
CGroup: /system.slice/apache2.service
├─27307 /usr/sbin/apache2 -k start
├─27309 /usr/sbin/apache2 -k start
├─27310 /usr/sbin/apache2 -k start
├─27311 /usr/sbin/apache2 -k start
├─27312 /usr/sbin/apache2 -k start
├─27313 /usr/sbin/apache2 -k start
├─27315 /usr/sbin/apache2 -k start
└─28594 /usr/sbin/apache2 -k start

May 01 19:56:01 SyncCloud systemd[1]: Starting The Apache HTTP Server…
May 01 19:56:01 SyncCloud apachectl[27299]: AH00558: apache2: Could not reliably determ>
May 01 19:56:01 SyncCloud systemd[1]: Started The Apache HTTP Server.

hi sorry, that was different issue.
anyway I am still having the same issue

I need solution

how do I do that
?

Cite my answer from other topic of you:

Upgrading php version on Ubuntu is not directly related to Nextcloud and therefor Off-topic. Please use the resources on the internet. There are plenty of it.

1 Like

PHP 7.2.30-1+ubuntu20.04.1+deb.sury.org+1 (cli) (built: Apr 28 2020 14:48:43) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright © 1998-2018 Zend Technologies
with Zend OPcache v7.2.30-1+ubuntu20.04.1+deb.sury.org+1, Copyright © 1999-2018, by Zend Technologies
shah@SyncCloud:/var/www/html$

after update still same

PHP 7.2.30-1+ubuntu20.04.1+deb.sury.org+1 (cli) (built: Apr 28 2020 14:48:43) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.30-1+ubuntu20.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
shah@SyncCloud:/etc$

This has nothing to do with nextcloud. This is problem with your Linux distribution.

What kind of problem with linux distribution?

Upgrading php version on Ubuntu is not directly related to Nextcloud.