LAMP and PostgreSQL

I seem to recall (it’s been some years; the wheels are rusty) during the install of Centos, I could select packages like php, PostgreSQL and more. I ran through an install of Rocky in VirtualBox and my only option for my need was basic webserver. The install process only installed httpd.

Did I miss the options or is the install process not providing a more granular installation of packages to setup a LAMP with PostgreSQL box?

Thanks

The Software selection view of installer has “Environment” on the left and “Additional groups” on the right. Chapter 10. Customizing your installation Red Hat Enterprise Linux 8 | Red Hat Customer Portal

These seem to correnspond to “Environment groups” and “Groups” in the output of

dnf group list

These groups are different than in earlier major versions. Furthermore, the AppStream has more than one version of, say PHP. Red Hat Enterprise Linux 8 Application Streams Life Cycle - Red Hat Customer Portal

It is more flexible to select what to install additional packages afterwards (once you know what to choose).

Naturally, one could store package selection into kickstart file to easily make automated installation the next time, or store that list for some configuration management system (e.g. Ansible, Chef, Puppet, etc).

@jlehtone thanks for the reply. How can I determine all the right versions of httpd, php, postgresql, and mariadb so they all work together? Or do I just choose the most current for all of them?

A ‘yum search php’ doesn’t seem to list different version. Just the one and all the other items like for php-pgsql and others.

php.x86_64 : PHP scripting language for creating dynamic web sites

I guess I don’t follow how there is more than one version.

I don’t know anything about LAMPs.

AppStream has modules. Test with yum module list php. It should list more than one “php”.
The yum list php shows package only from the enabled module.
See Chapter 2. Introduction to modules Red Hat Enterprise Linux 8 | Red Hat Customer Portal

Here’s a bit from our dockerfile that builds containter serving web apps. Thoses same commands coule be used to installa a basic webserver :

yum -y --setopt=tsflags=nodocs install epel-release https://rpms.remirepo.net/enterprise/remi-release-8.rpm && \
	dnf module enable -y php:remi-8.0 nodejs:14 postgresql:13 && \
	yum -y --setopt=tsflags=nodocs --setopt=install_weak_deps=false --enablerepo=remi install httpd \
		php php-cli php-soap php-bcmath php-process php-mysqlnd php-imap \
		php-imap php-common php-json php-pdo php-intl php-pecl-igbinary php-pecl-msgpack \
		php-ldap php-mbstring php-pgsql php-gd php-pecl-redis php-xml php-opcache php-pecl-xdebug3 \
		php-pear php-pear-XML-Parser php-pear-XML-Serializer php-pear-CAS php-pear-Mail-Mime php-pear-Mail-mimeDecode \
		php-pear-DB postgresql \
		composer nodejs npm git unzip && \
 	yum clean all