• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    External MariaDB with different port & SSL

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    4
    396
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      WT_101
      last edited by

      Hi,

      I would like to connect my FOG server to external mariadb. The external db are using different port & require certificate.

      May i know how can i set this?

      Thank You
      WT

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @WT_101
        last edited by

        @wt_101 Well the first part of this is kind of easy to answer. The file you are looking for is here /var/www/fog/fog/lib/fog/config.class.php That is where the database settings are defined. You will need to be root or sudo to edit the file.

        I have no clue how to use certificates to access the mariadb vs user name and password. Its possible that FOG doesn’t support this feature.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        1 Reply Last reply Reply Quote 0
        • W
          WT_101
          last edited by

          Some updates i’m trying to change the below file to support SSL could anyone guide me on the correct way to set the cert? As i’m not familiar with PHP currently trying out different changes

          06ded1bb-9dfc-4365-9c4b-268f2c3f200b-image.png

          1 Reply Last reply Reply Quote 0
          • W
            WT_101
            last edited by

            I have found the correct file to change which is “pdodb.class.php”

            Cert to add here
            6fe5af73-ef3f-4cad-a605-3da5c1c0eca4-image.png

            While the port can specify at $dsn
            a83bd0c8-cc7c-4f80-bdd2-679fe4221514-image.png

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            270

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project