lselimassol
Posts: 22
Joined: Mon Jun 06, 2022 11:12 am

install LAMP Stack for PHP web development, in Pi 4B - 4GB - Raspberry OS

Thu Jan 26, 2023 3:21 pm

To install LAMP Stack for PHP web development, in Pi 4B - 4GB - Raspberry OS what is recommended?

Is any out of the box solution like XAMPP...?

User avatar
DougieLawson
Posts: 42392
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: install LAMP Stack for PHP web development, in Pi 4B - 4GB - Raspberry OS

Thu Jan 26, 2023 4:11 pm

sudo apt install phpmysqladmin mariadb-client-10.5 mariadb-server-10.5 apache2

That will get you a full XAMPP stack.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

lselimassol
Posts: 22
Joined: Mon Jun 06, 2022 11:12 am

Re: install LAMP Stack for PHP web development, in Pi 4B - 4GB - Raspberry OS

Fri Jan 27, 2023 2:57 pm

XAMPP
1
Is from
https://www.apachefriends.org/
Can i use Linux installer...? At this site...

2
This cmd line is it install same versions as https://www.apachefriends.org/ ...?

MiscBits
Posts: 1440
Joined: Wed Jan 27, 2021 12:48 pm

Re: install LAMP Stack for PHP web development, in Pi 4B - 4GB - Raspberry OS

Fri Jan 27, 2023 3:40 pm

Going by this post no.
XAMPP does not provide a compilation for ARM processors, so no XAMPP on Raspberry pi.
and
No, there is no Xampp for Raspi.

lselimassol
Posts: 22
Joined: Mon Jun 06, 2022 11:12 am

Re: install LAMP Stack for PHP web development, in Pi 4B - 4GB - Raspberry OS

Fri Jan 27, 2023 5:30 pm

What about any similar bundle
Like Windows or macOS equivalent of
WAMP
MAMP
XAMPP
Or because installed JetBrains.com PhpStorm IDE for Linux ARM, any PhpStorm plugins for this?
Or VS code plugins for this?

peterlite
Posts: 822
Joined: Sun Apr 17, 2016 4:00 am

Re: install LAMP Stack for PHP web development, in Pi 4B - 4GB - Raspberry OS

Sat Jan 28, 2023 12:39 am

After hundreds of installs and a mass of requests for support from users of XAMPPPP etc, installing the packages separately is way better. The mass install packages do weird things that create more installation problems few people can fix.

Install Apache first and check it is running as per Apache documentation. There are millions of people doing that so help is everywhere.

Install MariaDB next. Write down your password choice as that is the most common post install problem.

PHP next if it is not part of the OS. You can then set up a test page using PHP. If there is a problem, it is usually an optional module missing. You can also find the release installed.

PHPMyAdmin next. It is available in some OS distributions for automatic install. I usually manually install it as a Web site named myadmin.local. This gives you more control and some practice with Web sites.

You can then download packages of code like Drupal for your next Web site. The main problem with some downloads is the need for a recent release of PHP. The next problem may be the need for an optional module and they are usually easy to install the same way you installed PHP.

Doing it this way makes every test easier and every alteration or update easier.

User avatar
rpdom
Posts: 21524
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: install LAMP Stack for PHP web development, in Pi 4B - 4GB - Raspberry OS

Sat Jan 28, 2023 9:42 am

Generally the command Dougie gave is the quickest way of installing the standard LAMP stack, although I wouldn't specify the mariadb version just mariadb-server and you don't need to specify the client as the server will pull that in anyway.

Code: Select all

sudo apt install phpmyadmin mariadb-server apache2
You've already got the "L" (Linux) installed, that command will add the "A" (Apache), "M" (MySQL/MariaDB) and "P" (PHP).
Unreadable squiggle

MiscBits
Posts: 1440
Joined: Wed Jan 27, 2021 12:48 pm

Re: install LAMP Stack for PHP web development, in Pi 4B - 4GB - Raspberry OS

Sat Jan 28, 2023 1:36 pm

XAMPP seems to be a loose term that exceeds LAMP.

The second P adds in Perl while Sourceforge adds in FTP and 'and many more...' (their text not mine). A quick glance at the screen shots show it has a WordPress addin, FileZilla, Mercury (?), TomCat and a control panel.

WAMP seems to be a Windows set with log and version control...

MAMP has me baffled (as it's also for Windows) but the 'pro' version includes Drupal, Joomla and WordPress installers...

Maybe the OP can clarify their needs rather than generic group names / buzzwords?

lselimassol
Posts: 22
Joined: Mon Jun 06, 2022 11:12 am

Re: install LAMP Stack for PHP web development, in Pi 4B - 4GB - Raspberry OS

Tue Jan 31, 2023 4:54 pm

Linux XAMPP App from Apache friends
Is only for Intel/AMD hardware...?

Can be installed on Linux Manjaro ARM Hardware? Pi 4B / 4GB

MiscBits
Posts: 1440
Joined: Wed Jan 27, 2021 12:48 pm

Re: install LAMP Stack for PHP web development, in Pi 4B - 4GB - Raspberry OS

Wed Feb 01, 2023 1:40 pm

lselimassol wrote:
Tue Jan 31, 2023 4:54 pm
Linux XAMPP App from Apache friends
Is only for Intel/AMD hardware...?

Can be installed on Linux Manjaro ARM Hardware? Pi 4B / 4GB
As per my last post:
XAMPP does not provide a compilation for ARM processors
Im out of here.

Return to “Networking and servers”