Update Fails on php7.0-*
-
I’m having an issue with the most recent svn. It keeps failing on Installing package: php7.0-*libapache2-mod-php7.0.
Ubuntu 14.04
* Adding needed repository....................................Waiting Attempting to fix Ubuntu php/apache issues * Running autoremove to clean up apt..........................OK * Removing php files..........................................OK * Removing ondrej sources from apt............................OK * Uninstalling php5 files.....................................OK * Cleaning up apt.............................................OK * Adding needed repository....................................OK * Preparing Package Manager...................................OK * Packages to be installed: apache2 php7.0 php7.0-*libapache2-mod-php7.0 * Skipping package: apache2...................................(Already Installed) * Installing package: php7.0..................................OK * Installing package: php7.0-*libapache2-mod-php7.0...........Failed! root@fog:~/svn/trunk/bin#
-
What does it say when you try to manually install the libapache for php7?
-
@scottb did you edit these files yourself?
-
-
Did the lines in /opt/fog/.fogsettings get edited to use php7? I don’t set things to php7.
-
@Tom-Elliott said:
Did the lines in /opt/fog/.fogsettings get edited to use php7? I don’t set things to php7.
in .fogsettings I see this line.
packages=" apache2 php7.0 php7.0-*libapache2-mod-php7.0";
-
@Scott-B do you know who did edit this?
Especially considering the .fogsettings is now saying it only installs three files, and really I believe it’s supposed to be 4 files, but they made a typo in this file.
packages=" apache2 php7.0 php7.0-* libapache2-mod-php7.0";
I imagine is what is supposed to be there, but really that shouldn’t be their either. None of the installer files are using php7 formatted files, they’re all (unfortunately) still trying to use php5 formatted binary runs. (php5enmod vs. php7enmod) That much more reasoning that I hate ubuntu, and I suppose debian for assuming php5 was all there was going to be.
-
I was able to get PHP7 installed, but now the install fails setting up apache and php. Looking for PHP5, which wouldn’t the install have just removed?
* Updating packages as needed.................................OK Confirming package installation. * Checking package: apache2...................................OK * Checking package: php7.0....................................OK * Checking package: php7.0-*..................................OK * Checking package: libapache2-mod-php7.0.....................OK Configuring services. * Stopping FOGMulticastManager Service........................OK * Stopping FOGImageReplicator Service.........................OK * Stopping FOGSnapinReplicator Service........................OK * Stopping FOGScheduler Service...............................OK * Stopping FOGPingHosts Service...............................OK * Setting up and starting MySQL...............................OK * Backing up user reports.....................................OK * Stopping web service........................................OK * Setting up Apache and PHP files.............................Failed ########################################### # # # PHP Failed to install properly # # # ########################################### !!!!! Could not find /etc/php5/apache2/php.ini !!!!!
-
@Scott-B do you see why?
It’s trying to edit the file /etc/php5/apache2/php.ini which would, in your case, be now /etc/php7/apache2/php.ini (assuming ubuntu is following the same pattern)
-
@Tom-Elliott said:
@Scott-B do you see why?
It’s trying to edit the file /etc/php5/apache2/php.ini which would, in your case, be now /etc/php7/apache2/php.ini (assuming ubuntu is following the same
I see what its doing, but I don’t understand why. The installed just removed php5, installed php7, so why is it looking for php5?
-
@Scott-B What I’m saying, somebody edited something in the code.
I’m not enforcing any PHP 7 anywhere.
Edit the /opt/fog/.fogsettings file and remove the packages line. Then try re-installing. Maybe it’ll work better?