dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
ok, dann checken wir mal paar Sachen: sende mal:
als test (ohne Schalter -p)
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | toempie@linux-server:/var/run/mysqld$ less /var/log/mysql/error.log
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: The InnoDB memory heap is disabled
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: Using Linux native AIO
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: Using SSE crc32 instructions
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: Completed initialization of buffer pool
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2019-04-02 21:35:40 139812528831616 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2019-04-02 21:35:41 139812528831616 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2019-04-02 21:35:42 139812528831616 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2019-04-02 21:35:43 139812528831616 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2019-04-02 21:35:43 139812528831616 [Warning] InnoDB: New log files created, LSN=45781
2019-04-02 21:35:43 139812528831616 [Note] InnoDB: Doublewrite buffer not found: creating new
2019-04-02 21:35:44 139812528831616 [Note] InnoDB: Doublewrite buffer created
2019-04-02 21:35:44 139812528831616 [Note] InnoDB: 128 rollback segment(s) are active.
2019-04-02 21:35:44 139812528831616 [Warning] InnoDB: Creating foreign key constraint system tables.
2019-04-02 21:35:44 139812528831616 [Note] InnoDB: Foreign key constraint system tables created
2019-04-02 21:35:44 139812528831616 [Note] InnoDB: Creating tablespace and datafile system tables.
2019-04-02 21:35:44 139812528831616 [Note] InnoDB: Tablespace and datafile system tables created.
2019-04-02 21:35:44 139812528831616 [Note] InnoDB: Waiting for purge to start
2019-04-02 21:35:44 139812528831616 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.42-84.2 started; log sequence number 0
2019-04-02 21:35:44 139811864180480 [Note] InnoDB: Dumping buffer pool(s) not yet started
2019-04-02 21:35:48 140004649888896 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
2019-04-02 21:35:48 140004649888896 [Note] InnoDB: Using mutexes to ref count buffer pool pages
:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 |
toempie@linux-server:/var/run/mysqld$ systemctl status mariadb
● mariadb.service - MariaDB 10.1.38 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-04-03 11:40:17 UTC; 47min ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 19932 (mysqld)
Status: "Taking your SQL requests now..."
Tasks: 27 (limit: 4915)
CGroup: /system.slice/mariadb.service
└─19932 /usr/sbin/mysqld
Apr 03 11:40:15 linux-server systemd[1]: Starting MariaDB 10.1.38 database server...
Apr 03 11:40:16 linux-server mysqld[19932]: 2019-04-03 11:40:16 140670506806400 [Note] /usr/sbin/mysqld (mysqld 10.1.38-MariaDB-0ubuntu
Apr 03 11:40:17 linux-server /etc/mysql/debian-start[19969]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Apr 03 11:40:17 linux-server /etc/mysql/debian-start[19969]: Looking for 'mysql' as: /usr/bin/mysql
Apr 03 11:40:17 linux-server /etc/mysql/debian-start[19969]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Apr 03 11:40:17 linux-server /etc/mysql/debian-start[19969]: This installation of MySQL is already upgraded to 10.1.38-MariaDB, use --f
Apr 03 11:40:17 linux-server /etc/mysql/debian-start[19981]: Triggering myisam-recover for all MyISAM tables and aria-recover for all A
Apr 03 11:40:17 linux-server systemd[1]: Started MariaDB 10.1.38 database server.
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14 |
toempie@linux-server:/var/run/mysqld$ ls -l /var/lib/mysql
total 110648
-rw-rw---- 1 mysql mysql 16384 Apr 3 08:54 aria_log.00000001
-rw-rw---- 1 mysql mysql 52 Apr 3 08:54 aria_log_control
-rw-r--r-- 1 root root 0 Apr 2 21:35 debian-10.1.flag
-rw-rw---- 1 mysql mysql 12582912 Apr 3 11:40 ibdata1
-rw-rw---- 1 mysql mysql 50331648 Apr 3 11:40 ib_logfile0
-rw-rw---- 1 mysql mysql 50331648 Apr 2 21:35 ib_logfile1
-rw-rw---- 1 mysql mysql 0 Apr 2 21:36 multi-master.info
drwx------ 2 mysql root 4096 Apr 2 21:36 mysql
-rw-rw---- 1 root root 15 Apr 2 21:36 mysql_upgrade_info
drwx------ 2 mysql mysql 4096 Apr 2 21:36 performance_schema
-rw-rw---- 1 mysql mysql 24576 Apr 3 11:40 tc.log
|
|
toempie@linux-server:/var/run/mysqld$ mysql -u root
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
|
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
schickst du mal das /var/lib/mysql/tc.log ?
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
Neuinstallation von mariadb:
| sudo systemctl stop mariadb
sudo apt remove --purge mariadb-server
sudo rm -rf /var/lib/mysql/
sudo apt install mariadb-server
sudo mysql_install_db
sudo systemctl start mariadb
sudo mysql_secure_installation
|
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
hmmm
toempie@linux-server:~$ sudo less /var/lib/mysql/tc.log
<FE>#^Et^B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@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^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@:
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
Alternativ ist hier wie du owncloud über docker installieren kann. sudo apt install docker.io docker-compose
sudo systemctl enable docker
sudo systemctl start docker
mkdir ~/owncloud-docker-server
cd ~/owncloud-docker-server
wget https://raw.githubusercontent.com/owncloud-docker/server/master/docker-compose.yml
cat << EOF > .env
OWNCLOUD_VERSION=10.0
OWNCLOUD_DOMAIN=localhost
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin
HTTP_PORT=8080
EOF URL: http://dein-server:8080
Login ist oben, du muss halt dann dein pwd nochmal ändern Mehr Info: https://doc.owncloud.com/server/admin_manual/installation/docker/
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
ok die Schritt für Schritt für Schritt Anleitung für die MariaDB hat funktioniert: Nach Abschluss der MariaDB Installation bin ich deinen Schritten auf Seite 4 weiter gefolgt und nun ist die OwnCloud Seite via browser erreichbar, Juhhu- Die max_file_size kann doch beliebig angepasst werden, oder ? Würde das eigentlich ungern begrenzen. Hier das Gesamte Prozedere
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226 |
toempie@linux-server:~$ sudo systemctl stop mariadb
[sudo] password for toempie:
toempie@linux-server:~$ sudo apt remove --purge mariadb-server
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
galera-3 libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libfcgi-perl
libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl
libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libtimedate-perl liburi-perl
mariadb-server-10.1 mariadb-server-core-10.1 socat
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
Die folgenden Pakete werden ENTFERNT:
mariadb-server*
0 aktualisiert, 0 neu installiert, 1 zu entfernen und 17 nicht aktualisiert.
Nach dieser Operation werden 65,5 kB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n] J
(Lese Datenbank ... 121973 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von mariadb-server (1:10.1.38-0ubuntu0.18.04.1) ...
toempie@linux-server:~$ sudo rm -rf /var/lib/mysql/
toempie@linux-server:~$ sudo apt install mariadb-server
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden NEUEN Pakete werden installiert:
mariadb-server
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 17 nicht aktualisiert.
Es müssen 12,9 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 65,5 kB Plattenplatz zusätzlich benutzt.
Holen:1 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 mariadb-server all 1:1 0.1.38-0ubuntu0.18.04.1 [12,9 kB]
Es wurden 12,9 kB in 0 s geholt (35,2 kB/s).
Vormals nicht ausgewähltes Paket mariadb-server wird gewählt.
(Lese Datenbank ... 121970 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../mariadb-server_1%3a10.1.38-0ubuntu0.18.04.1_all.deb ...
Entpacken von mariadb-server (1:10.1.38-0ubuntu0.18.04.1) ...
mariadb-server (1:10.1.38-0ubuntu0.18.04.1) wird eingerichtet ...
toempie@linux-server:~$ sudo mysql_install_db
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
2019-04-03 14:08:46 140446289341568 [Note] /usr/sbin/mysqld (mysqld 10.1.38-MariaDB-0ubuntu0. 18.04.1) starting as process 3927 ...
OK
Filling help tables...
2019-04-03 14:08:53 140477427248256 [Note] /usr/sbin/mysqld (mysqld 10.1.38-MariaDB-0ubuntu0. 18.04.1) starting as process 3956 ...
OK
Creating OpenGIS required SP-s...
2019-04-03 14:08:57 139704622869632 [Note] /usr/sbin/mysqld (mysqld 10.1.38-MariaDB-0ubuntu0. 18.04.1) starting as process 3985 ...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:
'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h linux-server password 'new-password'
Alternatively you can run:
'/usr/bin/mysql_secure_installation'
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.
You can start the MariaDB daemon with:
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mysql-test-run.pl
Please report any problems at http://mariadb.org/jira
The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/
toempie@linux-server:~$ sudo systemctl start mariadb
toempie@linux-server:~$ sudo mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n]
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n]
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n]
... Success!
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n]
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n]
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
toempie@linux-server:~$ mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 49
Server version: 10.1.38-MariaDB-0ubuntu0.18.04.1 Ubuntu 18.04
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> CREATE DATABASE owncloud;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> CREATE USER 'oc_user'@'localhost' IDENTIFIED BY 'testpw';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> GRANT ALL ON owncloud.* TO 'oc_user'@'localhost' IDENTIFIED BY 'testpw 1' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> EXIT;EXIT;
Bye
toempie@linux-server:~$ sudo apt-get install php7.2-cli php7.2-common php7.2-mbstring php7.2- gd php7.2-intl php7.2-xml php7.2-mysql php7.2-zip php7.2-curl php7.2-xmlrpc
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
php7.2-cli ist schon die neueste Version (7.2.15-0ubuntu0.18.04.2).
php7.2-cli wurde als manuell installiert festgelegt.
php7.2-common ist schon die neueste Version (7.2.15-0ubuntu0.18.04.2).
php7.2-common wurde als manuell installiert festgelegt.
php7.2-curl ist schon die neueste Version (7.2.15-0ubuntu0.18.04.2).
php7.2-curl wurde als manuell installiert festgelegt.
php7.2-gd ist schon die neueste Version (7.2.15-0ubuntu0.18.04.2).
php7.2-gd wurde als manuell installiert festgelegt.
php7.2-xml ist schon die neueste Version (7.2.15-0ubuntu0.18.04.2).
php7.2-xml wurde als manuell installiert festgelegt.
php7.2-intl ist schon die neueste Version (7.2.15-0ubuntu0.18.04.2).
php7.2-intl wurde als manuell installiert festgelegt.
php7.2-mbstring ist schon die neueste Version (7.2.15-0ubuntu0.18.04.2).
php7.2-mbstring wurde als manuell installiert festgelegt.
php7.2-zip ist schon die neueste Version (7.2.15-0ubuntu0.18.04.2).
php7.2-zip wurde als manuell installiert festgelegt.
Die folgenden zusätzlichen Pakete werden installiert:
libxmlrpc-epi0
Die folgenden NEUEN Pakete werden installiert:
libxmlrpc-epi0 php7.2-mysql php7.2-xmlrpc
0 aktualisiert, 3 neu installiert, 0 zu entfernen und 17 nicht aktualisiert.
Es müssen 160 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 609 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] J
Holen:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 php7.2-mysql amd64 7.2.15- 0ubuntu0.18.04.2 [117 kB]
Holen:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libxmlrpc-epi0 amd64 0.54.2-1.2 [3 0,5 kB]
Holen:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 php7.2-xmlrpc amd64 7.2.15 -0ubuntu0.18.04.2 [12,8 kB]
Es wurden 160 kB in 1 s geholt (180 kB/s).
Vormals nicht ausgewähltes Paket php7.2-mysql wird gewählt.
(Lese Datenbank ... 121973 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../php7.2-mysql_7.2.15-0ubuntu0.18.04.2_amd64.deb ...
Entpacken von php7.2-mysql (7.2.15-0ubuntu0.18.04.2) ...
Vormals nicht ausgewähltes Paket libxmlrpc-epi0:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../libxmlrpc-epi0_0.54.2-1.2_amd64.deb ...
Entpacken von libxmlrpc-epi0:amd64 (0.54.2-1.2) ...
Vormals nicht ausgewähltes Paket php7.2-xmlrpc wird gewählt.
Vorbereitung zum Entpacken von .../php7.2-xmlrpc_7.2.15-0ubuntu0.18.04.2_amd64.deb ...
Entpacken von php7.2-xmlrpc (7.2.15-0ubuntu0.18.04.2) ...
php7.2-mysql (7.2.15-0ubuntu0.18.04.2) wird eingerichtet ...
Creating config file /etc/php/7.2/mods-available/mysqlnd.ini with new version
Creating config file /etc/php/7.2/mods-available/mysqli.ini with new version
Creating config file /etc/php/7.2/mods-available/pdo_mysql.ini with new version
libxmlrpc-epi0:amd64 (0.54.2-1.2) wird eingerichtet ...
Trigger für libc-bin (2.27-3ubuntu1) werden verarbeitet ...
Trigger für libapache2-mod-php7.2 (7.2.15-0ubuntu0.18.04.2) werden verarbeitet ...
php7.2-xmlrpc (7.2.15-0ubuntu0.18.04.2) wird eingerichtet ...
Creating config file /etc/php/7.2/mods-available/xmlrpc.ini with new version
Trigger für libapache2-mod-php7.2 (7.2.15-0ubuntu0.18.04.2) werden verarbeitet ...
toempie@linux-server:~$ sudo nano /etc/php/7.2/apache2/php.ini
toempie@linux-server:~$ sudo systemctl restart apache2
|
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
ja die max_file_size kannst du einstellen wie du möchtest.
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
So, ich konnte mich nun über die http Webseite erfolgreich anmelden 😉 Da der Server auch von extern erreichbar sein soll, stand als nächstes die Einrichtung von SSL auf dem Plan. Ich habe die diese Anleitung Punkt für Punkt befolgt und bekomme am Ende beim Neustarten des Apache Dienstes einen Fehler. 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48 | toempie@linux-server:/etc/apache2$ sudo nano /etc/apache2/sites-available/default-ssl.conf
toempie@linux-server:/etc/apache2$ sudo a2enmod headers
Enabling module headers.
To activate the new configuration, you need to run:
systemctl restart apache2
toempie@linux-server:/etc/apache2$ sudo nano /etc/apache2/sites-available/default-ssl.conf
toempie@linux-server:/etc/apache2$ sudo service apache2 restart
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$ 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-04-03 18:14:22 UTC; 47s ago
Process: 8352 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
Process: 8568 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 8182 (code=exited, status=0/SUCCESS)
Apr 03 18:14:22 linux-server systemd[1]: Starting The Apache HTTP Server...
Apr 03 18:14:22 linux-server apachectl[8568]: apache2: Syntax error on line 225 of /etc/apache2/apach
Apr 03 18:14:22 linux-server apachectl[8568]: Action 'start' failed.
Apr 03 18:14:22 linux-server apachectl[8568]: The Apache error log may have more information.
Apr 03 18:14:22 linux-server systemd[1]: apache2.service: Control process exited, code=exited status=
Apr 03 18:14:22 linux-server systemd[1]: apache2.service: Failed with result 'exit-code'.
Apr 03 18:14:22 linux-server systemd[1]: Failed to start The Apache HTTP Server.
lines 1-16/16 (END)
● 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-04-03 18:14:22 UTC; 47s ago
Process: 8352 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
Process: 8568 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 8182 (code=exited, status=0/SUCCESS)
Apr 03 18:14:22 linux-server systemd[1]: Starting The Apache HTTP Server...
Apr 03 18:14:22 linux-server apachectl[8568]: apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error
Apr 03 18:14:22 linux-server apachectl[8568]: Action 'start' failed.
Apr 03 18:14:22 linux-server apachectl[8568]: The Apache error log may have more information.
Apr 03 18:14:22 linux-server systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 03 18:14:22 linux-server systemd[1]: apache2.service: Failed with result 'exit-code'.
Apr 03 18:14:22 linux-server systemd[1]: Failed to start The Apache HTTP Server.
~
toempie@linux-server:/etc/apache2$ sudo nano apache2.conf
|
Die Zeile 225 der apache2.conf ( auf die die Fehlermeldung hinweist ) lautet IncludeOptional sites-enabled/*.conf Mit google erhält man hier zwar Treffer aber die sind mir zu vage, hast du eine Idee ?
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
hast du das schon gemacht?
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
ja, 1
2
3
4
5
6
7
8
9
10
11
12 | toempie@linux-server:/etc/apache2$ sudo a2enmod ssl
[sudo] password for toempie:
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled
toempie@linux-server:/etc/apache2$ sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
|
und systemctl status apache2.service verweist weiterhin auf den gleichen Fehler
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
zeigt mal die Files in /etc/apache2/sites-enabled/
und error.log von apache.
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
toempie@linux-server:/etc/apache2/sites-enabled$ ls -lisa
total 8
6293161 4 drwxr-xr-x 2 root root 4096 Apr 3 18:01 .
6292933 4 drwxr-xr-x 9 root root 4096 Apr 3 21:23 ..
6293207 0 lrwxrwxrwx 1 root root 35 Mär 19 22:31 000-default.conf -> ../sites-available/000-default.conf
6293602 0 lrwxrwxrwx 1 root root 35 Apr 3 18:01 default-ssl.conf -> ../sites-available/default-ssl.conf
6293300 0 lrwxrwxrwx 1 root root 32 Mär 26 23:34 owncloud.conf -> ../sites-available/owncloud.conf
/var/log/apache2/error.log 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 |
[Wed Apr 03 17:18:39.995124 2019] [authz_core:error] [pid 7185] [client 192.168.178.148:57116] AH01630: client denied by se rver configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Apr 03 17:21:40.076970 2019] [authz_core:error] [pid 7190] [client 192.168.178.148:57161] AH01630: client denied by se rver configuration: /var/www/owncloud/data/htaccesstest.txt
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
[Wed Apr 03 17:46:57.635529 2019] [mpm_prefork:notice] [pid 7180] AH00169: caught SIGTERM, shutting down
[Wed Apr 03 17:46:57.900132 2019] [mpm_prefork:notice] [pid 8182] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Wed Apr 03 17:46:57.900302 2019] [core:notice] [pid 8182] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 03 18:02:29.259711 2019] [mpm_prefork:notice] [pid 8182] AH00169: caught SIGTERM, shutting down
Q
C
^C
toempie@linux-server:/var/log/apache2$ sudo less error.log
[Wed Apr 03 06:25:03.713056 2019] [mpm_prefork:notice] [pid 30926] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Apr 03 06:25:03.713127 2019] [core:notice] [pid 30926] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 03 12:47:56.107319 2019] [mpm_prefork:notice] [pid 30926] AH00169: caught SIGTERM, shutting down
[Wed Apr 03 12:49:13.427018 2019] [mpm_prefork:notice] [pid 1641] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Apr 03 12:49:13.484292 2019] [core:notice] [pid 1641] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 03 14:21:37.761821 2019] [mpm_prefork:notice] [pid 1641] AH00169: caught SIGTERM, shutting down
[Wed Apr 03 14:21:38.005144 2019] [mpm_prefork:notice] [pid 5494] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Apr 03 14:21:38.005291 2019] [core:notice] [pid 5494] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 03 16:01:31.060533 2019] [mpm_prefork:notice] [pid 5494] AH00169: caught SIGTERM, shutting down
[Wed Apr 03 16:01:31.303213 2019] [mpm_prefork:notice] [pid 6825] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Apr 03 16:01:31.303383 2019] [core:notice] [pid 6825] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 03 16:13:19.951010 2019] [mpm_prefork:notice] [pid 6825] AH00169: caught SIGTERM, shutting down
[Wed Apr 03 16:13:20.194240 2019] [mpm_prefork:notice] [pid 7180] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Apr 03 16:13:20.194387 2019] [core:notice] [pid 7180] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 03 17:17:30.363042 2019] [authz_core:error] [pid 7184] [client 192.168.178.148:57064] AH01630: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Apr 03 17:18:39.995124 2019] [authz_core:error] [pid 7185] [client 192.168.178.148:57116] AH01630: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Wed Apr 03 17:21:40.076970 2019] [authz_core:error] [pid 7190] [client 192.168.178.148:57161] AH01630: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
[Wed Apr 03 17:46:57.635529 2019] [mpm_prefork:notice] [pid 7180] AH00169: caught SIGTERM, shutting down
[Wed Apr 03 17:46:57.900132 2019] [mpm_prefork:notice] [pid 8182] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Wed Apr 03 17:46:57.900302 2019] [core:notice] [pid 8182] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 03 18:02:29.259711 2019] [mpm_prefork:notice] [pid 8182] AH00169: caught SIGTERM, shutting down
~
~
~
|
|
dajohb
Anmeldungsdatum: 29. Januar 2016
Beiträge: 166
|
zeigt mal die /etc/apache2/sites-available/default-ssl.conf
|
Burdarper
(Themenstarter)
Anmeldungsdatum: 27. Februar 2008
Beiträge: 100
|
/etc/apache2/sites-available/default-ssl.conf 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 | <IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
<IfModule mod_headers.c>Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"</IfModule>
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
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crtSSLCertificateKeyFile /etc/apache2/ssl/apache.key
# A self-signed (snakeoil) certificate can be created by installing
# the ssl-cert package. See
|
|