Article 53XN4 best method to install php on the mx-linux-system: command-line or MX-Package-manager?

best method to install php on the mx-linux-system: command-line or MX-Package-manager?

by
rincon
from LinuxQuestions.org on (#53XN4)
dear community,

How to install PHP on MXLinux 19? which method: MX Package Manager or command-line
what is aimed: I want to work with PHP 7.3 on my newly installed MXLinux 19.

question:which ways to do this installation should i go:

a. - installing the lamp stack by using MX Package Manager,
b. - installing all that things on command line:

cf https://mxlinux.org/wiki/networking/lamp-setup/

Quote:
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.

Getting root access
To get root access, open a terminal and enter the following command:

Code:su -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:
Code:apt install apache2Starting Apache2 Service
and so on .... cf https://mxlinux.org/wiki/networking/lamp-setup/

at the end i want to work with PHP and a ide or editor such as vscode or something alike

to sume it up: which method of installation is best:

a. - installing the lamp stack by using MX Package Manager,
b. - installing all that things on command line:

Look forward to hear from youlatest?d=yIl2AUoC8zA latest?i=wbQ0NCxzf3E:f46N2gVYhsQ:F7zBnMy latest?i=wbQ0NCxzf3E:f46N2gVYhsQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=wbQ0NCxzf3E:f46N2gVYhsQ:gIN9vFwwbQ0NCxzf3E
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments