FOG 1.5.4 Client Management page



  • Server :
    FOG Version: 1.5.3
    OS: Ubuntu Linux

    Client :
    OS: windows 10

    I upgraded FOG 1.4.4 to 1.5.4. The install completed fine , however, all the links in the clientmanagementpage.class.php redirect to the Dashboard page.
    All links work fine under version 1.4.4.



  • @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.


  • Developer

    @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.



  • @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!


  • Developer

    @probbier said in FOG 1.5.4 Client Management page:

    client webpage

    What do you mean by the “client webpage”?



  • @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.


  • Developer

    @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.



  • 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
    

  • Developer

    @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!



  • @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?


  • Developer

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



  • @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?


  • Developer

    @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.



  • @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.


  • Developer

    @victorsantiago said in FOG 1.5.4 Client Management page:

    all the links in the clientmanagementpage.class.php redirect to the Dashboard page

    I am sorry but I don’t get what you mean by that. Can you explain more in depth what you mean by that. Maybe even post screenshots of what you thing the issue is.


Log in to reply
 

486
Online

6.2k
Users

13.6k
Topics

128.0k
Posts