Forums
Manuell - Printable Version

+- Forums (https://wissen.liquidrp.de)
+-- Forum: Install (https://wissen.liquidrp.de/forumdisplay.php?fid=1)
+--- Forum: phpmyadmin (https://wissen.liquidrp.de/forumdisplay.php?fid=2)
+--- Thread: Manuell (/showthread.php?tid=4)



Manuell - admin - 02-15-2022

Hier könnt ihr sehen wie man eine Datenbank auf Linux FiveM Server richtig aufsetzt!

Inhalt: Datenbank Installieren

Ihr logt euch mit
WinScp: auf euren Rootserver: ein und verbindet euch mit putty(SSH: und befolgt die schritte nach der Reihe


Teil
2: (Datenbank)

apt update

apt upgrade -y

apt install ca-certificates apt-transport-https lsb-release gnupg curl nano unzip -y

wget -q
https://packages.sury.org/php/apt.gpg -O- | apt-key add -
echo "deb https:/
/packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list

apt update

apt install apache2 -y

apt install php7.
4 php7.4-cli php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-xsl php7.4-zip php7.4-bz2 libapache2-mod-php7.4 -y

apt install mariadb-server mariadb-client -y

mysql_secure_installation (
1. Drückt Enter 2.J 3. passwort eingeben (datenbank passwort) 4.bei allen fragen einfach Y=Yes drücken oder Enter (Das Passwort merken!!!!)

cd /usr/share

wget
https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.zip -O phpmyadmin.zip

unzip phpmyadmin.zip

rm phpmyadmin.zip

mv phpMyAdmin-*-all-languages phpmyadmin

chmod -R 0755 phpmyadmin

nano /etc
/apache2/conf-available/phpmyadmin.conf 

https://pastebin.com/VFAuWSyq Zeile 1-19 kopieren und dort einfügen

STRG+X
Y
ENTER
Drücken!!!

----------------- (ohne die striche)
# phpMyAdmin Apache configuration

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
    Options SymLinksIfOwnerMatch
    DirectoryIndex index.php
<
/Directory>

# Disallow web access to directories that don't need it
<Directory /usr
/share/phpmyadmin/templates>
    Require all denied
</
Directory>

<Directory /usr/share/phpmyadmin/libraries>
    Require all denied
<
/Directory>

<Directory /usr
/share/phpmyadmin/setup/lib>
    Require all denied
<
/Directory>

----------------- (ohne die striche)

# systemctl reload apache2

# mkdir /usr
/share/phpmyadmin/tmp/

# chown -R www-data:www-data /usr/share/phpmyadmin/tmp/

# mysql -u root

# CREATE USER 'FIVEM'@'localhost' IDENTIFIED BY 'as83ncf9!u39f@';

# GRANT ALL PRIVILEGES ON *.* TO 'FIVEM'@'localhost' WITH GRANT OPTION;

# exit

# a2enconf phpmyadmin

# systemctl reload apache2

eureip/phpmyadmin > wenn ihr die seite erreichen könnt habt ihr es geschafft

Benutzername: root
Passwort: euer passwort den ihr angelegt habt
#___________________________________________________________________________________________________________________________________________