ich hab am Wochenende vor - auf meinem Linux-Rechner einen Apache HTTP Server zu installieren - es geht um die Einrichtung eines LAMP-Stacks. Heut hab ich ein anderes Linux als früher - und nun versuch ich die Einrichtungsvorgänge zu übertragen - also die Komandos so anzupassen, dass sie auch auf meinem System passen.
Heute hab ich ein MX-System - also bin hier praktisch richtig: ... MX Linux:
https://de.wikipedia.org/wiki/MX_LinuxMX Linux ist ein hinsichtlich des Ressourcenverbrauchs mittelschweres Linux-Betriebssystem, das auf der Distribution/Variante Debian/stable (‚stabil‘) basiert und zentrale antiX-Komponenten verwendet. Zusätzliche Software wird von der MX-Gemeinschaft erstellt und/oder gepackt. Es wurde als Kooperationsprojekt zwischen der antiX und den ehemaligen MEPIS-Gemeinschaften entwickelt
Deshalb - also weil MX von Debian her kommt - passt der LAMP setup Hinweis von
https://mxlinux.org/wiki/networking/lamp-setup/
Heute also - setze ich MX ein - und deshalb helfen mir hier die Debian Manuals.This page describes how to install LAMP, which stands for Linux Apache MariaDB PHP. For this purpose, you need to set up:
a working Apache2 webserver;
a configured MariaDB database server;
PHP for work with Apache; and finally
phpMyAdmin with a configured pmadb database.
The needed time for the whole installation is around 20 minutes but it may depend on the performance of your Internet connection. This will require you spend some time in the terminal to properly set up.
After entering a valid password, the prompt should turn red and end with a #.
Apache
The following is a step-by-step process to install the Apache2 webserver that will be used in a basic LAMP setup.
Installing Apache2 First of all, make sure you have root access and enter the following as root:
Starting Apache2 ServiceCode: Alles auswählen
apt install apache2
To start the Apache server, enter the following as root
Früher hab ich OpenSuse eingesetzt - und da war das Einrichten des LAMP relativ überschaubar - so nämlich:
Also auf openSUSE, Apache2 einzurichten das ging standardmäßig so...
Das hab ich immer mit dem Zyppyer-Befehl gemacht:
Code: Alles auswählen
$ sudo zypper install apache2
Also - nach dem Start - wird dann automatisch der Apache gestartet - m.a.W. auch der Dienst mit den folgenden Befehlen überprüft.
Code: Alles auswählen
$ sudo systemctl start apache2
$ sudo systemctl enable apache2
$ sudo systemctl status apache2
Code: Alles auswählen
$ sudo netstat -tlpn | grep httpd
beim “/ srv / www / htdocs” wie folgt.
Code: Alles auswählen
$ echo "
Apache2 is running fine on openSUSE Leap
" | sudo tee /srv/www/htdocs/index.html
Frage: kann ich dann hier gleich auch testen, - also einen Test mit der IP-Adresse des Servers im Browser. Das müsste ja dann ein(e) Standard-Adresse sein - denk ich mal!?
Weil ich einen LAMP haben will - brauch ich nun noch gleich eine DB. Also, danach würde ich deshalb am besten noch gleich eine MySQL-DB einrichten. Aber viele raten ja hier - an dieser Stelle dann zu einer MariaDB Datenbank
Seit langem wird gesagt, dass es schlauer ist statt MySQL zu installieren - auf Maria zu setzen. MariaDB - der vom original MySQL Entwickler-Team betreute MySQL-Fork,
Geht das mit dem Kommando
Code: Alles auswählen
zypper install mariadb-server mariadb-client
Was brauch ich noch !?
Was muss ich noch konfigurieren!?
Wünsche Euch allen einen schönen Samstag - viele Grüße
Münster
update: ich hab hier noch ein paar Anleitungen zum Einrichten eines LAMP-Stacks auf Linux#
Ganz allgemein zu LAMP
lamp-stack-auf-debian-installieren
https://think.unblog.ch/lamp-stack-auf- ... tallieren/
Installieren des Linux-, Apache-, MySQL-, PHP- (LAMP-)Stacks unter Ubuntu 20.04
https://www.digitalocean.com/community/ ... u-20-04-de
Ein Lamp-Stack auf MX-Linux:
https://mxlinux.org/wiki/networking/lamp-setup
wenn es immer noch Probleme gibt:
https://forum.mxlinux.org/viewforum.php?f=136
und hier noch mehr Infos - auf Englisch
https://forum.mxlinux.org
darüber hinaus: sehr interessant: Installing WordPress on a Linux (LAMP) Server
https://www.linuxquestions.org/question ... ver-37355/
und zum Thema Finding out what user Apache is running as?Plan: Install an Apache2 web server on Linux with PHP 7.0 (mod_php) and MySQL support. Then install WordPress and create your own website or blog,
either just for testing/learning, or live transmission via a web host.
LAMP is short for Linux, Apache, *MySQL, PHP.
Install Apache
Test Apache:
Install MySQL (or MariaDB):
Install PHP 7.0
Then test your php:
Install phpMyAdmin
WordPress:
Wordpress Database Initialisation
Install WordPress
Useful links
MariaDB: https://mariadb.org/
WordPress: https://codex.wordpress.org/
Ubuntu Server guides: https://help.ubuntu.com/lts/serverguide/
Wplift Guide: https://wplift.com/install-wordpress-in-ubuntu
https://serverfault.com/questions/12586 ... running-as
darüber hinaus - das Thema bei Apache:I want to secure a file upload directory on my server as described beautifully here, but I have one problem before I can follow these instructions. I don't know what user Apache is running as.
I've found a suggestion that you can look in httpd.conf and there will be a "User" line, but there is no such line in my httpd.conf file, so I guess Apache is running as the default user. I can't find out what that is, though.
So, my question is (are):
how do I find out what the default user is
do I need to change the default user
if the answer is yes and I change the default user by editing httpd.conf, is it likely to screw anything up?
Usually you do not need to change the default user, "nobody" or "apache" are typically fine users. As long as its not "root"Code: Alles auswählen
ps aux | egrep '(apache|httpd)' typically will show what apache is running as.
edit: more accurate command for catching apache binaries too
https://httpd.apache.org/docs/2.4/howto/auth.html