How to Install Admidio with LAMP Stack on Rocky Linux 8

Admidio is free online membership management, which is optimized for associations, groups, and organizations. In addition to classic user management, it consists of a variety of modules that can be installed and adjusted on a new or existing homepage. In this article, we are going to learn how to install Admidio on Rocky Linux 8. So, let’s get started.

Checkout the Admidio Project Here.

Try this wiki on our VPS. Starting at just $5/month with 24x7 In-house customer support.

Pre-requisites :

  • A system with Rocky Linux 8 installed and running.

  • root access to the system.

  • LAMP Stack installed and running, for this, you can refer to one of our guides on installing the LAMP Stack (Apache, MariaDB, and PHP).

Once you're all set, we'll proceed with Admidio installation and configuration.

Create Database

Let us begin with creating a Database and a user. We will then grant the required privileges to the user so it can interact with the Database.

mysql -u root

CREATE DATABASE crowncloud;

CREATE USER 'crowncloud'@'localhost' IDENTIFIED BY 'UYGVc%$#Erfgt*&^%7';

GRANT ALL PRIVILEGES ON crowncloud.* TO 'crowncloud'@'localhost';

FLUSH PRIVILEGES;

QUIT

The above commands will give complete access to the user crowncloud. We would suggest using a strong and long password.

Configuring Apache vHost

Create a new folder named Admidio under the public folder.

mkdir -p /var/www/html/admidio

Create a new apache configuration file dev1.domainhere.info.conf for the domain with the following command:

nano /etc/httpd/conf.d/dev1.domainhere.info.conf

Add the following codes:

  <VirtualHost *:80>
  ServerName dev1.domainhere.info
  ServerAlias dev1.domainhere.info
  DocumentRoot /var/www/html/admidio

  <Directory /var/www/html/admidio/>
      Options -Indexes +FollowSymLinks
      AllowOverride All
  </Directory>

  ErrorLog /var/log/httpd/dev1.comainhere.info-error.log
  CustomLog /var/log/httpd/dev1.comainhere.info-access.log combined
  </VirtualHost>

Change dev1.domainhere.info with Your Domain Name.

Now, press the Esc key, and type in :wq! and press the Enter key to save and exit the file.

Now, restart & check the apache with the following commands:

systemctl restart httpd

systemctl status httpd

Enable Firewall:

firewall-cmd --permanent --add-service=http

firewall-cmd --permanent --add-service=https

firewall-cmd --reload

Download Admidio

Download Admidio from official website : Click here.

cd /var/www/

unzip admidio-4.0.12.zip

mv admidio /var/www/html/admidio

cd /var/www/html/

Setting up File Permissions

Let's make the folders readable.

chown -R apache:apache /var/www/html/admidio/adm_my_files

chown -R apache:apache /var/www/html/admidio/

chmod -Rf 777 /var/www/html/admidio/adm_my_files

chmod -Rf 755 /var/www/html/admidio/

chmod +x admidio

chcon -R -t httpd_sys_content_rw_t /var/www/html/admidio/adm_my_files

chcon -R -t httpd_sys_content_rw_t /var/www/html/admidio/

Restart Apache

Restart apache to avoid getting error messages.

systemctl restart httpd

Configuring Admidio

Now open the domain name from your browser, this will redirect you to configuring the final parts of the Admidio installation.

https://dev1.domainhere.info

Replace the dev1.domainhere.info with the actual IP or domain configured on the server.

Input the Database details which was configured earlier. The installation process may take 3-30 mins to complete if you are installing with demo files. Follow the below steps:

Now you have successfully installed Admidio with LAMP Stack on Rocky Linux 8.