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

    FOG 1.5.4 Client Management page

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    15
    1.5k
    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.
    • V
      victorsantiago @Sebastian Roth
      last edited by

      @sebastian-roth … thanks for reply. Let me ask this. How exactly is the clientmanagement page generated? How do I modify to include my project installers. In the 1.4.4 I just updated the clientmanagementpage.php and it automatically updated my project installers however in 1.5.4 that is not the case.

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

        @victorsantiago Sorry if I seem ignorant but I just don’t get what you are trying to do. What is/are project installers? You seem to have played with FOG a fair bit and also adjusted code to suit your need. Please tell us more about it and I am sure we can help you. Post your custom code (which worked in 1.4.4) for example.

        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
        • P
          probbier @Sebastian Roth
          last edited by

          @Sebastian-Roth
          Victor is part of my team so I’m going to work the issue. We have used fog since v0.32 and have utilized the clientmanagement.class.php to alter the client updater web page to also include our installers with links to the “client” directory in the php file. This allowed us to install programs over the network from the hosts, not a snapin from fog. When altering the php file and saving, it would update the client web page for fog but in the latest version of 1.5.5 it no longer updates the client web page after altering and saving the php file. It did however update the client webpage when I replaced the default clientmanagement.class.php with our file in the fog installer and executed the install process again. So how can we update the fog client webpage without going through the install process again?

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

            @probbier Please tell us more about which files exactly you edit! Give full paths…

            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

            P 1 Reply Last reply Reply Quote 0
            • P
              probbier @Sebastian Roth
              last edited by

              @Sebastian-Roth
              Webpage for client is “/var/www/fog/lib/pages/clientmanagementpage.class.php”
              I’ve also attempted to update the download.php located in /var/www/fog/client in order to link our executables to the web link on client webpage. When I click on my links it opens a blank webpage instead of the .exe or .zip. I can send the files but will not post on public. Is there a way I can send them private?

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

                @probbier Please run ls -al /var/www/ ; ls -al /var/www/html/ ; ls -al /var/www/fog/ ; ls -al /var/www/html/fog/ and post the full output here!

                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
                • P
                  probbier
                  last edited by george1421

                  pc@pc:

                  ~/Downloads/fogproject-1.5.5/bin$ ls -al /var/www/
                  total 16
                  drwxr-xr-x  4 root     root     4096 Jan  3  2018 .
                  drwxr-xr-x 15 root     root     4096 Jan  3  2018 ..
                  drwxr-xr-x 11 www-data www-data 4096 Jan  4  2018 fog
                  drwxr-xr-x  3 root     root     4096 Apr 29 14:14 html
                  pc@pc:~/Downloads/fogproject-1.5.5/bin$ ls -al /var/www/html/
                  total 24
                  drwxr-xr-x  3 root     root      4096 Apr 29 14:14 .
                  drwxr-xr-x  4 root     root      4096 Jan  3  2018 ..
                  drwxr-xr-x 10 www-data www-data  4096 Apr 29 14:16 fog
                  -rw-r--r--  1 root     root     10701 Apr  8 10:32 index.html
                  pc@pc:~/Downloads/fogproject-1.5.5/bin$ ls -al /var/www/fog/
                  total 412
                  drwxr-xr-x 11 www-data www-data   4096 Jan  4  2018 .
                  drwxr-xr-x  4 root     root       4096 Jan  3  2018 ..
                  drwxr-xr-x  2 www-data www-data   4096 Jan  3  2018 api
                  drwxr-xr-x  5 www-data www-data   4096 Apr 29 12:21 client
                  drwxr-xr-x  2 www-data www-data   4096 Jan  3  2018 commons
                  -rwxr-xr-x  1 www-data www-data 370070 Jan  3  2018 favicon.ico
                  lrwxrwxrwx  1 www-data www-data     13 Jan  3  2018 fog -> /var/www/fog/
                  drwxr-xr-x  2 www-data www-data   4096 Jan  3  2018 fogdoc
                  -rwxr-xr-x  1 www-data www-data    572 Jan  3  2018 index.php
                  drwxr-xr-x 13 www-data www-data   4096 Jan  3  2018 lib
                  drwxr-xr-x 10 www-data www-data   4096 Jan  3  2018 management
                  drwxr-xr-x  3 www-data www-data   4096 Jan  3  2018 mobile
                  drwxr-xr-x  3 www-data www-data   4096 Jan  3  2018 service
                  drwxr-xr-x  2 www-data www-data   4096 Jan  3  2018 status
                  pc@pc:~/Downloads/fogproject-1.5.5/bin$ ls -al /var/www/html/fog/
                  total 408
                  drwxr-xr-x 10 www-data www-data   4096 Apr 29 14:16 .
                  drwxr-xr-x  3 root     root       4096 Apr 29 14:14 ..
                  drwxr-xr-x  2 www-data www-data   4096 Apr 29 14:14 api
                  drwxr-xr-x  2 www-data www-data   4096 Apr 29 14:14 client
                  drwxr-xr-x  2 www-data www-data   4096 Apr 29 14:14 commons
                  -rw-r--r--  1 www-data www-data 370070 Apr 29 14:14 favicon.ico
                  lrwxrwxrwx  1 www-data www-data     18 Apr 29 14:14 fog -> /var/www/html/fog/
                  drwxr-xr-x  2 www-data www-data   4096 Apr 29 14:14 fogdoc
                  -rw-r--r--  1 www-data www-data    572 Apr 29 14:14 index.php
                  drwxr-xr-x 13 www-data www-data   4096 Apr 29 14:14 lib
                  drwxr-xr-x 10 www-data www-data   4096 Apr 29 14:14 management
                  drwxr-xr-x  3 www-data www-data   4096 Apr 29 14:14 service
                  drwxr-xr-x  2 www-data www-data   4096 Apr 29 14:14 status
                  
                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @probbier Kind of what I expected to see. You seem to have two versions of the web UI installed on your server. One in /var/www/fog and the other one in /var/www/html/fog. In a normal installation /var/www/fog is just a link to /var/www/html/fog but this does not seem to be the case on your server.

                    From the dates we see that the most current version is probably installed in /var/www/html/fog as it should be. I’d advise you to move that other one out of the way and re-create the link as it is intended:

                    sudo su -
                    mv /var/www/fog/ /root/fog_backup_old_webdir
                    ln -s /var/www/html/fog/ /var/www/fog
                    

                    After that you will be editing the same files again no matter the path - “/var/www/fog/lib/pages/clientmanagementpage.class.php” is the same file as “/var/www/html/fog/lib/pages/clientmanagementpage.class.php” after creating that link.

                    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

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      probbier @Sebastian Roth
                      last edited by

                      @Sebastian-Roth
                      Thanks! That resolved our web gui updating issue.
                      I still have the issue with the links to our executables though. The links take us to the dashboard or for those I’ve added to download.php they open to a blank webpage. What is the trick to adding new links to files and folders that are published on the client webpage? We had this working in version 1.4.4 and earlier but have not figured out how to make it work in the 1.5.5.

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

                        @probbier said in FOG 1.5.4 Client Management page:

                        client webpage

                        What do you mean by the “client webpage”?

                        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

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          probbier @Sebastian Roth
                          last edited by

                          @Sebastian-Roth
                          I was just editing my response when this msg came thru. I was referring to the webpage that the fog utilities, fogcrypt, etc are hosted on. We also post our installers on the page for our closed network to install or transfer files from the fog. I realized that the terminal commands you asked me to run also removed my files stored in /var/www/fog/client/ which was causing the blank webpage when clicking our links. I added the files back in to that directory and it seems to be working again. We appreciate your help!

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

                            @probbier Well, who added the links in the old version and how was it done? I am sure things have changed a fair bit since then and you need to figure out how to do this.

                            Don’t get me wrong, I will try to help you fix things but I have so much other things to do and can’t spend any more time helping you to customize your installation.

                            I’d suggest you look at the apache config generated by the FOG installer. Should be in /etc/apache2/sites-enabled/001-fog.conf on Ubuntu. There we have so called RewriteRule statements in place. Probably those prevent from links working for you but I am not sure.

                            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

                            P 1 Reply Last reply Reply Quote 0
                            • P
                              probbier @Sebastian Roth
                              last edited by

                              @Sebastian-Roth
                              My apologies for not being clearer in my message. I realized here in the past hour that the files were missing after running the terminal commands that removed the old web data. I put the files back and our links are now working again. All issues are resolved and we appreciate your assistance in making it happen.

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

                              144

                              Online

                              12.1k

                              Users

                              17.3k

                              Topics

                              155.4k

                              Posts
                              Copyright © 2012-2024 FOG Project