+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
O/S Deployment Thread, Client Menu in Technical; i renamed the original to .old, pasted in your version and still didnt work, even rebooted everything and still same ...
  1. #16

    Join Date
    Jun 2009
    Posts
    372
    Thank Post
    14
    Thanked 3 Times in 3 Posts
    Rep Power
    20
    i renamed the original to .old, pasted in your version and still didnt work, even rebooted everything and still same message arghhhhhh!

  2. #17
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    816
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    39
    Could you try restarting apache just in case?

  3. #18

    Join Date
    Jun 2009
    Posts
    372
    Thank Post
    14
    Thanked 3 Times in 3 Posts
    Rep Power
    20
    im opening up a terminal and tried typing;

    sudo /etc/init.d/apache2 stop
    sudo /etc/init.d/apache2 start
    sudo /etc/init.d/apache2 restart

    and i just get "command not found" although if i browse to that location apache2 is there so im not sure what im doing wrong there.

    But surely does restarting Ubuntu not restart apache2 anyway?

  4. #19
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    816
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    39
    Yes, a reboot restarts it. Are you using version FOG 0.26?

    Just to double check, the replacement file should have these changes?
    Highlighted in bold hopefully.

    Code:
    <?php
    /*
     *  FOG - Free, Open-Source Ghost is a computer imaging solution.
     *  Copyright (C) 2007  Chuck Syperski & Jian Zhang
     *
     *   This program is free software: you can redistribute it and/or modify
     *   it under the terms of the GNU General Public License as published by
     *   the Free Software Foundation, either version 3 of the License, or
     *   any later version.
     *
     *   This program is distributed in the hope that it will be useful,
     *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *   GNU General Public License for more details.
     *
     *   You should have received a copy of the GNU General Public License
     *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
     *
     *
     */
     
    @error_reporting(0);
    require_once( "../commons/config.php" );
    require_once( "../commons/functions.include.php" );
    require_once( "../management/lib/ImageMember.class.php" );
    
    $mac = $_POST["mac"];
    
    if ( isset($mac) )
    {
    	$conn = @mysql_connect( MYSQL_HOST, MYSQL_USERNAME, MYSQL_PASSWORD);
    	if ( $conn )
    	{
    		if ( ! @mysql_select_db( MYSQL_DATABASE, $conn ) ) die( "#!db" );
    		if ( isValidMACAddress( $mac ) )
    		{
    			if ( $_POST["username"] != null && $_POST["password"] != null )
    			{
    				$u = mysql_real_escape_string(base64_decode(trim($_POST["username"])));
    				$p = mysql_real_escape_string(base64_decode(trim($_POST["password"])));
    				
    				
    				
    				 $sql = "select * from users where uName = '$u' and uPass = MD5('$p')";
    				 $res = mysql_query( $sql, $conn ) or die( mysql_error() );
    				 if ( mysql_num_rows( $res ) == 1 )
    				 {
    				 	$blFound = false;
    				 	while( $ar = mysql_fetch_array( $res ) )
    					{
    						$blFound = true;
    					}
    					
    					$hid = getHostID( $conn, $mac );
    					if ( $hid != null )
    					{
    						$imageMember = getImageMemberFromHostID( $conn, $hid );
    						if ( $imageMember != null )
    						{
    							$tmp;
    							if( createImagePackage($conn, $imageMember, "", $tmp, false ) )
    							{
    								echo "#!ok";
    							}
    							else
    							{
    								echo "    $tmp";
    							}
    					
    						}
    						else
    							echo "#ih";				
    					}
    					else
    						echo "#ih";
    				 }
    				 else
    				 {
    				 	echo ( "#!il" );
    				 }				
    			}
    			else
    			{
    				$mac = mysql_real_escape_string( $mac );
    				$sql = "select * from hosts left outer join images on ( hostImage = imageID ) where hostMAC = '" .  $mac . "'";
    				$res = mysql_query( $sql, $conn ) or die( "#!db" );
    				if( $ar = mysql_fetch_array( $res ) )
    				{
    					if ( isSafeHostName( $ar["hostName"] ) )
    					{
    						echo "  Host: " . $ar["hostName"] . "\\n";					
    						echo "  Image: " . $ar["imageName"] . "\\n";	
    					}	
    					else
    						echo "#!ih";
    					exit;
    				}
    				echo "#!nf";
    			}
    		}
    		else
    		{
    			echo "#!im";
    		}
    	}
    	else
    	{
    		die( "#!db" );
    	}
    }
    else
    	echo "#!im";
    ?>

  5. #20

    Join Date
    Jun 2009
    Posts
    372
    Thank Post
    14
    Thanked 3 Times in 3 Posts
    Rep Power
    20
    yep fog 0.26 and the lines in bold are in my version however...

    when i look at the file it has an icon next to it which ive found out means "no read" although im not really sure what that means exactly but have i somehow managed to balls up the way of pasting the file into the folder and that could be causing it?

  6. #21
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    816
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    39
    I don't have the GUI installed, but in a console window type

    ls -l
    and it should display the file ownership and permissions.

    You should be able to set the ownership and permissions through the GUI or by using chown and chmod.


    Or if you wanted to try another way, switch the files back so the 'old' file is the one being used again, then just make the changes in bold to update it, that should eliminate permissions as a problems as it's the original file.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Fog] FOG Help!
    By Dafty in forum O/S Deployment
    Replies: 2
    Last Post: 10th August 2011, 10:51 AM
  2. [Fog] Fog Multicast
    By rocknrollstar in forum O/S Deployment
    Replies: 2
    Last Post: 25th May 2009, 09:23 AM
  3. [Fog] FOG
    By CheeseDog in forum O/S Deployment
    Replies: 5
    Last Post: 3rd March 2009, 09:54 AM
  4. Create menu & sub-menu with Edugeek Joomla
    By FN-GM in forum EduGeek Joomla 1.0 Package
    Replies: 24
    Last Post: 8th December 2007, 11:48 PM
  5. Fog!
    By localzuk in forum Other Stuff
    Replies: 1
    Last Post: 23rd January 2007, 11:25 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •