Server
- FOG Version: 1.3 RC-14
- OS: Ubuntu 16.04
Description
So I have been working on getting fog installed on the ubuntu 16.04…
obligatory I know I shouldn’t upgrade the os willy nilly because it causes problems most of the time.
never the less I have done it and I am having problems on the install. this is an upgrade, btw it was on 14.04 and the fog version was 1.3 RC-8.
I have read though the other posts pertaining to installing on 16.04 and it appears some people have had mixed results when installing this. Unfortunately, I have not had any luck getting it to work.
I have commented out the packages line in the .fogsettings and deleted the php version info from php-var and php-varadd lines. everything appears to install fine up to the restarting of apache2 which fails.
when checking the status of apache2 after the failed install shows it is failed (result: exit code).
I also checked the fog error log in the /foginstalllocation/bin/error_log(s) folder and this is what is at the end of the log:
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (e.g. server FQDN or YOUR name) []:Email Address []:
Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:An optional company name []:Signature ok
subject=/CN=10.3.1.100
Getting CA Private Key
ln: failed to create symbolic link ‘/var/www/html/fog/fog’: File exists
Enabling module php.
To activate the new configuration, you need to run:
service apache2 restart
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl.
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
To activate the new configuration, you need to run:
service apache2 restart
Enabling site 001-fog.
To activate the new configuration, you need to run:
service apache2 reload
Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -xe” for details.
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Tue 2016-10-18 10:00:50 CDT; 2s ago
Docs: man:systemd-sysv-generator(8)
Process: 20583 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
Oct 18 10:00:50 fog apache2[20583]: *
Oct 18 10:00:50 fog apache2[20583]: * The apache2 configtest failed.
Oct 18 10:00:50 fog apache2[20583]: Output of config test was:
Oct 18 10:00:50 fog apache2[20583]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
Oct 18 10:00:50 fog apache2[20583]: Action ‘configtest’ failed.
Oct 18 10:00:50 fog apache2[20583]: The Apache error log may have more information.
Oct 18 10:00:50 fog systemd[1]: apache2.service: Control process exited, code=exited status=1
Oct 18 10:00:50 fog systemd[1]: Failed to start LSB: Apache2 web server.
Oct 18 10:00:50 fog systemd[1]: apache2.service: Unit entered failed state.
Oct 18 10:00:50 fog systemd[1]: apache2.service: Failed with result ‘exit-code’.
After the failed install apache2 will not restart until i purge and re-install it
I noticed these lines in particular
Oct 18 10:00:50 fog apache2[20583]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
I am guessing some config file for apache is being changed which breaks it.
Thank you ahead of time for your help!
Edit: Here is some more information to maybe help resolve this problem.
when running dpkg -l | grep php this is the output
ii libapache2-mod-php7.0 7.0.12-1+deb.sury.org~xenial+1 i386 server-side, HTML-embedded scripting language (Apache 2 module)
ii php-common 1:45+deb.sury.org~xenial+1 all Common files for PHP packages
ii php-gettext 1.0.11-2+deb.sury.org~xenial+1 all read gettext MO files directly, without requiring anything other than PHP
ii php-pear 1:1.10.1+submodules+notgz-8+donate.sury.org~xenial+2 all PEAR Base System
ii php-xml 1:7.0+45+deb.sury.org~xenial+1 all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii php7.0 7.0.12-1+deb.sury.org~xenial+1 all server-side, HTML-embedded scripting language (metapackage)
ii php7.0-bcmath 7.0.12-1+deb.sury.org~xenial+1 i386 Bcmath module for PHP
ii php7.0-cli 7.0.12-1+deb.sury.org~xenial+1 i386 command-line interpreter for the PHP scripting language
ii php7.0-common 7.0.12-1+deb.sury.org~xenial+1 i386 documentation, examples and common module for PHP
ii php7.0-curl 7.0.12-1+deb.sury.org~xenial+1 i386 CURL module for PHP
ii php7.0-fpm 7.0.12-1+deb.sury.org~xenial+1 i386 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php7.0-gd 7.0.12-1+deb.sury.org~xenial+1 i386 GD module for PHP
ii php7.0-json 7.0.12-1+deb.sury.org~xenial+1 i386 JSON module for PHP
ii php7.0-ldap 7.0.12-1+deb.sury.org~xenial+1 i386 LDAP module for PHP
ii php7.0-mbstring 7.0.12-1+deb.sury.org~xenial+1 i386 MBSTRING module for PHP
ii php7.0-mcrypt 7.0.12-1+deb.sury.org~xenial+1 i386 libmcrypt module for PHP
ii php7.0-mysql 7.0.12-1+deb.sury.org~xenial+1 i386 MySQL module for PHP
ii php7.0-opcache 7.0.12-1+deb.sury.org~xenial+1 i386 Zend OpCache module for PHP
ii php7.0-readline 7.0.12-1+deb.sury.org~xenial+1 i386 readline module for PHP
ii php7.0-xml 7.0.12-1+deb.sury.org~xenial+1 i386 DOM, SimpleXML, WDDX, XML, and XSL module for PHP