Installing MariaDB database
# apt-get install mariadb-client mariadb-server
Install apache2 and PHP
# apt-get install apache2 php libapache2-mod-php php8.2-mysql
By default, PHP version for Debian Bookworm is 8.2.
To disable apache2 and mariadb start during boot (to faster your PC start, not recommended for live server)
# systemctl disable apache2
# systemctl disable mariadb
You can start and stop manualy after boot.
Install additional php 8.2 required by CodeIgniter
# apt-get install php8.2-curl php8.2-imagick php8.2-gd php8.2-intl php8.2-mbstring php8.2-memcache php8.2-memcached php8.2-redis php8.2-xml php8.2-phpdbg