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

    Change webserver port?

    Scheduled Pinned Locked Moved
    FOG Problems
    5
    6
    803
    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.
    • D
      DiscoNaut
      last edited by

      Is it possible to change the default webserver port to something besides 80? Say, 8080?

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @DiscoNaut While you surely can mess with the port in the Apache config I am fairly sure this will break some of FOG’s features like wake on LAN, snapins and maybe even PXE booting. Will definitely take some manual adjustments in files in the FOG server to get this somehow working.

        What’s your intend in doing this?

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        8 1 Reply Last reply Reply Quote 0
        • 8
          8dot @Sebastian Roth
          last edited by

          @sebastian-roth
          I ended up doing it. Since we have a monitoring system running on that port.
          It did break a lot of stuff. When I reach out to the webserver I get this.
          https://localhost:8080/fog/Management

          <?php
          /**

          • The main index presenter
          • PHP version 5
          • @category Index_Page
          • @package FOGProject
          • @author Tom Elliott tommygunsster@gmail.com
          • @license http://opensource.org/licenses/gpl-3.0 GPLv3
          • @link https://fogproject.org
            /
            /
            *
          • The main index presenter
          • @category Index_Page
          • @package FOGProject
          • @author Tom Elliott tommygunsster@gmail.com
          • @license http://opensource.org/licenses/gpl-3.0 GPLv3
          • @link https://fogproject.org
            */
            require ‘…/commons/base.inc.php’;
            $FOGPageManager = FOGCore::getClass(‘FOGPageManager’);
            if (session_status() != PHP_SESSION_NONE) {
            if (isset($_SESSION[‘delitems’])
            && !in_array($sub, array(‘deletemulti’, ‘deleteconf’))
            ) {
            unset($_SESSION[‘delitems’]);
            }
            }
            FOGCore::getClass(‘ProcessLogin’)->processMainLogin();
            require ‘…/commons/text.php’;
            $Page = FOGCore::getClass(‘Page’);
            $nodes = array(
            ‘schema’,
            ‘client’,
            ‘ipxe’
          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @8dot Well in this case your webserver is not setup to even process the PHP scripts when you access the page on port 8080. I don’t think we can guide you through the whole process of moving FOG to another port.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • J
              jjurak
              last edited by jjurak

              This post is deleted!
              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @jjurak
                last edited by

                @jjurak Is this something you are actively looking to do?

                If yes, do you use the fog client program? If yes that will be the problem. The fog client is hard coded to use port 80. I’ve been asking for a few years to decouple the fog client communication port from the management ui. But there has been other issues that have taken priority.

                If you are interested in doing this I can probably give you a few areas to look.

                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
                • 1 / 1
                • First post
                  Last post

                155

                Online

                12.2k

                Users

                17.4k

                Topics

                155.5k

                Posts
                Copyright © 2012-2024 FOG Project