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

    Redirect /fog/management to root X.X.X.X

    Scheduled Pinned Locked Moved
    General
    6
    30
    11.7k
    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.
    • Wayne WorkmanW
      Wayne Workman @bluesky
      last edited by Wayne Workman

      @bluesky said in Redirect /fog/management to root X.X.X.X:

      this fails chown root:apache /var/www/html/index.php invalid group. should this be www-data?

      Yep. In Ubuntu/Debian it’s www-data

      I updated the wiki to reflect this.

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • B
        bluesky @george1421
        last edited by

        @george1421 Thanks I have tried both your suggestions, but if you know this works, then I suspect I have issues with my apache2 service

        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
        • Wayne WorkmanW
          Wayne Workman @bluesky
          last edited by

          @bluesky It’s not working?

          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!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          B 2 Replies Last reply Reply Quote 0
          • B
            bluesky @Wayne Workman
            last edited by

            @Wayne-Workman No its not working, typing "X.X.X.X "into the browser takes me to the index of / page. interestingly enough if i type local host, it takes me to the Apache Debian default page then redirects me to the fog web console

            1 Reply Last reply Reply Quote 0
            • B
              bluesky @Wayne Workman
              last edited by

              @Wayne-Workman I think I am going to start all over with fresh install. I am using virtual box so I can destroy and start over easily. I suspect I have touched to many files made to many config changes.

              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @bluesky
                last edited by Wayne Workman

                @bluesky I can assure you that the wiki article I posted does work. Others and myself have used it many times on many different OSs. Starting over is probably best since you’re just playing around with fog.

                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!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                B 2 Replies Last reply Reply Quote 0
                • B
                  bluesky @Wayne Workman
                  last edited by

                  @Wayne-Workman Ok Thanks thats what I will do. Thanks for all your help. So far, I have FOG up and running in a school district…just now trying to tweak a few things

                  1 Reply Last reply Reply Quote 0
                  • B
                    bluesky @Wayne Workman
                    last edited by

                    @Wayne-Workman Hi Wayne - I just cant seem to get this to work following the instructions on wiki.
                    I have started with fresh install of Ubuntu 16 and FOG . I dont want to waste your time but thought I would provide the update.

                    1.) ls -l /var/www/html/index.php
                    -rwxr–r-- 1 root www-data 78 Feb 16 09:24 /var/www/html/index.php

                    2.) Contents of above file:
                    <?php
                    header(‘Location: http://10.0.2.15/fog/management/index.php’);
                    exit;
                    ?>

                    3.)
                    Latest Version: 1.3.4
                    Latest Development Version: 1.3.5-RC-7
                    Latest SVN Version: 6065

                    4.) Server Version: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2k

                    1 Reply Last reply Reply Quote 0
                    • x23piracyX
                      x23piracy
                      last edited by x23piracy

                      create a index.html in /var/www with the following content:

                      <meta http-equiv="refresh" content="0; URL=/fog">
                      

                      ║▌║█║▌│║▌║▌█

                      B 1 Reply Last reply Reply Quote 1
                      • B
                        bluesky @x23piracy
                        last edited by

                        @x23piracy Thanks, this worked!

                        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                        • Wayne WorkmanW
                          Wayne Workman @bluesky
                          last edited by

                          @bluesky I just tried the steps in the wiki verbatim and they work fine. I’m not sure what is wrong, are you replacing the x.x.x.x with the server IP address?

                          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!
                          Daily Clean Installation Results:
                          https://fogtesting.fogproject.us/
                          FOG Reporting:
                          https://fog-external-reporting-results.fogproject.us/

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            bluesky @Wayne Workman
                            last edited by

                            @Wayne-Workman Please see my previous reply to you, you can see exactly what I did including the contents of the php file.

                            Wayne WorkmanW 1 Reply Last reply Reply Quote 1
                            • Wayne WorkmanW
                              Wayne Workman @bluesky
                              last edited by

                              @bluesky sorry about that.

                              Apache must be configured by default on Ubuntu to not look for an index.php ? That’s the only thing I can think of. I’m going to have to try it on Ubuntu 16 now and see.

                              Glad you got something working though. Linux is all about possibilities and freedom doing things your way!

                              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!
                              Daily Clean Installation Results:
                              https://fogtesting.fogproject.us/
                              FOG Reporting:
                              https://fog-external-reporting-results.fogproject.us/

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                bluesky @Wayne Workman
                                last edited by

                                @Wayne-Workman No worries, ya I am going to look at apache default config

                                C 1 Reply Last reply Reply Quote 0
                                • C
                                  captjoekpr @bluesky
                                  last edited by

                                  @bluesky Running into the same issue as well on Ubuntu 16.04

                                  Wiki seems easy enough, but it looks like apache2 just defaults to find index.html instead of index.php that was created

                                  Any other ideas?

                                  Thanks

                                  x23piracyX 1 Reply Last reply Reply Quote 0
                                  • x23piracyX
                                    x23piracy @captjoekpr
                                    last edited by

                                    @captjoekpr http://stackoverflow.com/questions/19322345/how-do-i-change-the-default-index-page-in-apache

                                    ║▌║█║▌│║▌║▌█

                                    C 1 Reply Last reply Reply Quote 1
                                    • Wayne WorkmanW
                                      Wayne Workman
                                      last edited by

                                      Slightly more on topic: http://stackoverflow.com/questions/16192049/how-to-make-apache-serve-index-php-instead-of-index-html

                                      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!
                                      Daily Clean Installation Results:
                                      https://fogtesting.fogproject.us/
                                      FOG Reporting:
                                      https://fog-external-reporting-results.fogproject.us/

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        captjoekpr @x23piracy
                                        last edited by

                                        @x23piracy Would it not be easier just to disable the default apache site entirely? Since they are both using Port 80, would that not auto direct traffic to the Fog site?

                                        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                        • Wayne WorkmanW
                                          Wayne Workman @captjoekpr
                                          last edited by Wayne Workman

                                          @captjoekpr The idea is to just type an IP in the web browser and it take you exactly where you need to go. The goal isn’t disabling the default page.

                                          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!
                                          Daily Clean Installation Results:
                                          https://fogtesting.fogproject.us/
                                          FOG Reporting:
                                          https://fog-external-reporting-results.fogproject.us/

                                          C 1 Reply Last reply Reply Quote 0
                                          • C
                                            captjoekpr @Wayne Workman
                                            last edited by

                                            @Wayne-Workman Fair enough. I keep reading .htaccess is more for admins that don’t have direct/full access to the server where the site lives. But I am guessing it is how everyone got it working here, so I’ll be trying that shortly.

                                            Thanks again

                                            Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post

                                            136

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.4k

                                            Posts
                                            Copyright © 2012-2024 FOG Project