Want to subscribe to topics you're interested in?
Become a Member

Install without Mysql

Discussion in 'Install & Upgrades or Pre-Install Questions' started by JamesJamz, Sep 28, 2024.

  1. JamesJamz

    JamesJamz New Member

    21
    2
    3
    May 4, 2020
    UK
    Ratings:
    +3
    Local Time:
    6:33 AM
    10.4
    Hey Guys

    Just looking for a bit of advice to see if this is even possible. I’m having a server switch around and going for a dedicated MariaDB server, and separate centminmod server running Alma Linux 9. I just wondered


    1. Is there something I can put in the persistent file, to stop MYSQL being installed (as won’t be required)

    2. know of any install scrips like centminmod that would install hardened MariaDB and firewall?
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,567
    12,136
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,679
    Local Time:
    3:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Best advice is let Centmin Mod install the software on both web and db servers and then just stop the service. This allows you in emergency situations to just start the service and migrate data if needed. So if web server has issues, just migrate data to db server or if db server has issues, just migrate data to web server.

    so on MariaDB server stop nginx and PHP-FPM and disable them from startup on server reboot
    Code (Text):
    systemctl stop nginx php-fpm
    systemctl disable nginx php-fpm
    

    on web server stop MariaDB server and disable them from startup on server reboot
    Code (Text):
    systemctl stop mariadb
    systemctl disable mariadb
    


    to restart the services if needed

    so on MariaDB server start nginx and PHP-FPM and enable auto start up on server reboot
    Code (Text):
    systemctl start nginx php-fpm
    systemctl enable nginx php-fpm
    

    on web server start MariaDB server nd enable auto start up on server reboot
    Code (Text):
    systemctl start mariadb
    systemctl enable mariadb