Apache2 HTTP Error 500 after changing external drive

Hi, I have a big problem with my owncloud and with apache!!
Today I formated my external hard drive with ext4 in order to use it with my owncloud(worked before with ntfs). No I have another problem: If I want to open the owncloud it gives me a HTTP Error 500!! No I checked apache's log file:

[Sun Oct 16 09:51:54.205613 2016] [:error] [pid 5245] [client 192.168.2.132:59877] PHP Parse error: syntax error, unexpected '[' in /var/www/owncloud/apps/notifications/lib/Controller/EndpointController.php on line 75
[Sun Oct 16 09:52:35.955731 2016] [:error] [pid 5246] [client 192.168.2.132:59881] PHP Parse error: syntax error, unexpected '[' in /var/www/owncloud/apps/notifications/lib/Controller/EndpointController.php on line 75
[Sun Oct 16 09:54:28.594167 2016] [:error] [pid 5242] [client 192.168.2.155:14642] PHP Parse error: syntax error, unexpected '[' in /var/www/owncloud/apps/notifications/lib/Controller/EndpointController.php on line 75
[Sun Oct 16 09:57:35.858073 2016] [:error] [pid 5243] [client 192.168.2.132:59928] PHP Parse error: syntax error, unexpected '[' in /var/www/owncloud/apps/notifications/lib/Controller/EndpointController.php on line 75
[Sun Oct 16 09:57:58.514151 2016] [mpm_prefork:notice] [pid 5238] AH00169: caught SIGTERM, shutting down
[Sun Oct 16 09:57:59.826063 2016] [ssl:warn] [pid 5635] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 16 09:57:59.997131 2016] [ssl:warn] [pid 5636] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 16 09:58:00.010796 2016] [mpm_prefork:notice] [pid 5636] AH00163: Apache/2.4.10 (Raspbian) OpenSSL/1.0.1t configured -- resuming normal operations
[Sun Oct 16 09:58:00.010939 2016] [core:notice] [pid 5636] AH00094: Command line: '/usr/sbin/apache2'

It's not the whole log file but I think this are the important things :wink:
Now can anybody help me solving this problem?? Or should I reinstall Owncloud and apache?

PS: Sorry for my bad english :wink:

Lukas

Hi,

a short search on google shows that you're running PHP 5.3:

Your current installed ownCloud version (probably something like oC 8.0.x or newer) is not compatible with such an old version of PHP.

I installed the newest version of owncloud. But I always do make updates with apt-get update and apt-get upgrade. How should I upgrade PHP? And is it possible to only install a newer php version?

Thats mostly something you need to ask at a community dedicated to your used Linux distribution.

They can tell you why you got this issue after changing stuff on your system and give you pointers how to update PHP to a recent version.