Hallo in die Runde,
diese Fehlermeldung beim diesem Link
http://localhost/owncloud/index.php
Parse error: syntax error, unexpected '⇒' (T_DOUBLE_ARROW) in /var/www/owncloud/config/config.php on line 5
erhalte ich.
Was in der Zeile 5 falsch ❓
grpc@grpc-MS-7658:/var/www/owncloud/config$ nl config.php 1 <?php 2 $CONFIG = array ( 3 'instanceid' => 'ocyb45wofpad', 4 ); 5 'trusted_domains' => 6 array ( 7 0 => 'localhost', 8 1 => '192.168.1.102', 9 ),
meine apache2.conf sieht so aus:
grpc@grpc-MS-7658:/etc/apache2$ nl apache2.conf 1 # This is the main Apache server configuration file. It contains the 2 # configuration directives that give the server its instructions. 3 # See http://httpd.apache.org/docs/2.4/ for detailed information about 4 # the directives and /usr/share/doc/apache2/README.Debian about Debian specific 5 # hints. 6 # 7 # 8 # Summary of how the Apache 2 configuration works in Debian: 9 # The Apache 2 web server configuration in Debian is quite different to 10 # upstream's suggested way to configure the web server. This is because Debian's 11 # default Apache2 installation attempts to make adding and removing modules, 12 # virtual hosts, and extra configuration directives as flexible as possible, in 13 # order to make automating the changes and administering the server as easy as 14 # possible. 15 # It is split into several files forming the configuration hierarchy outlined 16 # below, all located in the /etc/apache2/ directory: 17 # 18 # /etc/apache2/ 19 # |-- apache2.conf 20 # | `-- ports.conf 21 # |-- mods-enabled 22 # | |-- *.load 23 # | `-- *.conf 24 # |-- conf-enabled 25 # | `-- *.conf 26 # `-- sites-enabled 27 # `-- *.conf 28 # 29 # 30 # * apache2.conf is the main configuration file (this file). It puts the pieces 31 # together by including all remaining configuration files when starting up the 32 # web server. 33 # 34 # * ports.conf is always included from the main configuration file. It is 35 # supposed to determine listening ports for incoming connections which can be 36 # customized anytime. 37 # 38 # * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/ 39 # directories contain particular configuration snippets which manage modules, 40 # global configuration fragments, or virtual host configurations, 41 # respectively. 42 # 43 # They are activated by symlinking available configuration files from their 44 # respective *-available/ counterparts. These should be managed by using our 45 # helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See 46 # their respective man pages for detailed information. 47 # 48 # * The binary is called apache2. Due to the use of environment variables, in 49 # the default configuration, apache2 needs to be started/stopped with 50 # /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not 51 # work with the default configuration. 52 # Global configuration 53 # 54 # 55 # ServerRoot: The top of the directory tree under which the server's 56 # configuration, error, and log files are kept. 57 # 58 # NOTE! If you intend to place this on an NFS (or otherwise network) 59 # mounted filesystem then please read the Mutex documentation (available 60 # at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>); 61 # you will save yourself a lot of trouble. 62 # 63 # Do NOT add a slash at the end of the directory path. 64 # 65 #ServerRoot "/etc/apache2" 66 # 67 # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. 68 # 69 Mutex file:${APACHE_LOCK_DIR} default 70 # 71 # PidFile: The file in which the server should record its process 72 # identification number when it starts. 73 # This needs to be set in /etc/apache2/envvars 74 # 75 PidFile ${APACHE_PID_FILE} 76 # 77 # Timeout: The number of seconds before receives and sends time out. 78 # 79 Timeout 300 80 # 81 # KeepAlive: Whether or not to allow persistent connections (more than 82 # one request per connection). Set to "Off" to deactivate. 83 # 84 KeepAlive On 85 # 86 # MaxKeepAliveRequests: The maximum number of requests to allow 87 # during a persistent connection. Set to 0 to allow an unlimited amount. 88 # We recommend you leave this number high, for maximum performance. 89 # 90 MaxKeepAliveRequests 100 91 # 92 # KeepAliveTimeout: Number of seconds to wait for the next request from the 93 # same client on the same connection. 94 # 95 KeepAliveTimeout 5 96 # These need to be set in /etc/apache2/envvars 97 User ${APACHE_RUN_USER} 98 Group ${APACHE_RUN_GROUP} 99 # 100 # HostnameLookups: Log the names of clients or just their IP addresses 101 # e.g., www.apache.org (on) or 204.62.129.132 (off). 102 # The default is off because it'd be overall better for the net if people 103 # had to knowingly turn this feature on, since enabling it means that 104 # each client request will result in AT LEAST one lookup request to the 105 # nameserver. 106 # 107 HostnameLookups Off 108 # ErrorLog: The location of the error log file. 109 # If you do not specify an ErrorLog directive within a <VirtualHost> 110 # container, error messages relating to that virtual host will be 111 # logged here. If you *do* define an error logfile for a <VirtualHost> 112 # container, that host's errors will be logged there and not here. 113 # 114 ErrorLog ${APACHE_LOG_DIR}/error.log 115 # 116 # LogLevel: Control the severity of messages logged to the error_log. 117 # Available values: trace8, ..., trace1, debug, info, notice, warn, 118 # error, crit, alert, emerg. 119 # It is also possible to configure the log level for particular modules, e.g. 120 # "LogLevel info ssl:warn" 121 # 122 # LogLevel warn geaendert 21-07-15 123 LogLevel debug 124 # Include module configuration: 125 IncludeOptional mods-enabled/*.load 126 IncludeOptional mods-enabled/*.conf 127 # Include list of ports to listen on 128 Include ports.conf 129 # Sets the default security model of the Apache2 HTTPD server. It does 130 # not allow access to the root filesystem outside of /usr/share and /var/www. 131 # The former is used by web applications packaged in Debian, 132 # the latter may be used for local directories served by the web server. If 133 # your system is serving content from a sub-directory in /srv you must allow 134 # access here, or in any related virtual host. 135 <Directory /> 136 Options FollowSymLinks 137 AllowOverride None 138 Require all denied 139 </Directory> 140 <Directory /usr/share> 141 AllowOverride None 142 Require all granted 143 </Directory> 144 # 145 # <Directory /var/www/> 146 # Options Indexes FollowSymLinks 147 # AllowOverride None 148 # Require all granted 149 #</Directory> 150 #<Directory /srv/> 151 # Options Indexes FollowSymLinks 152 # AllowOverride None 153 # Require all granted 154 #</Directory> 155 # aus http://mein.homelinux.com/wiki/cloud/owncloud kopiert und eingefügt 156 <Directory /var/www/> 157 Options Indexes FollowSymLinks MultiViews 158 AllowOverride All 159 Require all granted 160 </Directory> 161 # AccessFileName: The name of the file to look for in each directory 162 # for additional configuration directives. See also the AllowOverride 163 # directive. 164 # 165 AccessFileName .htaccess 166 # 167 # The following lines prevent .htaccess and .htpasswd files from being 168 # viewed by Web clients. 169 # 170 <FilesMatch "^\.ht"> 171 Require all denied 172 </FilesMatch> 173 # 174 # The following directives define some format nicknames for use with 175 # a CustomLog directive. 176 # 177 # These deviate from the Common Log Format definitions in that they use %O 178 # (the actual bytes sent including headers) instead of %b (the size of the 179 # requested file), because the latter makes it impossible to detect partial 180 # requests. 181 # 182 # Note that the use of %{X-Forwarded-For}i instead of %h is not recommended. 183 # Use mod_remoteip instead. 184 # 185 LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined 186 LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined 187 LogFormat "%h %l %u %t \"%r\" %>s %O" common 188 LogFormat "%{Referer}i -> %U" referer 189 LogFormat "%{User-agent}i" agent 190 # Include of directories ignores editors' and dpkg's backup files, 191 # see README.Debian for details. 192 # Include generic snippets of statements 193 IncludeOptional conf-enabled/*.conf 194 # Include the virtual host configurations: 195 IncludeOptional sites-enabled/*.conf 196 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
siehe ab Zeile 156
oder muß hier
156 <Directory /var/www/owncloud/>
eingesetzt werden.