Issue with FOG installation, Apache Web server



  • Completely new to all things Fog server related (and linux related, so bear with me) and attempting to learn as I go along. I am having an issue with installation, Apache Webserver installation fails. I found one guide that said manually installing each piece individually might fix the issue(tftp, httpd, etc), tried that to no avail. Not really sure what the issue is. I know this isn’t very specific but I’m sort of flying blind and any input would be great. Thanks.


  • Senior Developer

    @j.schumacher99 can you run:

    service httpd restart and get output from that?



  • @Tom-Elliott

    
           ..#######:.    ..,#,..     .::##::.
      .:######          .:;####:......;#;..
      ...##...        ...##;,;##::::.##...
         ,#          ...##.....##:::##     ..::
         ##    .::###,,##.   . ##.::#.:######::.
      ...##:::###::....#. ..  .#...#. #...#:::.
      ..:####:..    ..##......##::##  ..  #
          #  .      ...##:,;##;:::#: ... ##..
         .#  .       .:;####;::::.##:::;#:..
          #                     ..:;###..
    
      ###########################################
      #     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: [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]
    
      What is the IP address to be used by this FOG Server? [10.10.22.35]
    
      Would you like to setup a router address for the DHCP server? [Y/n] n
    
      Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n] n
    
      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] n
    
      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] n
    
      #####################################################################
    
      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: CentOS
             Installation Type: Normal Server
             Server IP Address: 10.10.22.35
             DHCP router Address:
             DHCP DNS Address:
             Interface: eth0
             Using FOG DHCP: 0
             Internationalization: 0
             Donate: 0
    
             DHCP will NOT be setup but you must setup your
             current DHCP server to use FOG for PXE services.
    
             On a Linux DHCP server you must set:
                 next-server
    
             On a Windows DHCP server you must set:
                 option 066 & 067
    
                       Option 066 is the IP of the FOG Server: (e.g. 10.10.22.35)
                       Option 067 is the undionly.kpxe file: (e.g. undionly.kpxe)
    
      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 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: mysql (Already installed)
      * Skipping package: mysql-server (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: 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...OK
      * Backing up user reports...OK
      * Did you leave the mysql password blank during install? (Y/n) y
    
      * Setting up and starting Apache Web Server...
    Failed! (2)
    
    Script done on Fri 22 Jan 2016 12:08:26 PM EST
    

  • Senior Developer

    @j.schumacher99 what’s in the logfile? cat /var/log/foginstall.log



  • Ok, so I am installing FOG 1.2.0 on CentOS 6.5 completely up to date I think that makes it 6.7? This is the complete sequence when I start the installation.

    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 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: mysql (Already installed)
      * Skipping package: mysql-server (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: 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...OK
      * Backing up user reports...OK
      * Did you leave the mysql password blank during install? (Y/n) y
    
      * Setting up and starting Apache Web Server...
    Failed! (2)
    Script done, file is /var/log/foginstall.log
    [root@fog bin]#
    

  • Developer

    @j.schumacher99 said:

    I’m sort of flying blind and any input would be great

    Same here!! kidding
    You need to be a bit more specific for us to be able to help. Which version of FOG are you trying to install? 1.2.0 or trunk?
    Where do you want to install? CentOS, Fedora, Ubuntu, Debian, Arch?
    Which error do you get (post the full error message!) when trying to install packages manually?


Log in to reply
 

412
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.