Anyhow I got an error to upload an image but I am sending you the whole script:
[root@localhost Desktop]# cd ..
[root@localhost ~]# var/log/mysql/mysql.err
bash: var/log/mysql/mysql.err: No such file or directory
[root@localhost ~]# cd Downloads
[root@localhost Downloads]# ls
fog_1.2.0  fog_1.2.0.tar
[root@localhost Downloads]# cd fog_1.2.0
[root@localhost fog_1.2.0]# cd bin
[root@localhost bin]# ls
installfog.sh
[root@localhost bin]#  ./installfog.sh
Script started, file is /var/log/foginstall.log
\S
       ..#######:.    ..,#,..     .::##::.   
  .:######          .:;####:......;#;..      
  ...##...        ...##;,;##::::.##...       
     ,#          ...##.....##:::##     ..::  
     ##    .::###,,##.   . ##.::#.:######::. 
  ...##:::###::....#. ..  .#...#. #...#:::.  
  ..:####:..    ..##......##::##  ..  #      
      #  .      ...##:,;##;:::#: ... ##..    
     .#  .       .:;####;::::.##:::;#:..     
      #                     ..:;###..        
  ###########################################
  #     FOG                                 #
  #     Free Computer Imaging Solution      #
  #                                         #
  #     http://www.fogproject.org/          #
  #                                         #
  #     Developers:                         #
  #         Chuck Syperski                  #
  #         Jian Zhang                      #
  #         Peter Gilchrist                 #
  #         Tom Elliott                     #
  #     GNU GPL Version 3                   #
  ###########################################
  Version: 1.2.0 Installer/Updater
  What version of Linux would you like to run the installation for?
          1) Redhat Based Linux (Redhat, CentOS, Mageia)
          2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
  Choice: []^[[D1
  Sorry, answer not recognized.
  What version of Linux would you like to run the installation for?
          1) Redhat Based Linux (Redhat, CentOS, Mageia)
          2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
  Choice: []1
  Staring Redhat / CentOS Installation.
../lib/redhat/functions.sh: line 1: n#: command not found
  FOG Server installation modes:
      * Normal Server: (Choice N) 
          This is the typical installation type and
          will install all FOG components for you on this
          machine.  Pick this option if you are unsure what to pick.
      * Storage Node: (Choice S)
          This install mode will only install the software required
          to make this server act as a node in a storage group
  More information:  
     http://www.fogproject.org/wiki/index.php?title=InstallationModes 
  What type of installation would you like to do? [N] n
  What is the IP address to be used by this FOG Server? [192.168.1.123]
  Would you like to setup a router address for the DHCP server? [Y/n] y
  What is the IP address to be used for the router on the DHCP server? [192.168.1.1]
  Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n] y
  What is the IP address to be used for DNS on the DHCP server and client boot image? [192.168.1.1] 
  Would you like to change the default network interface from eth0?
  If you are not sure, select No. [y/N]n
  Would you like to use the FOG server for DHCP service? [Y/n] y
  This version of FOG has internationalization support, would  
  you like to install the additional language packs? [y/N] n
  Would you like to donate computer resources to the FOG Project
  to mine cryptocurrency?  This will only take place during active
  tasks and should NOT have any impact on performance of your 
  imaging or other tasks.  The currency will be used to pay for
  FOG Project expenses and to support the core developers working
  on the project.  For more information see: 
  http://fogproject.org/?q=cryptocurrency
  Would you like to donate computer resources to the FOG Project? [y/N] y
  #####################################################################
  FOG now has everything it needs to setup your server, but please
  understand that this script will overwrite any setting you may
  have setup for services like DHCP, apache, pxe, tftp, and NFS.
  
  It is not recommended that you install this on a production system
  as this script modifies many of your system settings.
  This script should be run by the root user on Redhat or with sudo on Ubuntu.
  ** Notice ** Redhat users will need to disable SELinux and iptables in 
  order to use FOG
  Please see our wiki for more information at http://www.fogproject.org/wiki
  Here are the settings FOG will use:
         Base Linux: Redhat
         Detected Linux Distribution: \S
         Installation Type: Normal Server
         Server IP Address: 192.168.1.123
         DHCP router Address: 192.168.1.1
         DHCP DNS Address: 192.168.1.1
         Interface: eth0
         Using FOG DHCP: 1
         Internationalization: 0
         Donate: 1
  Are you sure you wish to continue (Y/N) y
  Installation Started...
  Installing required packages, if this fails
  make sure you have an active internet connection.
  * Packages to be installed: httpd php php-cli php-common php-gd php-mysql mysql mysql-server dhcp tftp-server nfs-utils vsftpd net-tools wget xinetd tar gzip make m4 gcc gcc-c++ lftp
  * Skipping package: httpd (Already installed)
  * Skipping package: php (Already installed)
  * Skipping package: php-cli (Already installed)
  * Skipping package: php-common (Already installed)
  * Skipping package: php-gd (Already installed)
  * Skipping package: php-mysql (Already installed)
  * Skipping package: mariadb (Already installed)
  * Skipping package: mariadb-server (Already installed)
  * Skipping package: dhcp (Already installed)
  * Skipping package: tftp-server (Already installed)
  * Skipping package: nfs-utils (Already installed)
  * Skipping package: vsftpd (Already installed)
  * Skipping package: net-tools (Already installed)
  * Skipping package: wget (Already installed)
  * Skipping package: xinetd (Already installed)
  * Skipping package: tar (Already installed)
  * Skipping package: gzip (Already installed)
  * Skipping package: make (Already installed)
  * Skipping package: m4 (Already installed)
  * Skipping package: gcc (Already installed)
  * Skipping package: gcc-c++ (Already installed)
  * Skipping package: lftp (Already installed)
  Confirming package installation.
  * Checking package: httpd...OK
  * Checking package: php...OK
  * Checking package: php-cli...OK
  * Checking package: php-common...OK
  * Checking package: php-gd...OK
  * Checking package: php-mysql...OK
  * Checking package: mysql...OK
  * Checking package: mysql-server...OK
  * Checking package: dhcp...OK
  * Checking package: tftp-server...OK
  * Checking package: nfs-utils...OK
  * Checking package: vsftpd...OK
  * Checking package: net-tools...OK
  * Checking package: wget...OK
  * Checking package: xinetd...OK
  * Checking package: tar...OK
  * Checking package: gzip...OK
  * Checking package: make...OK
  * Checking package: m4...OK
  * Checking package: gcc...OK
  * Checking package: gcc-c++...OK
  * Checking package: lftp...OK
  Configuring services.
* Setting up and starting MySQL…error reading information on service mysqld: No such file or directory
Failed!
Script done, file is /var/log/foginstall.log
[root@localhost bin]#