• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    7
    17
    7.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sebastian Roth Moderator
      last edited by

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

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      L 1 Reply Last reply Reply Quote 1
      • L
        lawrence1997 @Sebastian Roth
        last edited by

        @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.
        
        L Q 3 Replies Last reply Reply Quote 0
        • L
          lawrence1997 @Junkhacker
          last edited by

          @Junkhacker Hi i’m running Ubuntu 12.04 LTS

          thanks

          1 Reply Last reply Reply Quote 0
          • L
            lawrence1997 @lawrence1997
            last edited by lawrence1997

            @Developers Can you help with this

            Thanks

            1 Reply Last reply Reply Quote 0
            • L
              lawrence1997 @lawrence1997
              last edited by

              Can anyone help with this

              Thanks

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @lawrence1997
                last edited by

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

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                L 1 Reply Last reply Reply Quote 3
                • Z
                  zackchin
                  last edited by

                  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.
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @zackchin Google is your friend (like with most error message): http://www.justincarmony.com/blog/2013/07/31/ubuntu-12-04-php-5-4-apache2-and-ppaondrejphp5/

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    1 Reply Last reply Reply Quote 1
                    • Q
                      Quazz Moderator @lawrence1997
                      last edited by

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

                      1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman
                        last edited by

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

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        1 Reply Last reply Reply Quote 1
                        • L
                          lawrence1997 @george1421
                          last edited by

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

                          Thanks

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post

                          196

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project