LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 05-26-2020, 04:18 AM   #1
rincon
LQ Newbie
 
Registered: Mar 2020
Posts: 7

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


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 apache2
Starting 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 you
 
Old 05-26-2020, 05:40 AM   #2
shruggy
Member
 
Registered: Mar 2020
Posts: 951

Rep: Reputation: Disabled
I believe the MX Package manager is just a GUI front-end to APT. I would prefer installing via command line because on each step you'll get a direct feedback from the system and meaningful error messages if something should have gone wrong. So you can retry just the failed step.

Last edited by shruggy; 05-26-2020 at 05:42 AM.
 
Old 05-26-2020, 06:38 AM   #3
rincon
LQ Newbie
 
Registered: Mar 2020
Posts: 7

Original Poster
Rep: Reputation: Disabled
Wink

hello dear Shruggy

first of all many many thanks for the quick reply. Great to hear from you.


Quote:
Originally Posted by shruggy View Post
I believe the MX Package manager is just a GUI front-end to APT. I would prefer installing via command line because on each step you'll get a direct feedback from the system and meaningful error messages if something should have gone wrong. So you can retry just the failed step.

this is a very very good idea - it is convincing me: - installing via command line because on each step i'll get a direct feedback from the system and meaningful error messages if something should have gone wrong. So i can retry just the failed step.



i will do as adviced

have a graet day
 
Old 05-26-2020, 12:59 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,407
Blog Entries: 11

Rep: Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359
Moved: This thread is more suitable in MX-Linux and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 05-26-2020, 01:07 PM   #5
rincon
LQ Newbie
 
Registered: Mar 2020
Posts: 7

Original Poster
Rep: Reputation: Disabled
hello dear Astrogeek

first of all - many many thanks for the help and for moving this thread to the according sub-forum.

Quote:
Originally Posted by astrogeek View Post
Moved: This thread is more suitable in MX-Linux and has been moved accordingly to help your thread/question get the exposure it deserves.

since i am on MX-Linux: i just have installed PHP on the machine. Now i need to add a editor or an ide


i look out for PHP-Storm

and yes: since vscode is used by a increasing number of folks i think i have to try out.

btw: what about setting up vscode as a php editor - sensu https://blog.theodo.com/2019/07/vscode-php-development/


is this a recommended way to go!? i have installed vscode on my machine now i want to setup it as a editor for the work with php.


i will have a closer look at the options. Perhaps i find PHPStorm in the repos too - then i can try out this also!

have a great day.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 12 04-25-2019 07:33 AM
Best method for automatic command execution every time a system boots up Ahsaniqbalkmc Linux - Newbie 8 08-14-2013 07:47 PM
Is there a method that is in between a package manager but not adding RPMs manually theKbStockpiler Linux - General 8 11-11-2010 05:05 PM
Poll: Yast Package Manager vs. Smart Package Manager in 10.1 agentchange SUSE / openSUSE 6 06-02-2006 08:29 AM
The Best Method to install Set up a Unix System with PERL, PHP and Apache rhuser Linux - Software 1 03-01-2003 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration