Web Service Can't Stop The Web Service
-
The following packages were automatically installed and are no longer required:
libmcrypt4 libonig2 libqdbm14
Use ‘apt-get autoremove’ to remove them.
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
ii apache2 2.4.12-2ubuntu2.1 amd64 Apache HTTP Server
ii bc 1.06.95-9build1 amd64 GNU bc arbitrary precision calculator language
ii build-essential 12.1ubuntu2 amd64 Informational list of build-essential packages
ii cpp 4:5.2.1-3ubuntu1 amd64 GNU C preprocessor (cpp)
ii curl 7.43.0-1ubuntu2.1 amd64 command line tool for transferring data with URL syntax
ii g++ 4:5.2.1-3ubuntu1 amd64 GNU C++ compiler
ii gawk 1:4.1.1+dfsg-1 amd64 GNU awk, a pattern scanning and processing language
ii gcc 4:5.2.1-3ubuntu1 amd64 GNU C compiler
ii gzip 1.6-4ubuntu1 amd64 GNU compression utilities
ii htmldoc 1.8.27-8ubuntu1 amd64 HTML processor that generates indexed HTML, PS, and PDF
ii lftp 4.6.3a-1 amd64 Sophisticated command-line FTP/HTTP/BitTorrent client programs
ii libc6:amd64 2.21-0ubuntu4.3 amd64 GNU C Library: Shared libraries
ii libcurl3:amd64 7.43.0-1ubuntu2.1 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour)
ii m4 1.4.17-4 amd64 macro processing language
ii mysql-client 5.6.31-0ubuntu0.15.10.1 all MySQL database client (metapackage depending on the latest version)
ii mysql-server 5.6.31-0ubuntu0.15.10.1 all MySQL database server (metapackage depending on the latest version)
ii net-tools 1.60-26ubuntu1 amd64 NET-3 networking toolkit
ii nfs-kernel-server 1:1.2.8-9ubuntu10 amd64 support for NFS kernel server
ii openssh-server 1:6.9p1-2ubuntu0.2 amd64 secure shell (SSH) server, for secure access from remote machines
ii php-gettext 1.0.11-1 all read gettext MO files directly, without requiring anything other than PHP
ii sysv-rc-conf 0.99-7 all SysV init runlevel configuration tool for the terminal
ii tar 1.27.1-2 amd64 GNU version of the tar archiving utility
ii tftpd-hpa 5.2+20140608-3ubuntu1 amd64 HPA’s tftp server
ii tftp-hpa 5.2+20140608-3ubuntu1 amd64 HPA’s tftp client
ii unzip 6.0-17ubuntu1.2 amd64 De-archiver for .zip files
ii vsftpd 3.0.2-20ubuntu1 amd64 lightweight, efficient FTP server written for security
ii wget 1.16.1-1ubuntu1.1 amd64 retrieves files from the web
ii xinetd 1:2.3.15-4 amd64 replacement for inetd with many enhancements
ii zlib1g:amd64 1:1.2.8.dfsg-2ubuntu4 amd64 compression library - runtime
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
Failed to stop FOGSnapinHash.service: Unit FOGSnapinHash.service not loaded.
Synchronizing state of mysql.service with SysV init with /lib/systemd/systemd-sysv-install…
Executing /lib/systemd/systemd-sysv-install enable mysql
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2016-12-27 14:40:43 CST; 2s ago
Process: 21910 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS)
Process: 21906 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 21909 (mysqld_safe)
CGroup: /system.slice/mysql.service
├─21909 /bin/sh /usr/bin/mysqld_safe
└─22243 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --log-error=/var/log/mysql/error.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306Dec 27 14:40:42 it-PowerEdge-2950 systemd[1]: Starting MySQL Community Server…
Dec 27 14:40:42 it-PowerEdge-2950 mysqld_safe[21909]: 161227 14:40:42 mysqld_safe Can’t log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect.
Dec 27 14:40:42 it-PowerEdge-2950 mysqld_safe[21909]: 161227 14:40:42 mysqld_safe Logging to ‘/var/log/mysql/error.log’.
Dec 27 14:40:42 it-PowerEdge-2950 mysqld_safe[21909]: 161227 14:40:42 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Dec 27 14:40:43 it-PowerEdge-2950 systemd[1]: Started MySQL Community Server.
Failed to stop php7.1-fpm.service: Unit php7.1-fpm.service not loaded. -
@tom.langenfeld Ultimately the last few lines (maybe 100 or so) is important
-
Does the previous post go back into the log far enough? they are the lines from the end of the log
-
@tom.langenfeld Give me a few. I will likely need to remote in to see what’s going on if that’s okay with you.
-
Of course just let me know how I can help
-
Remote will likely need to happen later today if at all possible. I’m on East coast US time. (I’ll be home around 4:30pm here). Then I will hit you up on chat if all is okay with you.
Thanks for understanding.
-
Sounds good just chat me with a time that works for you and I am flexible
-
This is going to be overly simplistic of a test, but you could try running:
./installfog.sh -Xy
-
This is from a similar thread.
@Tom-Elliott said in Restarting apache2 for fog vhost...failed! Can't update:
@moses can you manually uninstall all php files?
sudo apt-get purge -yq php* lib*php*; sudo rm -rf /etc/php*;
Then rerun the fog installer?
Also check your
/opt/fog/.fogsettings
file forphp_ver
andphp_verAdds
and if you find lines beginning with this, just comment them out. This could be part of the issue.Then after those two things, try re-running the installer.
-
Running the ./install -Xy yielded the same results
-
When trying to run the first command I get this message.
-
Remoted with @tom-langenfeld and we were able to fix the issue.
He was running Ubuntu 15.10, and the Ondrej repo would install, but there were no PHP packages for wily apparently. Updated to 16.04 and had to run a few tricks to get mysql working, but once all was working, everything appears to be running properly now.