Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
ja, da bin ich mir ganz sicher : toempie@linux-server:/etc/apache2/sites-enabled$ ifconfig
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.178.13 netmask 255.255.255.0 broadcast 192.168.178.255
inet6 fe80::d250:99ff:fea7:b384 prefixlen 64 scopeid 0x20<link>
ether d0:50:99:a7:b3:84 txqueuelen 1000 (Ethernet)
RX packets 13424041 bytes 4845839975 (4.8 GB)
RX errors 0 dropped 416167 overruns 0 frame 0
TX packets 21332154 bytes 31417271009 (31.4 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 curl -L http://localhost/owncloud/ gibt das gleiche Ergebnis <!DOCTYPE html>
<html>
<head>
<script type="text/javascript"> window.location.href="index.php"; </script>
<meta http-equiv="refresh" content="0; URL=index.php">
</head>
</html>
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
du hast im apache config ein owncloud.conf aber es ist nicht enabled.
owncloud.conf liegt nur im Directory ...avaible....
enable wir mal diesen config und schauen wir, ob es tut. restart apache durch und schau nochmal.
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
hmmm sudo a2ensite owncloud Enabling site owncloud.
To activate the new configuration, you need to run:
systemctl reload apache2 aber der Neustart des Apache Dienstes, bzw jetzt jeglicher Start schlägt fehl:
toempie@linux-server:/etc/apache2/sites-enabled$ sudo systemctl reload apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
toempie@linux-server:/etc/apache2/sites-enabled$ sudo systemctl restart apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
toempie@linux-server:/etc/apache2/sites-enabled$ systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Tue 2019-03-26 23:35:43 UTC; 18s ago
Process: 12085 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
Process: 12075 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=1/FAILURE)
Process: 12090 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 6882 (code=exited, status=0/SUCCESS)
Mär 26 23:35:43 linux-server systemd[1]: Starting The Apache HTTP Server...
Mär 26 23:35:43 linux-server apachectl[12090]: AH00526: Syntax error on line 5 of /etc/apache2/sites-
Mär 26 23:35:43 linux-server apachectl[12090]: AllowOverride not allowed here
Mär 26 23:35:43 linux-server apachectl[12090]: Action 'start' failed.
Mär 26 23:35:43 linux-server apachectl[12090]: The Apache error log may have more information.
Mär 26 23:35:43 linux-server systemd[1]: apache2.service: Control process exited, code=exited status=
Mär 26 23:35:43 linux-server systemd[1]: apache2.service: Failed with result 'exit-code'.
Mär 26 23:35:43 linux-server systemd[1]: Failed to start The Apache HTTP Server.
toempie@linux-server:/etc/apache2/sites-enabled$ sudo systemctl stop apache2
toempie@linux-server:/etc/apache2/sites-enabled$ sudo systemctl start apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
ja die owncloud.conf hat Fehler.
Sendet die mal, dann kann ich kurz nach schauen.
evtl. 000-default.conf auch. Vlt hast du was doppelt drin.
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
ich vermute, du hast AllowOverride im VirtualHost Block.
AllowOverride darf aber seit apache 2.4 nicht mehr direkt unter VirtualHost sein.
legt mal AllowOverride im Directory Block.
Vlt funktioniert es dann schon (vorausgesetzt wir haben keine Fehler mehr)
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
owncloud.conf toempie@linux-server:/etc/apache2/sites-enabled$ less owncloud.conf
Alias /owncloud "/var/www/owncloud/"
Options +FollowSymlinks
AllowOverride All
Dav off
SetEnv HOME /var/www/owncloud
SetEnv HTTP_HOME /var/www/owncloud
owncloud.conf (END)
000-default.conf toempie@linux-server:/etc/apache2/sites-enabled$ less 000-default.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
000-default.conf
In der apache2.conf befindet sich AllowOverride bereits im Directory Block, siehe: toempie@linux-server:/etc/apache2$ less apache2.conf
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.
# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
# /etc/apache2/
# |-- apache2.conf
# | `-- ports.conf
# |-- mods-enabled
# | |-- *.load
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
Kommentiere mal im owncloud.conf das Allowoverwrite mal aus oder baut darum ein Directory block für /var/www/owncloud.Danach apache durch starten und weiter schauen.
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
Auskommentieren hat wieder zu einem Fehler beim Starten des Dienstes geführt: Directory -owncloud : so etwa ? : Alias /owncloud "/var/www/owncloud/"
<Directory /var/www/owncloud>
Options +FollowSymlinks
AllowOverride All
</Directory>
Dav off
SetEnv HOME /var/www/owncloud
SetEnv HTTP_HOME /var/www/owncloud führte jedenfalls auch zu einem Fehler nach Neustart des Dienstes: toempie@linux-server:/etc/apache2/sites-enabled$ systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Wed 2019-03-27 19:51:52 UTC; 9s ago
Process: 12085 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
Process: 12075 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=1/FAILURE)
Process: 16649 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 6882 (code=exited, status=0/SUCCESS)
Mär 27 19:51:52 linux-server systemd[1]: Starting The Apache HTTP Server...
Mär 27 19:51:52 linux-server apachectl[16649]: AH00526: Syntax error on line 9 of /etc/apache2/sites-enab
Mär 27 19:51:52 linux-server apachectl[16649]: Invalid command 'Dav', perhaps misspelled or defined by a
Mär 27 19:51:52 linux-server apachectl[16649]: Action 'start' failed.
Mär 27 19:51:52 linux-server apachectl[16649]: The Apache error log may have more information.
Mär 27 19:51:52 linux-server systemd[1]: apache2.service: Control process exited, code=exited status=1
Mär 27 19:51:52 linux-server systemd[1]: apache2.service: Failed with result 'exit-code'.
Mär 27 19:51:52 linux-server systemd[1]: Failed to start The Apache HTTP Server.
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
jetzt ist der Fehler bei Dav off.
Auskommentieren oder mod_dav Modul nachinstallieren.
Aber hier setzt du auf "off", deshalb kannst du auskommentieren.
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
erledigt und Apache lies sich wieder starten. curl -L http://localhost/owncloud/ zeigt nun was an, von einem anderem Rechner aus via http bekommt man aber immernoch den alten Buchstabensalat toempie@linux-server:/etc/apache2/sites-enabled$ curl -L http://localhost/owncloud/
<!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="en" >
<head data-requesttoken="AkMyagYCZDM3PwwLTXMWIy9iBjNgOA1qLWgrJg8EMn8=:RqZZw3SbrRhef4TjZRgqSLW0F0FjKvkMBEinj6o5SFU=">
<meta charset="utf-8">
<title>
ownCloud </title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="referrer" content="never">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-itunes-app" content="app-id=543672169">
<meta name="theme-color" content="#1d2d44">
<link rel="icon" href="/owncloud/core/img/favicon.ico">
<link rel="apple-touch-icon-precomposed" href="/owncloud/core/img/favicon-touch.png">
<link rel="mask-icon" sizes="any" href="/owncloud/core/img/favicon-mask.svg" color="#1d2d44">
<link rel="stylesheet" href="/owncloud/core/vendor/select2/select2.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/styles.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/inputs.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/header.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/icons.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/fonts.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/apps.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/global.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/fixes.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/multiselect.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/mobile.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/vendor/jquery-ui/themes/base/jquery-ui.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/jquery-ui-fixes.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/tooltip.css?v=ba222ded25d957b900c03bef914333cd">
<link rel="stylesheet" href="/owncloud/core/css/jquery.ocdialog.css?v=ba222ded25d957b900c03bef914333cd">
<script src="/owncloud/core/vendor/jquery/dist/jquery.min.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/jquery-migrate/jquery-migrate.min.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/jquery-ui/ui/jquery-ui.custom.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/underscore/underscore.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/moment/min/moment-with-locales.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/handlebars/handlebars.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/blueimp-md5/js/md5.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/bootstrap/js/tooltip.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/backbone/backbone.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/es6-promise/dist/es6-promise.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/davclient.js/lib/client.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/clipboard/dist/clipboard.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/bowser/src/bowser.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/jquery.ocdialog.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/oc-dialogs.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/js.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/l10n.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/octemplate.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/eventsource.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/config.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/search/js/search.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/oc-requesttoken.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/apps.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/mimetype.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/mimetypelist.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/snapjs/dist/latest/snap.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/vendor/select2/select2.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/oc-backbone.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/oc-backbone-webdav.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/placeholder.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/jquery.avatar.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/files/fileinfo.js?v=ba222ded25d957b900c03bef914333cd"></script>
<script src="/owncloud/core/js/files/client.js?v=ba222ded25d957b900c03bef914333cd"></script>
</head>
<body id="body-login">
<noscript>
<div id="nojavascript">
<div>
This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank" rel="noreferrer">enable JavaScript</a> and reload the page. </div>
</div>
</noscript>
<div class="wrapper">
<div class="v-align">
<header role="banner">
<div id="header">
<div class="logo">
<h1 class="hidden-visually">
ownCloud </h1>
</div>
<div id="logo-claim" style="display:none;"></div>
</div>
</header>
<ul class="error-wide">
<li class='error'>
No database drivers (sqlite, mysql, or postgresql) installed.<br>
</li>
<li class='error'>
PHP modules have been installed, but they are still listed as missing?<br>
<p class='hint'>Please ask your server administrator to restart the web server.</p>
</li>
</ul>
<div class="push"></div><!-- for sticky footer -->
</div>
</div>
<footer role="contentinfo">
<p class="info">
<a href="https://owncloud.org" target="_blank" rel="noreferrer">ownCloud</a> – A safe home for all your data </p>
</footer>
</body>
</html>
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
das ist ok so, das sind HTML von owncloud.
Ruf mal mit "normalen" Browser auf.
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
Wie gesagt, über Browser von fremden Rechner auf http://192.168.178.13/owncloud/index.php kommt dennoch * @author Lukas Reschke * @author Morris Jobke * @author Philipp Schaffrath * @author RealRancor * @author Robin Appelman * @author Sergio BertolÃn * @author Thomas Müller * @author Vincent Petry * * @copyright Copyright (c) 2018, ownCloud GmbH * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License, version 3, * along with this program. If not, see * */ // Show warning if a PHP version below 5.6.0 is used, this has to happen here // because base.php will already use 5.6 syntax. if (\version_compare(PHP_VERSION, '5.6.0') === -1) { echo 'This version of ownCloud requires at least PHP 5.6.0
'; echo 'You are currently running PHP ' . PHP_VERSION . '. Please update your PHP version.'; return; } // Show warning if PHP 7.3 is used as ownCloud is not compatible with PHP 7.3 if (\version_compare(PHP_VERSION, '7.3.0alpha1') !== -1) { echo 'This version of ownCloud is not compatible with PHP 7.3
'; echo 'You are currently running PHP ' . PHP_VERSION . '.'; return; } // running oC on Windows is unsupported since 8.1, this has to happen here because // is seems that the autoloader on Windows fails later and just throws an exception. if (\strtoupper(\substr(PHP_OS, 0, 3)) === 'WIN') { echo 'ownCloud Server does not support Microsoft Windows.'; return; } try { require_once __DIR__ . '/lib/base.php'; OC::handleRequest(); } catch (\OC\ServiceUnavailableException $ex) { \OC::$server->getLogger()->logException($ex, ['app' => 'index']); //show the user a detailed error page OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); OC_Template::printExceptionErrorPage($ex); } catch (\OC\HintException $ex) { OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); OC_Template::printErrorPage($ex->getMessage(), $ex->getHint()); } catch (\OC\User\LoginException $ex) { OC_Response::setStatus(OC_Response::STATUS_FORBIDDEN); OC_Template::printErrorPage($ex->getMessage()); } catch (\OCP\Files\ForbiddenException $ex) { OC_Response::setStatus(OC_Response::STATUS_FORBIDDEN); OC_Template::printErrorPage($ex->getMessage()); } catch (Exception $ex) { try { \OC::$server->getLogger()->logException($ex, ['app' => 'index']); //show the user a detailed error page OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); } catch (\Exception $ex2) { // with some env issues, it can happen that the logger couldn't log properly, // so print out the exception directly echo(''); echo('Exception occurred while logging exception: ' . $ex->getMessage() . '
'); echo(\str_replace("\n", '
', $ex->getTraceAsString())); echo(''); } } catch (Error $ex) { \OC::$server->getLogger()->logException($ex, ['app' => 'index']); OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); }
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
bekommst auf den gleicher code wie im Browser wenn auf der Console
| curl -L http://192.168.178.13/owncloud/index.php
|
Es kann dass du ein Vhost hast, der auf die 192.168.178.13 gebunden ist, und etwas konfiguriert ist, wie auf localhost.
Wenn dann ja, vlt kannst du wenn es dir nicht ausmacht dein /etc/apache2/ zusenden.
Du kannst mir auch Privat zusenden, wenn du möchtest. | cd /etc/apache2
tar -cvzf /tmp/apache2.tar.gz .
|
sende mir dann die Datei /tmp/apache2.tar.gz
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
Ja , ich bekomme den gleichen Code, wenn ich vom Linux-Server aus curl -L http://192.168.178.13/owncloud/index.php ausführe. Ich habe den Apache2 Ordner hier angehängt 🤓 ICh wüsste nicht, dass ich etwas besonderes installiert hätte. DAs System ist bis auf mdadm, smb und hdparm jungfräulich
- apache2.tar.gz (34.6 KiB)
- Download apache2.tar.gz
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
kannst du noch die access log und error log von apache2 zu senden.
Die sind im /var/log/apache2/
|