• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.
  • L
    lawrence1997
    last edited by lawrence1997 May 13, 2016, 9:44 AM May 13, 2016, 3:44 PM

    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!
    
    1 Reply Last reply Reply Quote 0
    • J
      Junkhacker Developer
      last edited by May 13, 2016, 4:22 PM

      do you have a time machine? version 1.3.0 hasn’t been released yet 😛
      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?

      signature:
      Junkhacker
      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

      L 2 Replies Last reply May 14, 2016, 1:31 AM Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by May 13, 2016, 9:39 PM

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

        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
        • L
          lawrence1997 @Junkhacker
          last edited by May 14, 2016, 1:31 AM

          @Junkhacker this would be much appreciated if you could 🙂

          W 1 Reply Last reply May 14, 2016, 5:20 AM Reply Quote 0
          • W
            Wayne Workman @lawrence1997
            last edited by May 14, 2016, 5:20 AM

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

            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/

            L 1 Reply Last reply May 14, 2016, 9:38 AM Reply Quote 0
            • L
              lawrence1997 @Wayne Workman
              last edited by May 14, 2016, 9:38 AM

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

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by May 14, 2016, 9:57 AM

                @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 May 16, 2016, 8:25 AM Reply Quote 1
                • L
                  lawrence1997 @Sebastian Roth
                  last edited by May 16, 2016, 8:25 AM

                  @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 May 16, 2016, 12:23 PM Reply Quote 0
                  • L
                    lawrence1997 @Junkhacker
                    last edited by May 16, 2016, 9:08 AM

                    @Junkhacker Hi i’m running Ubuntu 12.04 LTS

                    thanks

                    1 Reply Last reply Reply Quote 0
                    • L
                      lawrence1997 @lawrence1997
                      last edited by lawrence1997 May 16, 2016, 6:29 AM May 16, 2016, 12:23 PM

                      @Developers Can you help with this

                      Thanks

                      1 Reply Last reply Reply Quote 0
                      • L
                        lawrence1997 @lawrence1997
                        last edited by May 16, 2016, 12:27 PM

                        Can anyone help with this

                        Thanks

                        george1421G 1 Reply Last reply May 16, 2016, 12:50 PM Reply Quote 0
                        • george1421G
                          george1421 Moderator @lawrence1997
                          last edited by May 16, 2016, 12:50 PM

                          @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 Jul 11, 2016, 3:18 PM Reply Quote 3
                          • Z
                            zackchin
                            last edited by Jun 30, 2016, 3:02 AM

                            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 Jun 30, 2016, 12:12 PM

                              @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 Jun 30, 2016, 1:26 PM

                                @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
                                • W
                                  Wayne Workman
                                  last edited by Jul 1, 2016, 3:09 AM

                                  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 Jul 11, 2016, 3:18 PM

                                    @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

                                    205

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project