sudo apache2 -v
Server version: Apache/2.4.41 (Ubuntu)
sudo php -v PHP 8.0.16 (cli) (built: Feb 21 2022 14:42:00) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.16, Copyright (c) Zend Technologies
with Zend OPcache v8.0.16, Copyright (c), by Zend Technologies
sudo mariadb -v
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 31
Server version: 10.7.3-MariaDB-1:10.7.3+maria~focal mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
ganz ehrlich ? Wenn Du davon keine Ahnung hast solltest Du keinen eigenen Server betreiben und Dir Managed Services suchen. Andernfalls kann das übel enden. Stichwort DSGVO.
<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/html
# 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
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Wo finde ich eine funktionierende Anleitung, wie löse ich das Problem?
VG
sven-sw
Aus 2019
@serpent_driver
Hast Du konkreter Lösungsansätze für mich?
Nach welcher Anleitung sollte ich vorgehen?
sudo apt install php8.0-xml
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
php8.0-xml
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 91.1 kB of archives.
After this operation, 407 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main arm64 php8.0-xml arm64 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 [91.1 kB]
Fetched 91.1 kB in 0s (4727 kB/s)
Selecting previously unselected package php8.0-xml.
(Reading database ... 113817 files and directories currently installed.)
Preparing to unpack .../php8.0-xml_8.0.16-1+ubuntu20.04.1+deb.sury.org+1_arm64.deb ...
Unpacking php8.0-xml (8.0.16-1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up php8.0-xml (8.0.16-1+ubuntu20.04.1+deb.sury.org+1) ...
/etc/apache2/sites-available/000-default.conf
cat /etc/apache2/sites-available/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/html
# 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
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noe
sudo update-alternatives --config php
There are 2 choices for the alternative php (providing /usr/bin/php).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/php8.1 81 auto mode
* 1 /usr/bin/php8.0 80 manual mode
2 /usr/bin/php8.1 81 manual mode
Press <enter> to keep the current choice[*], or type selection number:
sudo a2enmod php8.0
Considering dependency mpm_prefork for php8.0:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php8.0:
Module php8.0 already enabled
sudo mariadb -v
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 32
Server version: 10.7.3-MariaDB-1:10.7.3+maria~focal mariadb.org binary distribution
Edit 16.03.2022: wobei ich heute wieder unsicher bin ob ich nicht auf Shopware 6.4.9 setzen sollte. Für alte Versionen interessiert sich gewöhnlich niemand.
Welchen Bedingung muss ein Ubuntu 20.04 erfüllen um Shopware 6.4.9.0 installieren zu können?
D. h. bevor ich irgendwie Berührung mit Shopware 6 hatte.
Eine default Apache Server für verschiedene Web-PHP Anwendungen.
So wie es mit z. B. 1blu Shared Hosting (nicht zu empfehlen, da funktiniert nichts) den ich anmieten kann.
Wäre dieser abgestimmte Server ein gute Basis?
MfG
sven-sw
Ergebnis:
Die Anleitung funktioniert einwanfrei mit meine Subdomain, Schritt 7 habe ich nicht durchgeführt. weil ich noch unsicher bin bezüglich des Shopware 6 Realeases.
MariaDB 10.7 wurde von mir installiert (Anleitung LinuxCapable – 17 Nov 21)
sudo mariadb -v
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 31
Server version: 10.7.3-MariaDB-1:10.7.3+maria~focal mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.