GNU/Linux >> LINUX-Kenntnisse >  >> Ubuntu

So installieren Sie LAMP schnell mit Tasksel unter Ubuntu und LinuxMint

Tasksel ist ein Befehlszeilenprogramm für Debian-basierte Systeme zum Installieren einer Gruppe von Paketen, die für bestimmte Aufgaben verwendet werden. Tasksel bietet eine Reihe von Gruppenpaketen, um Ihren Server schnell zu konfigurieren, wie „LAMP Server“, „DNS Server“, „Mail Server“ und „Tomcat Java Server“ usw. Dieser Artikel hilft Ihnen, Tasksel zu installieren und dann LAMP schnell mit Tasksel zu installieren auf den Betriebssystemen Debian, Ubuntu und LinuxMint.

Tasksel installieren

Das taskel-Paket ist unter Standard-Repositories auf den meisten Ubuntu-, Debian- und LinuxMint-Betriebssystemen verfügbar. Verwenden Sie den folgenden Befehl, um es zu installieren.

sudo apt-get install tasksel

LAMP mit Tasksel installieren

Nachdem Sie das Tasksel-Paket auf Ihrem System installiert haben, installieren wir das LAMP-Setup auf Ihrem Ubuntu-, Debian- und LinuxMint-System. Führen Sie den Tasksel-Befehl im Terminal mit sudo-Zugriff aus, um den Lampenserver zu installieren.

sudo tasksel install lamp-server

Die Einrichtung ist innerhalb weniger Minuten abgeschlossen. Der MySQL-Server wird ohne ein für den Root-Benutzer konfiguriertes Passwort installiert. Sie können einfach ohne Passwort auf MySQL zugreifen.

Führen Sie dann den folgenden Befehl aus, um ein neues Passwort festzulegen und die MySQL-Installation über einen Befehlszeilenassistenten zu sichern.

sudo mysql_secure_installation
Befolgen Sie die Anweisungen
Securing the MySQL server deployment.

Connecting to MySQL using a blank password.

VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?

Press y|Y for Yes, any other key for No: y

There are three levels of password validation policy:

LOW    Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary file

Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 1
Please set the password for root here.

New password: **********
Re-enter new password: **********

Estimated strength of the password: 100
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL 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? (Press y|Y for Yes, any other key for No) : y
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? (Press y|Y for Yes, any other key for No) : y
Success.

By default, MySQL 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? (Press y|Y for Yes, any other key for No) : y
 - 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? (Press y|Y for Yes, any other key for No) : y
Success.

All done!

LAMP-Stack testen

Herzlichen Glückwunsch, Ihr LAMP-Setup ist abgeschlossen. Öffnen Sie zur Überprüfung Ihren Webbrowser und greifen Sie auf localhost zu. Sie sehen einen Bildschirm wie unten. Es zeigt, dass Apache gut funktioniert.

Erstellen Sie nun ein PHP-Skript im Dokumentenstammverzeichnis Ihres Webservers. Zum Beispiel:/var/www/html/info.php und fügen Sie die Funktion phpinfo() hinzu, um Details über PHP anzuzeigen.

PHP
123

Greifen Sie dann in einem Browser auf diese Datei zu. Sie erhalten so etwas wie den folgenden Bildschirm.

Dieser Artikel wurde mit dem Betriebssystem Ubuntu 18.04 LTS getestet.


Ubuntu
  1. So installieren Sie PHP 7.4 und 8.0 auf Ubuntu 18.04 oder 20.04

  2. So installieren Sie Anaconda unter Ubuntu 18.04 und 20.04

  3. So installieren Sie Filezilla in Ubuntu 16.04, 14.04 und LinuxMint 18

  4. So installieren Sie Python 3.7 unter Ubuntu, Debian und LinuxMint

  5. So installieren Sie Firefox Developer Edition auf Ubuntu, Debian und LinuxMint mit PPA

So installieren Sie Ansible unter Ubuntu 20.04

So installieren Sie uTorrent in Ubuntu 18.04 und Ubuntu 19.04

So installieren Sie TeamViewer 12 auf Ubuntu 16.04 und Ubuntu 16.10

So installieren Sie ScreenCloud unter Ubuntu 16.04 und Ubuntu 17.04

So installieren Sie Tasksel unter Ubuntu 20.04

So installieren Sie LAMP in Ubuntu in 3 Schritten