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

Build 4728 on Debian 8.2

Scheduled Pinned Locked Moved Solved
Bug Reports
3
5
1.8k
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.
  • S
    sudburr
    last edited by Sep 21, 2015, 9:48 PM

    All of this makes changing the default behaviour or Apache interesting:

    There is no folder /fog at /var/www/html
    /var/www/fog is a folder not a symlink
    /var/www/html/index.php is incomplete
    missing /var/www/html/index.php at /var/www/index.php

    Doing my usual " mv -u /var/www/html/index.html /var/www/html/index.html.old " so I don’t need to enter /fog/management or even /fog, just the http://name/ to send me to the login page, doesn’t work because of what I’ve noted above.

    To fix I did:

    • mv /var/www/fog /var/www/html
    • ln -s /var/www/html/fog /var/www/fog
    • repaired /var/www/html/index.php
    • cp /var/www/html/index.php /var/www/index.php

    [ Standing in between extinction in the cold and explosive radiating growth ]

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Sep 22, 2015, 1:24 AM

      You could put a redirect in… all I type is my fog server’s IP and nothing more into a web browser’s address bar and I get slapped onto the login page. https://wiki.fogproject.org/wiki/index.php/Simple_Redirect

      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
      • S
        sudburr
        last edited by sudburr Sep 21, 2015, 9:16 PM Sep 22, 2015, 2:52 AM

        I have been looking into neater ways to accomplish the redirect. CentOS 7.1 has a neat one that doesn’t exist on Debian or Ubuntu.

        sed -i -e "s|DirectoryIndex index.html|DirectoryIndex /fog/index.php index.html|g" /etc/httpd/conf/httpd.conf
        

        For previous builds on both Debian and Ubuntu, I would do:

        mv -u /var/www/html/index.html /var/www/html/index.html.old
        

        Which is just a failover option really … but there is definitely something wrong with what I spotted up there. I’ve recreated the above problems twice on two fresh Debian 8.2 installs and build 4728. I’m re-organizing and re-writing my scripts/steps for server installation then FOG installation; I’ll post them sometime soon.

        Your option to:

         vi /var/www/html/index.php
        <?php header('Location: http://x.x.x.x/fog/management/index.php'); ?>
        die();
        

        … should work yes, but it hard-codes the ip address. I hate hard-coded paths. My job in rc.local could certainly take care of that, but I hate hard-coded paths.

        [ Standing in between extinction in the cold and explosive radiating growth ]

        W 1 Reply Last reply Sep 22, 2015, 3:42 AM Reply Quote 0
        • W
          Wayne Workman @sudburr
          last edited by Sep 22, 2015, 3:42 AM

          @sudburr

          … should work yes, but it hard-codes the ip address. I hate hard-coded paths. My job in rc.local could certainly take care of that, but I hate hard-coded paths.

          Well clearly you could replace the IP with the server name as long as you have a DNS A record for it.

          I haven’t learned sed yet, I haven’t had a need yet. I jumped into the Linux world in February. 🙂 I’m studying for the RHCSA and RHCE right now because I’ve dove in so deep with fog lol.

          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/

          T 1 Reply Last reply Oct 31, 2015, 11:33 PM Reply Quote 0
          • T
            Tom Elliott @Wayne Workman
            last edited by Oct 31, 2015, 11:33 PM

            @Wayne-Workman, @sudburr you both realize you can use relative paths in the location parameter? This removes the hardcoding and is safer than trying get a good Apache configuration using a series of sed statements.

            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

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

            196

            Online

            12.1k

            Users

            17.3k

            Topics

            155.3k

            Posts
            Copyright © 2012-2024 FOG Project