1.2.0 to 1.3.0 Failed!! libapache2-mod-php5 Failed!



  • Hi i was wondering if anyone an help me fix this to upgrade to 1.3.0 i have backed up my fog_backup.sql file but trying to update to 1.3.0 any help will be much appreciated

    Please find below the error i got at the end of the command

    Thanks in advance

    Lawrence

    
    
    
       +------------------------------------------+
       |     ..#######:.    ..,#,..     .::##::.  |
       |.:######          .:;####:......;#;..     |
       |...##...        ...##;,;##::::.##...      |
       |   ,#          ...##.....##:::##     ..:: |
       |   ##    .::###,,##.   . ##.::#.:######::.|
       |...##:::###::....#. ..  .#...#. #...#:::. |
       |..:####:..    ..##......##::##  ..  #     |
       |    #  .      ...##:,;##;:::#: ... ##..   |
       |   .#  .       .:;####;::::.##:::;#:..    |
       |    #                     ..:;###..       |
       |                                          |
       +------------------------------------------+
       |      Free Computer Imaging Solution      |
       +------------------------------------------+
       |  Credits: http://fogproject.org/Credits  |
       |       http://fogproject.org/Credits      |
       |       Released under GPL Version 3       |
       +------------------------------------------+
    
    
       Version: 7609 Installer/Updater
    
    
     * Found FOG Settings from previous install at: /opt/fog/.fogsettings
     * Performing upgrade using these settings
    
    
      Starting Debian based Installation
    
    
    
       ######################################################################
       #     FOG now has everything it needs for this setup, 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.            #
       #      It will prepend the running with sudo if root is not set      #
       ######################################################################
       #           ** Notice ** FOG is difficult to setup securely          #
       #        SELinux and IPTables are usually asked to be disabled       #
       #           There have been strides in adding capabilities           #
       #          The recommendations would now be more appropriate         #
       #    to set SELinux to permissive and to disable firewall for now.   #
       #  You can find some methods to enable SELinux and maintain firewall #
       #   settings and ports. If you feel comfortable doing so please do   #
       ######################################################################
       #            Please see our wiki for more information at:            #
       ######################################################################
       #             https://wiki.fogproject.org/wiki/index.php             #
       ######################################################################
    
     * Here are the settings FOG will use:
     * Base Linux: Debian
     * Detected Linux Distribution: Ubuntu
     * Server IP Address: 192.168.1.49
     * Server Subnet Mask: 
     * Interface: eth0
     * Installation Type: Normal Server
     * Donate: 0
     * Internationalization: 0
     * Image Storage Location: /images
     * Using FOG DHCP: No
     * 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 and filename
    
     * On a Windows DHCP server you must set options 066 and 067
    
     * Option 066/next-server is the IP of the FOG Server: (e.g. 192.168.1.49)
     * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
    
    
     * Are you sure you wish to continue (Y/N) 
     * Installation Started
    
     * Installing required packages, if this fails
     | make sure you have an active internet connection.
    
     * Adding needed repository....................................OK
     * Preparing Package Manager...................................OK
     * Packages to be installed:
    
    	apache2 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip build-essential cpp gcc g++ m4 htmldoc lftp openssh-server php-gettext php5-mcrypt php5-mysqlnd curl libc6 libcurl3 zlib1g php5-fpm libapache2-mod-php5
    
    
     * Skipping package: apache2...................................(Already Installed)
     * Installing package: php5....................................OK
     * Skipping package: php5-json.................................(Already Installed)
     * Installing package: php5-gd.................................OK
     * Skipping package: php5-cli..................................(Already Installed)
     * Installing package: php5-curl...............................OK
     * Skipping package: mysql-server..............................(Already Installed)
     * Skipping package: mysql-client..............................(Already Installed)
     * Skipping package: tftpd-hpa.................................(Already Installed)
     * Skipping package: tftp-hpa..................................(Already Installed)
     * Skipping package: nfs-kernel-server.........................(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: sysv-rc-conf..............................(Already Installed)
     * Skipping package: tar.......................................(Already Installed)
     * Skipping package: gzip......................................(Already Installed)
     * Skipping package: build-essential...........................(Already Installed)
     * Skipping package: cpp.......................................(Already Installed)
     * Skipping package: gcc.......................................(Already Installed)
     * Skipping package: g++.......................................(Already Installed)
     * Skipping package: m4........................................(Already Installed)
     * Skipping package: htmldoc...................................(Already Installed)
     * Skipping package: lftp......................................(Already Installed)
     * Skipping package: openssh-server............................(Already Installed)
     * Installing package: php-gettext.............................OK
     * Installing package: php5-mcrypt.............................OK
     * Installing package: php5-mysqlnd............................OK
     * Skipping package: curl......................................(Already Installed)
     * Skipping package: libc6.....................................(Already Installed)
     * Skipping package: libcurl3..................................(Already Installed)
     * Skipping package: zlib1g....................................(Already Installed)
     * Installing package: php5-fpm................................OK
     * Installing package: libapache2-mod-php5.....................Failed!
    


  • @george1421 So sorry for the late reply (2 months even) but this sorted my issue out

    Thanks


  • Moderator

    What I don’t understand is why people are using Ubuntu 12.


  • Moderator

    @lawrence1997 said in 1.2.0 to 1.3.0 Failed!! libapache2-mod-php5 Failed!:

    Can you run the following command

    sudo dpkg --get-selections | grep hold
    

    Then run

    sudo apt-get remove packagename
    

    Where packagename is the name of the package that has install after it (if any)


  • Developer



  • Hi all,

    I had faced the same issues with lawrence.

    Here is my Error Log.

    root@fog2:~/fog_1.2.0/bin/trunk/bin/trunk/bin# ./installfog.sh
    
    
       +------------------------------------------+
       |     ..#######:.    ..,#,..     .::##::.  |
       |.:######          .:;####:......;#;..     |
       |...##...        ...##;,;##::::.##...      |
       |   ,#          ...##.....##:::##     ..:: |
       |   ##    .::###,,##.   . ##.::#.:######::.|
       |...##:::###::....#. ..  .#...#. #...#:::. |
       |..:####:..    ..##......##::##  ..  #     |
       |    #  .      ...##:,;##;:::#: ... ##..   |
       |   .#  .       .:;####;::::.##:::;#:..    |
       |    #                     ..:;###..       |
       |                                          |
       +------------------------------------------+
       |      Free Computer Imaging Solution      |
       +------------------------------------------+
       |  Credits: http://fogproject.org/Credits  |
       |       http://fogproject.org/Credits      |
       |       Released under GPL Version 3       |
       +------------------------------------------+
    
    
       Version: 8329 Installer/Updater
    
    
     * Found FOG Settings from previous install at: /opt/fog/.fogsettings
    
     * Performing upgrade using these settings
    
    
      Starting Debian based Installation
    
    
    
       ######################################################################
       #     FOG now has everything it needs for this setup, 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.            #
       #      It will prepend the running with sudo if root is not set      #
       ######################################################################
       #           ** Notice ** FOG is difficult to setup securely          #
       #        SELinux and IPTables are usually asked to be disabled       #
       #           There have been strides in adding capabilities           #
       #          The recommendations would now be more appropriate         #
       #    to set SELinux to permissive and to disable firewall for now.   #
       #  You can find some methods to enable SELinux and maintain firewall #
       #   settings and ports. If you feel comfortable doing so please do   #
       ######################################################################
       #            Please see our wiki for more information at:            #
       ######################################################################
       #             https://wiki.fogproject.org/wiki/index.php             #
       ######################################################################
    
     * Here are the settings FOG will use:
     * Base Linux: Debian
     * Detected Linux Distribution: Ubuntu
     * Server IP Address: 192.168.0.20
     * Server Subnet Mask:
     * Interface: eth0
     * Installation Type: Normal Server
     * Donate: 1
     * Internationalization: 0
     * Image Storage Location: /images
     * Using FOG DHCP: No
     * 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 and filename
    
     * On a Windows DHCP server you must set options 066 and 067
    
     * Option 066/next-server is the IP of the FOG Server: (e.g. 192.168.0.20)
     * Option 067/filename is the bootfile: (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.
    
     * Adding needed repository....................................OK
     * Preparing Package Manager...................................OK
     * Packages to be installed:
    
            apache2 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip build-essential cpp gcc g++ m4 htmldoc lftp openssh-server php-gettext php5-mcrypt php5-mysqlnd curl libc6 libcurl3 zlib1g php5-fpm libapache2-mod-php5
    
    
     * Skipping package: apache2...................................(Already Installed)
     * Skipping package: php5......................................(Already Installed)
     * Installing package: php5-json...............................OK
     * Skipping package: php5-gd...................................(Already Installed)
     * Skipping package: php5-cli..................................(Already Installed)
     * Skipping package: php5-curl.................................(Already Installed)
     * Skipping package: mysql-server..............................(Already Installed)
     * Skipping package: mysql-client..............................(Already Installed)
     * Skipping package: tftpd-hpa.................................(Already Installed)
     * Skipping package: tftp-hpa..................................(Already Installed)
     * Skipping package: nfs-kernel-server.........................(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: sysv-rc-conf..............................(Already Installed)
     * Skipping package: tar.......................................(Already Installed)
     * Skipping package: gzip......................................(Already Installed)
     * Skipping package: build-essential...........................(Already Installed)
     * Skipping package: cpp.......................................(Already Installed)
     * Skipping package: gcc.......................................(Already Installed)
     * Skipping package: g++.......................................(Already Installed)
     * Skipping package: m4........................................(Already Installed)
     * Skipping package: htmldoc...................................(Already Installed)
     * Skipping package: lftp......................................(Already Installed)
     * Skipping package: openssh-server............................(Already Installed)
     * Skipping package: php-gettext...............................(Already Installed)
     * Installing package: php5-mcrypt.............................OK
     * Installing package: php5-mysqlnd............................OK
     * Skipping package: curl......................................(Already Installed)
     * Skipping package: libc6.....................................(Already Installed)
     * Skipping package: libcurl3..................................(Already Installed)
     * Skipping package: zlib1g....................................(Already Installed)
     * Installing package: php5-fpm................................OK
     * Installing package: libapache2-mod-php5.....................Failed!
    root@fog2:~/fog_1.2.0/bin/trunk/bin/trunk/bin# ^C
    root@fog2:~/fog_1.2.0/bin/trunk/bin/trunk/bin# cd error_logs/
    root@fog2:~/fog_1.2.0/bin/trunk/bin/trunk/bin/error_logs# ls
    fog_error_8329.log  foginstall.log
    root@fog2:~/fog_1.2.0/bin/trunk/bin/trunk/bin/error_logs# view fog_error_8329.log
    Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libapparmor1 amd64 2.7.102-0ubuntu3.10 [37.3 kB]
    Fetched 2,798 kB in 8s (317 kB/s)
    Selecting previously unselected package libapparmor1.^M
    (Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(Reading database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database ... 65%^M(Reading database ... 70%^M(Reading database ... 75%^M(Reading database ... 80%^M(Reading database ... 85%^M(Reading database ... 90%^M(Reading database ... 95%^M(Reading database ... 100%^M(Reading database ... 58067 files and directories currently installed.)^M
    Unpacking libapparmor1 (from .../libapparmor1_2.7.102-0ubuntu3.10_amd64.deb) ...^M
    Selecting previously unselected package php5-fpm.^M
    Unpacking php5-fpm (from .../php5-fpm_5.6.23+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1_amd64.deb) ...^M
    Processing triggers for man-db ...^M
    Processing triggers for ureadahead ...^M
    Setting up libapparmor1 (2.7.102-0ubuntu3.10) ...^M
    Setting up php5-fpm (5.6.23+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1) ...^M
    ^M
    Creating config file /etc/php5/fpm/php.ini with new version^M
    php5_invoke: Enable module mysqli for fpm SAPI^M
    php5_invoke: Enable module pdo for fpm SAPI^M
    php5_invoke: Enable module pdo_mysql for fpm SAPI^M
    php5_invoke: Enable module json for fpm SAPI^M
    php5_invoke: Enable module opcache for fpm SAPI^M
    php5_invoke: Enable module mysqlnd for fpm SAPI^M
    php5_invoke: Enable module mysql for fpm SAPI^M
    php5_invoke: Enable module mcrypt for fpm SAPI^M
    php5_invoke: Enable module curl for fpm SAPI^M
    php5_invoke: Enable module gd for fpm SAPI^M
    php5-fpm start/running, process 22824^M
    Processing triggers for libc-bin ...^M
    ldconfig deferred processing now taking place^M
    libapache2-mod-php5
    libapache2-mod-php5filter
    Reading package lists...
    Building dependency tree...
    Reading state information...
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     libapache2-mod-php5 : Depends: apache2-api-20120211 but it is not installable
                           Depends: apache2 (>= 2.4)
    E: Unable to correct problems, you have held broken packages.
    
    

  • Moderator

    @lawrence1997 First I have to say I don’t know ubuntu. But it looks like from the error message that Apache 2.4 isn’t available for LTS 12.04. With that said a quick google search found this article.
    http://stackoverflow.com/questions/21390544/installing-apache-2-4-and-php-5-5-on-ubuntu-12-04

    Look at the accepted post. Install apache 2.4 using this method and then rerun the installer. I can’t say if this is a bug in the fog installer or just because LTS 12.04 is old and apache 2.4 is not available from the OS dev team.



  • Can anyone help with this

    Thanks



  • @Developers Can you help with this

    Thanks



  • @Junkhacker Hi i’m running Ubuntu 12.04 LTS

    thanks



  • @Sebastian-Roth Please find attached the last section inside the log file you mentioned

    Thanks

    Creating config file /etc/php5/fpm/php.ini with new version
    php5_invoke: Enable module mcrypt for fpm SAPI
    php5_invoke: Enable module gd for fpm SAPI
    php5_invoke: Enable module mysql for fpm SAPI
    php5_invoke: Enable module curl for fpm SAPI
    php5_invoke: Enable module json for fpm SAPI
    php5_invoke: Enable module pdo for fpm SAPI
    php5_invoke: Enable module mysqli for fpm SAPI
    php5_invoke: Enable module opcache for fpm SAPI
    php5_invoke: Enable module mysqlnd for fpm SAPI
    php5_invoke: Enable module pdo_mysql for fpm SAPI
    php5-fpm start/running, process 4940
    libapache2-mod-php5
    libapache2-mod-php5filter
    Reading package lists...
    Building dependency tree...
    Reading state information...
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies.
     libapache2-mod-php5 : Depends: apache2-api-20120211 but it is not installable
                           Depends: apache2 (>= 2.4)
    E: Unable to correct problems, you have held broken packages.
    

  • Developer

    @lawrence1997 Yes that sounds like it. Please post the last ten or twenty lines of your error_logs/fog_error_7609.log file!



  • @Wayne-Workman I have had a look at the log and just looks like loads of ubuntu updates is this correct?


  • Moderator

    @lawrence1997 We need the error log that Sebastian asked for.



  • @Junkhacker this would be much appreciated if you could :)


  • Developer

    As well take a look at the install error log file in fogproject/bin/error_log/...


  • Developer

    do you have a time machine? version 1.3.0 hasn’t been released yet :P
    but, i can see you’re trying to install trunk version 7609, i can try to help you with that.
    what distro and version of linux are you installing on?


Log in to reply
 

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