Upgrade Woes - Latest SVN
-
Just for your viewing pleasure
+------------------------------------------+ | ..#######:. ..,#,.. .::##::. | |.:###### .:;####:......;#;.. | |...##... ...##;,;##::::.##... | | ,# ...##.....##:::## ..:: | | ## .::###,,##. . ##.::#.:######::.| |...##:::###::....#. .. .#...#. #...#:::. | |..:####:.. ..##......##::## .. # | | # . ...##:,;##;:::#: ... ##.. | | .# . .:;####;::::.##:::;#:.. | | # ..:;###.. | | | +------------------------------------------+ | Free Computer Imaging Solution | +------------------------------------------+ | Credits: http://fogproject.org/Credits | | http://fogproject.org/Credits | | Released under GPL Version 3 | +------------------------------------------+ Version: 1.3.0-RC-30 Installer/Updater * Found FOG Settings from previous install at: /opt/fog/.fogsettings * Performing upgrade using these settings Starting Debian based Installation *** Detected a potential need to reinstall apache and php files. *** This will remove the /etc/php* and /etc/apache2* directories *** and remove/purge the apache and php files from this system. *** If you're okay with this please type Y, anything else will *** break the installation and you will have to remove the files yourself *** and make proper changes as necessary. (Y/N): Y * Removing apache and php files...............................Done * Stopping web services.......................................Failed * Removing the apache and php packages........................Done * Resetting our variables to specify php version 7.1..........Done ###################################################################### # 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: 10.1.0.134 * Server Subnet Mask: 255.255.0.0 * Interface: eth0 * Installation Type: Normal Server * Donate: 0 * Internationalization: * 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. 10.1.0.134) * 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 bc build-essential cpp curl g++ gawk gcc gzip htmldoc lftp libapache2-mod-php7.1 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.1 php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-ldap php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa vsftpd wget xinetd zlib1g * Installing package: apache2.................................OK * Skipping package: bc........................................(Already Installed) * Skipping package: build-essential...........................(Already Installed) * Skipping package: cpp.......................................(Already Installed) * Skipping package: curl......................................(Already Installed) * Skipping package: g++.......................................(Already Installed) * Skipping package: gawk......................................(Already Installed) * Skipping package: gcc.......................................(Already Installed) * Skipping package: gzip......................................(Already Installed) * Skipping package: htmldoc...................................(Already Installed) * Skipping package: lftp......................................(Already Installed) * Installing package: libapache2-mod-php7.1...................OK * Skipping package: libc6.....................................(Already Installed) * Skipping package: libcurl3..................................(Already Installed) * Skipping package: m4........................................(Already Installed) * Skipping package: mysql-client..............................(Already Installed) * Skipping package: mysql-server..............................(Already Installed) * Skipping package: net-tools.................................(Already Installed) * Skipping package: nfs-kernel-server.........................(Already Installed) * Skipping package: openssh-server............................(Already Installed) * Installing package: php7.1..................................OK * Installing package: php7.1-bcmath...........................OK * Skipping package: php7.1-cli................................(Already Installed) * Installing package: php7.1-curl.............................OK * Installing package: php7.1-fpm..............................OK * Installing package: php7.1-gd...............................OK * Skipping package: php7.1-json...............................(Already Installed) * Installing package: php7.1-ldap.............................OK * Installing package: php7.1-mbstring.........................OK * Installing package: php7.1-mcrypt...........................OK * Installing package: php7.1-mysql............................OK * Skipping package: php7.1-mysql..............................(Already Installed) * Installing package: php-gettext.............................Failed!
-
@Arsenal101 What happens if you try:
apt-get install php-gettext
-
I get the same libmodapache dependency error, I was able to clear up the dependency errors at one point but I think the installer goes through and removes the PHP and apache packages when it install and breaks it again
-
@Arsenal101 Can you try:
apt-get purge -fyq libapache2-mod-php*
-
Sure, After I ran that I was able to install php-gettext no troubles
-
is there anyways that the installer will skip the php and apache packages if they are already installed? I noticed it removes them as one of the first steps
-
@Arsenal101 Now add:
php_ver="7.1" php_verAdds="-7.1" packages="apache2 bc build-essential cpp curl g++ gawk gcc gzip htmldoc lftp libapache2-mod-php7.1 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.1 php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-ldap php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa vsftpd wget xinetd zlib1g"
To your /opt/fog/.fogsettings file please.
-
@Arsenal101 It only removes them if the php_ver/php_verAdds variables are not specified (which was what I was trying to get to happen when I asked you to remove those items earlier)
-
Gotcha, I did notice it said “setting variables for php” or something along those lines.
-
Making Progress! got all the way to backing up database and then it failed…
-
@Arsenal101 WHat’s the apache error logs show?
-
I don’t see any thing in there… I see the access.log and error.log but when I pico into them or Tail they don’t show anythting
-
I noticed this on install…
* Setting up and starting MySQL...............................grep: /etc/rc5.d/S20nfs-server: No such file or directory grep: /etc/rc2.d/S20nfs-server: No such file or directory grep: /etc/rc3.d/S20nfs-server: No such file or directory grep: /etc/blkid.tab: No such file or directory grep: /etc/rc4.d/S20nfs-server: No such file or directory grep: /etc/rc5.d/S20nfs-server: No such file or directory grep: /etc/rc2.d/S20nfs-server: No such file or directory grep: /etc/rc3.d/S20nfs-server: No such file or directory grep: /etc/blkid.tab: No such file or directory grep: /etc/rc4.d/S20nfs-server: No such file or directory OK
Think its anything?
-
mysql username and password are good to go, I can connect separately. Nothing in apache error logs. I’m stuck again.
I searched around again and went though all the other posts I could find, again none of them seem to apply to me.
-
I can do a manual dump with mysqldump -u root -p fog > /home/fogdump.sql
-
Do you have a mysql password for the root user?
-
Nope root user and blank password
-
mysql -h localhost -D fog
If this lets you in, just typequit
mysql -h 127.0.0.1 -D fog
if this lets you in, just typequit
Do either of these commands give any errors at all?
-
Nope no errors, lets me right in both times
-
So I am not really sure what I did, it was some combination of commands but it let me install it just fine… I’ll take it.
This can be marked as solved I guess!