Debian Buster install procedure for Zoneminder 1.34.x
Re: Debian Buster install procedure for Zoneminder 1.34.x
As a work around I loaded Ubuntu Bionic preinstalled server on my pi 3b+, the arm64 version. Removed Snaps, set the timezone and enabled wifi. Then loaded LEMP and Zoneminder 1.34.2. You could load the armhf version of Ubuntu 18.04 or 19.10.
Have no idea when the Buster armhf update for Zoneminder will be built.
Have no idea when the Buster armhf update for Zoneminder will be built.
Re: Debian Buster install procedure for Zoneminder 1.34.x
Pi4-4GB
Do you mean from this that arm64 is only on bionic.
i.e. No zoneminder build for arm64 on buster or eoan?
Do you mean from this that arm64 is only on bionic.
i.e. No zoneminder build for arm64 on buster or eoan?
cyclic_redundancy_check
Re: Debian Buster install procedure for Zoneminder 1.34.x
No, there are armhf and arm64 versions of 18.04 and 19.10. I chose to use the arm64 have tested the armhf. I like to use the 64 bit OS when possible for security reasons. Have not found a 64 bit Buster for the Pi.
Yes, there are builds of Zoneminder for Bionic and Eoan armhf and arm64.
Re: Debian Buster install procedure for Zoneminder 1.34.x
Following your suggestion I have:
Started with a clean Ubuntu Server ("Official") 18.04.4 pi4 arm64 images.
Using mix : Easy Way, pi4 & 34.02 guides
I can get everything installed including mysql_secure_installation completing etc but
mysql and zoneminder services will not start.
"apt install -f" yields -------->
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up zoneminder (1.34.2-bionic1) ...
Detected db service is mariadb.service
Job for mariadb.service failed because a timeout was exceeded.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
NOTE: MySQL/MariaDB not running; please start mysql and run dpkg-reconfigure zoneminder when it is running.
zoneminder.service is a disabled or a static unit not running, not starting it.
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
Affected packages: zoneminder:arm64
Do you if this is know issue or or my process?
Is it connected to:
apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=17528 comm="mysqld" requested_mask="w" denied_mask="w"
Started with a clean Ubuntu Server ("Official") 18.04.4 pi4 arm64 images.
Using mix : Easy Way, pi4 & 34.02 guides
I can get everything installed including mysql_secure_installation completing etc but
mysql and zoneminder services will not start.
"apt install -f" yields -------->
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up zoneminder (1.34.2-bionic1) ...
Detected db service is mariadb.service
Job for mariadb.service failed because a timeout was exceeded.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
NOTE: MySQL/MariaDB not running; please start mysql and run dpkg-reconfigure zoneminder when it is running.
zoneminder.service is a disabled or a static unit not running, not starting it.
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
Affected packages: zoneminder:arm64
Do you if this is know issue or or my process?
Is it connected to:
apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=17528 comm="mysqld" requested_mask="w" denied_mask="w"
cyclic_redundancy_check
Re: Debian Buster install procedure for Zoneminder 1.34.x
Your process.cyclic wrote: ↑Sun Feb 16, 2020 2:27 pm Following your suggestion I have:
Started with a clean Ubuntu Server ("Official") 18.04.4 pi4 arm64 images.
Using mix : Easy Way, pi4 & 34.02 guides
I can get everything installed including mysql_secure_installation completing etc but
mysql and zoneminder services will not start.
"apt install -f" yields -------->
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up zoneminder (1.34.2-bionic1) ...
Detected db service is mariadb.service
Job for mariadb.service failed because a timeout was exceeded.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
NOTE: MySQL/MariaDB not running; please start mysql and run dpkg-reconfigure zoneminder when it is running.
zoneminder.service is a disabled or a static unit not running, not starting it.
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
Affected packages: zoneminder:arm64
Do you if this is know issue or or my process?
Is it connected to:
apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=17528 comm="mysqld" requested_mask="w" denied_mask="w"
Get the image for your Pi: https://ubuntu.com/download/raspberry-pi
Write the image to the SD card. I use balenaEtcher on Windows
Boot the Pi and let it run for a few minutes to get itself updated
Log in and change the password
Set the timezone (use your timezine)
sudo timedatectl set-timezone America/New_York
Get rid of cloud
sudo dpkg-reconfigure cloud-init
Uncheck everything nut none
sudo apt-get purge cloud-init
sudo mv /etc/cloud/ ~/; sudo mv /var/lib/cloud/ ~/cloud-lib
sudo systemctl disable open-iscsi.service iscsid.service
Enable WIFI if needed
sudo nano /etc/netplan/50-cloud-init.yaml
network:
version: 2
ethernets:
eth0:
optional: true
dhcp4: true
# add wifi setup information here ...
wifis:
wlan0:
optional: true
access-points:
Your-SSID
password: wifi-passphrase
dhcp4: true
reboot
Install LAMP, I recommend Mariadb. See Google for procedure. Digital Ocean is good for this. https://www.digitalocean.com/community/ ... untu-18-04
To install Zoneminder see: https://wiki.zoneminder.com/Ubuntu_Serv ... ell_script
Remember to set the timezone in Zoneminder
Re: Debian Buster install procedure for Zoneminder 1.34.x
Yea troubles:bbunge wrote: ↑Tue Jan 21, 2020 9:11 pmUpgrading Debian 9 to 10 will likely break Zm if wether or not if you upgrade zm. Your best bet is to backup your zm database first. Upgrade to Buster. Check to be sure you have one PHP version. Upgrade Zoneminder and if you have issues you can remove and install Zoneeminder then restore the database backup and run a zm database upgrade.
in sources.list I changed everything to buster and commented out zmrepo. did
Code: Select all
sudo apt update
sudo apt dist-upgrade
Code: Select all
deb https://zmrepo.zoneminder.com/debian/release-1.34 buster/
Code: Select all
sudo apt install zoneminder
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
fcgiwrap
The following NEW packages will be installed:
zoneminder
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6,876 kB of archives.
After this operation, 41.4 MB of additional disk space will be used.
Selecting previously unselected package zoneminder.
(Reading database ... 100809 files and directories currently installed.)
Preparing to unpack .../zoneminder_1.34.2-buster_amd64.deb ...
Unpacking zoneminder (1.34.2-buster) ...
Setting up zoneminder (1.34.2-buster) ...
/var/lib/dpkg/info/zoneminder.postinst: 5: /etc/zm/conf.d/zmcustom.conf: neigh: not found
Detected db service is mariadb.service
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Creating zm db
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Error creating db.
dpkg: error processing package zoneminder (--configure):
installed zoneminder package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
I do have a root password on the database. I can login with
Code: Select all
mysql -u root -p
Code: Select all
[mysql] use mysql;
[mysql] update user set plugin='' where User='root';
[mysql] flush privileges;
[mysql] \q
I know this is a mariadb problem but any help would be appreciated.
Last edited by pgrunwald on Thu Feb 27, 2020 9:06 pm, edited 1 time in total.
Re: Debian Buster install procedure for Zoneminder 1.34.x
OK - making some progress. I reset the mariadb root password to blank and now I'm getting this:
Fixed by:
Code: Select all
sudo apt install zoneminder
Reading package lists... Done
Building dependency tree
Reading state information... Done
zoneminder is already the newest version (1.34.2-buster).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up zoneminder (1.34.2-buster) ...
/var/lib/dpkg/info/zoneminder.postinst: 5: /etc/zm/conf.d/zmcustom.conf: neigh: not found
Detected db service is mariadb.service
Updating permissions
Initiating database upgrade to version 1.34.2 from version 1.32.3
Upgrading database to version 1.34.2
Loading config from DB 223 entries
Saving config to DB 230 entries
Upgrading DB to 1.33.0 from 1.32.3
Database successfully upgraded to version 1.33.0.
Upgrading DB to 1.33.1 from 1.32.3
Database successfully upgraded to version 1.33.1.
Upgrading DB to 1.33.2 from 1.32.3
Database successfully upgraded to version 1.33.2.
Upgrading DB to 1.33.3 from 1.32.3
Database successfully upgraded to version 1.33.3.
Upgrading DB to 1.33.4 from 1.32.3
Database successfully upgraded to version 1.33.4.
Upgrading DB to 1.33.5 from 1.32.3
Database successfully upgraded to version 1.33.5.
Upgrading DB to 1.33.6 from 1.32.3
Database successfully upgraded to version 1.33.6.
Upgrading DB to 1.33.7 from 1.32.3
ERROR 1558 (HY000) at line 117: Column count of mysql.proc is wrong. Expected 21, found 20. Created with MariaDB 100122, now running 100322. Please use mysql_upgrade to fix this error
Output:
Command 'mysql -hlocalhost -uzmuser -p"zmpass" zm < /usr/share/zoneminder/db/zm_update-1.33.7.sql' exited with status: 1
Freshening configuration in database
Migratings passwords, if any...
-->admin password will be migrated
-->LaCueva password will be migrated
Loading config from DB 230 entries
Saving config to DB 230 entries
Done Updating; starting ZoneMinder.
zoneminder.service is a disabled or a static unit not running, not starting it.
Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.
invoke-rc.d: initscript zoneminder, action "start" failed.
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2020-02-16 13:55:44 MST; 9ms ago
Process: 13827 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255/EXCEPTION)
dpkg: error processing package zoneminder (--configure):
installed zoneminder package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
paulg@homenet:/etc/mysql/mariadb.conf.d$ ^C
paulg@homenet:/etc/mysql/mariadb.conf.d$ sudo systemctl status zoneminder.service
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor prese
Active: activating (auto-restart) (Result: exit-code) since Sun 2020-02-16 13
Process: 13900 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255/EXCE
lines 1-4/4 (END)
Code: Select all
paulg@homenet:/etc/mysql/mariadb.conf.d$ sudo journalctl -xe
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit zoneminder.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 255.
Feb 16 13:58:53 homenet systemd[1]: zoneminder.service: Failed with result 'exit
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit zoneminder.service has entered the 'failed' state with result 'exit-
Feb 16 13:58:53 homenet systemd[1]: Failed to start ZoneMinder CCTV recording an
-- Subject: A start job for unit zoneminder.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit zoneminder.service has finished with a failure.
--
-- The job identifier is 2853 and the job result is failed.
Code: Select all
mysql_upgrade -u root -p
Last edited by pgrunwald on Thu Feb 27, 2020 9:06 pm, edited 1 time in total.
Re: Debian Buster install procedure for Zoneminder 1.34.x
I'm getting a clean install from https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo bit API isn't working and trying to access the web interface gives me "Unable to connect to ZM db.could not find driver"
Almost there!!!
Code: Select all
paulg@homenet:~$ sudo apt install php7.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
php7.3 is already the newest version (7.3.11-1~deb10u1).
php7.3 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
paulg@homenet:~$ sudo apt install php7.3-cli php7.3-common php7.3-curl php7.3-gd php7.3-json php7.3-mbstring php7.3-mysql php7.3-xml
Reading package lists... Done
Building dependency tree
Reading state information... Done
php7.3-cli is already the newest version (7.3.11-1~deb10u1).
php7.3-cli set to manually installed.
php7.3-common is already the newest version (7.3.11-1~deb10u1).
php7.3-common set to manually installed.
php7.3-curl is already the newest version (7.3.11-1~deb10u1).
php7.3-curl set to manually installed.
php7.3-gd is already the newest version (7.3.11-1~deb10u1).
php7.3-gd set to manually installed.
php7.3-json is already the newest version (7.3.11-1~deb10u1).
php7.3-json set to manually installed.
php7.3-mbstring is already the newest version (7.3.11-1~deb10u1).
php7.3-mbstring set to manually installed.
php7.3-mysql is already the newest version (7.3.11-1~deb10u1).
php7.3-mysql set to manually installed.
php7.3-xml is already the newest version (7.3.11-1~deb10u1).
php7.3-xml set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Code: Select all
php -i | grep mysql
Additional .ini files parsed => /etc/php/7.3/cli/conf.d/10-mysqlnd.ini,
/etc/php/7.3/cli/conf.d/20-mysqli.ini,
/etc/php/7.3/cli/conf.d/20-pdo_mysql.ini,
mysqli
Client API library version => mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
mysqli.allow_local_infile => Off => Off
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => no value => no value
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off
mysqli.rollback_on_cached_plink => Off => Off
mysqlnd
mysqlnd => enabled
Version => mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
Loaded plugins => mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password,auth_plugin_sha256_password
API Extensions => mysqli,pdo_mysql
mysqlnd statistics =>
PDO drivers => mysql
pdo_mysql
Client API version => mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
pdo_mysql.default_socket => /var/run/mysqld/mysqld.sock => /var/run/mysqld/mysqld.sock
Almost there!!!
- Attachments
-
- phpinfo().zip
- (21.87 KiB) Downloaded 720 times
Re: Debian Buster install procedure for Zoneminder 1.34.x
OK - all fixed... sigh
Final problem was both PHP 7.0 and 7.3 were installed. I basically had to reload the entire LAMP stack to PHP 7.3 to get things working and properly configured again.
Both web and ZMNinja are working.
I didn't need to reload the database or reconfigure cameras.
Final problem was both PHP 7.0 and 7.3 were installed. I basically had to reload the entire LAMP stack to PHP 7.3 to get things working and properly configured again.
Both web and ZMNinja are working.
I didn't need to reload the database or reconfigure cameras.
Re: Debian Buster install procedure for Zoneminder 1.34.x
I followed the procedure here to install zoneminder 1.34 on a Raspberry Pi 3 with Raspian buster and it worked well, thank you for your help. One suggestion though, in the zoneminder.conf file the first line “ location /cgi-bin {” is inconsistent with the Apache install directory structure for ZM, and requires customization to the default setup of zmNinja. I changed it to “location /zm/cgi-bin {“ and it works fine and maintains the consistency of URL structure between Apache and nginx.
I was also able to successfully build 1.34.2 on Raspian as there still is no build in the repo. Thanks for all the good work. It looks like an excellent release.
I was also able to successfully build 1.34.2 on Raspian as there still is no build in the repo. Thanks for all the good work. It looks like an excellent release.
Re: Debian Buster install procedure for Zoneminder 1.34.x
Hello!
i'm trying install Zomeminder using https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo
on my Debian 10.3 Buster (4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) it works on AMD x845 CPU.
It's true claer Debian, not Ubuntu/Raspian....
i get:
Sorry for my Debian language, it's polish but i hope You see what's going on.
Can You help me?
best regards
Dawid
i'm trying install Zomeminder using https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo
on my Debian 10.3 Buster (4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) it works on AMD x845 CPU.
It's true claer Debian, not Ubuntu/Raspian....
i get:
Code: Select all
root@debianAMD:/etc/zm# systemctl start zoneminder
Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.
Code: Select all
root@debianAMD:/etc/zm# zmpkg.pl start
20.02.2020 00:59:26.053885 zmpkg[10078].INF [main:310] [Sanity checking States table...]
20.02.2020 00:59:26.066717 zmpkg[10078].INF [main:95] [Command: start]
20.02.2020 00:59:26.220929 zmsystemctl[10084].INF [main:71] [Redirecting command through systemctl]
Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.
Code: Select all
root@debianAMD:/etc/zm# systemctl status zoneminder.service
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2020-02-20 01:05:22 CET; 2s ago
Process: 11122 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=1/FAILURE)
Code: Select all
-- Identyfikator zadania: 187547.
lut 20 01:06:56 debianAMD su[11398]: pam_unix(su:session): session closed for user www-data
lut 20 01:06:56 debianAMD systemd[1]: session-c1698.scope: Succeeded.
-- Subject: Jednostka się powiodła
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Jednostka session-c1698.scope pomyślnie przeszła do stanu „dead” (martwego).
lut 20 01:06:56 debianAMD systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Proces jednostki zakończył działanie
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Proces ExecStart= należący do jednostki zoneminder.service zakończył działanie.
--
-- Kod wyjścia procesu: „exited”, jego stan wyjścia: 1.
lut 20 01:06:56 debianAMD systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-- Subject: Jednostka się nie powiodła
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Jednostka zoneminder.service przeszła do stanu „failed” (niepowodzenia)
-- z wynikiem „exit-code”.
lut 20 01:06:56 debianAMD systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: Zadanie uruchamiania dla jednostki zoneminder.service się nie powiodło
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Zadanie uruchamiania dla jednostki zoneminder.service zostało ukończone z niepowodzeniem.
--
-- Identyfikator zadania: 187339, wynik zadania: failed.
Can You help me?
best regards
Dawid
Re: Debian Buster install procedure for Zoneminder 1.34.x
If this is a new system try to recreate the database
Create Zoneminder database in MySQL (Note: this also creates the default Zoneminder user and permissions in MySQL)
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload
Then try
service zoneminder start
nie wiem, czy będziesz musiał dostosować polecenia dla języka polskiego
Create Zoneminder database in MySQL (Note: this also creates the default Zoneminder user and permissions in MySQL)
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysqladmin -uroot -p reload
Then try
service zoneminder start
nie wiem, czy będziesz musiał dostosować polecenia dla języka polskiego
Re: Debian Buster install procedure for Zoneminder 1.34.x
I ran the install for the Debian 10 from the WIKI on a fresh install with Apache2 and Mariadb. Zoneminder started and ran as expected. I am wondering if there may be a translation problem between English and Polish?
Uruchomiłem instalację dla Debian 10 z WIKI na świeżej instalacji z Apache2 i Mariadb. Zoneminder uruchomił się i działał zgodnie z oczekiwaniami. Zastanawiam się, czy może występować problem z tłumaczeniem języka angielskiego na polski?
Uruchomiłem instalację dla Debian 10 z WIKI na świeżej instalacji z Apache2 i Mariadb. Zoneminder uruchomił się i działał zgodnie z oczekiwaniami. Zastanawiam się, czy może występować problem z tłumaczeniem języka angielskiego na polski?
Re: Debian Buster install procedure for Zoneminder 1.34.x
Thank You very much but it wasn't help. :/
Debian isn't clear i've got samba, apache2, transmission and many other stuf but zoneminder cannot work.
Do You have any other ideas?
I was never have problem with language of my Debian but everything is possible i think.
best regards
Dawid
Debian isn't clear i've got samba, apache2, transmission and many other stuf but zoneminder cannot work.
Do You have any other ideas?
I was never have problem with language of my Debian but everything is possible i think.
best regards
Dawid
Last edited by dawidt on Thu Feb 20, 2020 9:12 pm, edited 1 time in total.
Re: Debian Buster install procedure for Zoneminder 1.34.x
For Zoneminder to work you need a LAMP or LEMP server.dawidt wrote: ↑Thu Feb 20, 2020 9:10 pm Thank You very much but it wasn't help. :/
Debian isn't clear i've got samba, apache2, transmission and many other stuf but zoneminder cannot work.
Do You have any other ideas?
I was never have problem with language of my Debian but everything is possible i think.
best regards
Dawid
LAMP needs Apache2, Mariadb or MySQL, and PHP
LEMP needs NGINX,Mariadb or MySQL and PHP
LAMP with Mariadb is recommended for beginners. There are several good web sites that provide instructions to set up a LAMP server.
Here is one: https://www.digitalocean.com/community/ ... -debian-10