Job for httpd.service failed because the control process exited with error code. See 
"systemctl status httpd.service" and "journalctl -xe" for details.
[root@mail conf]# nano +8 /etc/httpd/conf/squirrelmail.conf
[root@mail conf]# cat /etc/httpd/conf/squirrelmail.conf
<Directory "/usr/share/squirrelmail">
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*/webmail*)$ https://%{SERVER_NAME}$1 [L,R]
allow from all
Options
SSLRequireSSL
ErrorDocument 403 "https://mail.davomail.com/webmail/";;
</Directory>

===After last re-install and going straight to smail mod, error listed by 
=======================================================>"systemctl status 
httpd.service"
[root@mail conf]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: 
disabled)
Active: failed (Result: exit-code) since Wed 2016-11-30 01:17:13 UTC; 6min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 6549 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, 
status=1/FAILURE)
Process: 6547 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, 
status=1/FAILURE)
Main PID: 6547 (code=exited, status=1/FAILURE)

Nov 30 01:17:13 mail.davomail.com systemd[1]: Starting The Apache HTTP Server...
Nov 30 01:17:13 mail.davomail.com httpd[6547]: AH00526: Syntax error on line 8 
of /etc/httpd/conf/squirrelmail.conf:
Nov 30 01:17:13 mail.davomail.com httpd[6547]: ErrorDocument takes two 
arguments, Change responses for HTTP errors
Nov 30 01:17:13 mail.davomail.com systemd[1]: httpd.service: main process 
exited, code=exited, status=1/FAILURE
Nov 30 01:17:13 mail.davomail.com kill[6549]: kill: cannot find process ""
Nov 30 01:17:13 mail.davomail.com systemd[1]: httpd.service: control process 
exited, code=exited status=1
Nov 30 01:17:13 mail.davomail.com systemd[1]: Failed to start The Apache HTTP 
Server.
Nov 30 01:17:13 mail.davomail.com systemd[1]: Unit httpd.service entered failed 
state.
Nov 30 01:17:13 mail.davomail.com systemd[1]: httpd.service failed.
=============>"journalctl -xe"<================================================
[root@mail conf]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: 
disabled)
Active: failed (Result: exit-code) since Wed 2016-11-30 01:17:13 UTC; 6min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 6549 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, 
status=1/FAILURE)
Process: 6547 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, 
status=1/FAILURE)
Main PID: 6547 (code=exited, status=1/FAILURE)

Nov 30 01:17:13 mail.davomail.com systemd[1]: Starting The Apache HTTP Server...
Nov 30 01:17:13 mail.davomail.com httpd[6547]: AH00526: Syntax error on line 8 
of /etc/httpd/conf/squirrelmail.conf:
Nov 30 01:17:13 mail.davomail.com httpd[6547]: ErrorDocument takes two 
arguments, Change responses for HTTP errors
Nov 30 01:17:13 mail.davomail.com systemd[1]: httpd.service: main process 
exited, code=exited, status=1/FAILURE
Nov 30 01:17:13 mail.davomail.com kill[6549]: kill: cannot find process ""
Nov 30 01:17:13 mail.davomail.com systemd[1]: httpd.service: control process 
exited, code=exited status=1
Nov 30 01:17:13 mail.davomail.com systemd[1]: Failed to start The Apache HTTP 
Server.
Nov 30 01:17:13 mail.davomail.com systemd[1]: Unit httpd.service entered failed 
state.
Nov 30 01:17:13 mail.davomail.com systemd[1]: httpd.service failed.
[root@mail conf]# [root@mail conf]# systemctl status httpd.service
-bash: [root@mail: command not found
[root@mail conf]# ● httpd.service - The Apache HTTP Server
-bash: $'\342\227\217': command not found
[root@mail conf]# Loaded: loaded (/usr/lib/systemd/system/httpd.service; 
enabled; vendor preset: disabled)
-bash: syntax error near unexpected token `('
[root@mail conf]# Active: failed (Result: exit-code) since Wed 2016-11-30 
01:17:13 UTC; 6min ago
-bash: syntax error near unexpected token `('
[root@mail conf]# Docs: man:httpd(8)
-bash: syntax error near unexpected token `('
[root@mail conf]# man:apachectl(8)
-bash: syntax error near unexpected token `8'
[root@mail conf]# Process: 6549 ExecStop=/bin/kill -WINCH ${MAINPID} 
(code=exited, status=1/FAILURE)
-bash: syntax error near unexpected token `('
[root@mail conf]# Process: 6547 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND 
(code=exited, status=1/FAILURE)
-bash: syntax error near unexpected token `('
[root@mail conf]# Main PID: 6547 (code=exited, status=1/FAILURE)
-bash: syntax error near unexpected token `('
[root@mail conf]# [root@mail conf]# Nov 30 01:17:13 mail.davomail.com systemd[1]: Starting The Apache HTTP Server...
-bash: Nov: command not found
[root@mail conf]# Nov 30 01:17:13 mail.davomail.com httpd[6547]: AH00526: 
Syntax error on line 8 of /etc/httpd/conf/squirrelmail.conf:
-bash: Nov: command not found
[root@mail conf]# Nov 30 01:17:13 mail.davomail.com httpd[6547]: ErrorDocument 
takes two arguments, Change responses for HTTP errors
-bash: Nov: command not found
[root@mail conf]# Nov 30 01:17:13 mail.davomail.com systemd[1]: httpd.service: 
main process exited, code=exited, status=1/FAILURE
-bash: Nov: command not found
[root@mail conf]# Nov 30 01:17:13 mail.davomail.com kill[6549]: kill: cannot find process 
""
-bash: Nov: command not found
[root@mail conf]# Nov 30 01:17:13 mail.davomail.com systemd[1]: httpd.service: 
control process exited, code=exited status=1
-bash: Nov: command not found
[root@mail conf]# Nov 30 01:17:13 mail.davomail.com systemd[1]: Failed to start 
The Apache HTTP Server.
-bash: Nov: command not found
[root@mail conf]# Nov 30 01:17:13 mail.davomail.com systemd[1]: Unit 
httpd.service entered failed state.
-bash: Nov: command not found
[root@mail conf]# Nov 30 01:17:13 mail.davomail.com systemd[1]: httpd.service 
failed.
-bash: Nov: command not found
[root@mail conf]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See 
"systemctl status httpd.service" and "journalctl -xe" for details.
[root@mail conf]# journalctl -xe
Nov 30 01:25:38 mail.davomail.com systemd[1]: Unit httpd.service entered failed 
state.
Nov 30 01:25:38 mail.davomail.com systemd[1]: httpd.service failed.
Nov 30 01:25:38 mail.davomail.com polkitd[2662]: Unregistered Authentication 
Agent for unix-process:4971:229238 (system bus name :1.106,
Nov 30 01:25:45 mail.davomail.com sshd[4996]: pam_unix(sshd:auth): 
authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=11
Nov 30 01:25:45 mail.davomail.com sshd[4996]: pam_succeed_if(sshd:auth): requirement "uid >= 
1000" not met by user "root"
Nov 30 01:25:48 mail.davomail.com sshd[4996]: Failed password for root from 
116.31.116.4 port 57608 ssh2
Nov 30 01:25:48 mail.davomail.com sshd[4996]: pam_succeed_if(sshd:auth): requirement "uid >= 
1000" not met by user "root"
Nov 30 01:25:49 mail.davomail.com sshd[4996]: Failed password for root from 
116.31.116.4 port 57608 ssh2
Nov 30 01:25:50 mail.davomail.com sshd[4996]: pam_succeed_if(sshd:auth): requirement "uid >= 
1000" not met by user "root"
Nov 30 01:25:51 mail.davomail.com sshd[4996]: Failed password for root from 
116.31.116.4 port 57608 ssh2
Nov 30 01:25:51 mail.davomail.com sshd[4996]: Received disconnect from 
116.31.116.4: 11: [preauth]
Nov 30 01:25:51 mail.davomail.com sshd[4996]: PAM 2 more authentication 
failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.
Nov 30 01:26:38 mail.davomail.com clamd[3310]: SelfCheck: Database status OK.
Nov 30 01:26:38 mail.davomail.com clamd[3310]: SelfCheck: Database status OK.
Nov 30 01:26:40 mail.davomail.com sshd[5000]: pam_unix(sshd:auth): 
authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=11
Nov 30 01:26:40 mail.davomail.com sshd[5000]: pam_succeed_if(sshd:auth): requirement "uid >= 
1000" not met by user "root"
Nov 30 01:26:42 mail.davomail.com sshd[5000]: Failed password for root from 
116.31.116.4 port 17002 ssh2
Nov 30 01:26:42 mail.davomail.com sshd[5000]: pam_succeed_if(sshd:auth): requirement "uid >= 
1000" not met by user "root"
Nov 30 01:26:44 mail.davomail.com sshd[5000]: Failed password for root from 
116.31.116.4 port 17002 ssh2
Nov 30 01:26:44 mail.davomail.com sshd[5000]: pam_succeed_if(sshd:auth): requirement "uid >= 
1000" not met by user "root"
Nov 30 01:26:46 mail.davomail.com sshd[5000]: Failed password for root from 
116.31.116.4 port 17002 ssh2
Nov 30 01:26:46 mail.davomail.com sshd[5000]: Received disconnect from 
116.31.116.4: 11: [preauth]
Nov 30 01:26:46 mail.davomail.com sshd[5000]: PAM 2 more authentication 
failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.


===================================>"access_log"
[root@mail httpd]# cat access_log ::1 - - [30/Nov/2016:01:14:18 +0000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16 (internal dummy connection)"

=============================================|
network is still not running.

On Nov 29, 2016, at 05:09 PM, Eric Broch <[email protected]> wrote:

Is your network up and running?
Please dump squirrelmail.conf and post on list.
What log is it that you've put here? /var/log/maillog?

On 11/29/2016 9:58 AM, David Overman wrote:
sorry, forgot to post output last post; here goes


[root@mail conf]# systemctl status network
● network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network)
Active: active (exited) since Tue 2016-11-29 16:35:44 UTC; 15min ago
Docs: man:systemd-sysv-generator(8)

also, tried restarting apache2 after modifying squirrellmail.conf-again. Do not 
see the ns error, but PAM authentication failures.
- Unit session-3.scope has begun starting up.
Nov 29 16:45:01 mail.davomail.com CROND[3019]: (root) CMD (env LANG=C 
/usr/bin/mrtg



/usr/share/toaster/mrtg/qmailmrtg.cfg > /dev/
Nov 29 16:45:05 mail.davomail.com vpopmail[3170]: vchkpw-smtp: vpopmail user 
not found customers@:119.235.53.75
Nov 29 16:45:14 mail.davomail.com vpopmail[3175]: vchkpw-smtp: vpopmail user 
not found postmaster@:119.235.53.75
Nov 29 16:45:15 mail.davomail.com sshd[3173]: pam_unix(sshd:auth): 
authentication failure; logname= uid=0 euid=0 tty=ssh ruser= r
Nov 29 16:45:15 mail.davomail.com sshd[3173]: pam_succeed_if(sshd:auth): requirement "uid >= 
1000" not met by user "root"
Nov 29 16:45:17 mail.davomail.com sshd[3173]: Failed password for root from 
116.31.116.4 port 44382 ssh2
Nov 29 16:45:18 mail.davomail.com sshd[3173]: pam_succeed_if(sshd:auth): requirement "uid >= 
1000" not met by user "root"
Nov 29 16:45:19 mail.davomail.com sshd[3173]: Failed password for root from 
116.31.116.4 port 44382 ssh2
Nov 29 16:45:20 mail.davomail.com sshd[3173]: pam_succeed_if(sshd:auth): requirement "uid >= 
1000" not met by user "root"
Nov 29 16:45:21 mail.davomail.com sshd[3173]: Failed password for root from 
116.31.116.4 port 44382 ssh2
Nov 29 16:45:22 mail.davomail.com sshd[3173]: Received disconnect from 
116.31.116.4: 11: [preauth]
Nov 29 16:45:22 mail.davomail.com sshd[3173]: PAM 2 more authentication 
failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.
Nov 29 16:45:22 mail.davomail.com vpopmail[3180]: vchkpw-smtp: vpopmail user 
not found tomcat@:119.235.53.75
Nov 29 16:45:31 mail.davomail.com vpopmail[3184]: vchkpw-smtp: vpopmail user 
not found alex@:119.235.53.75
Nov 29 16:45:39 mail.davomail.com vpopmail[3187]: vchkpw-smtp: vpopmail user 
not found student@:119.235.53.75
Nov 29 16:45:47 mail.davomail.com vpopmail[3190]: vchkpw-smtp: vpopmail user 
not found www@:119.235.53.75
Nov 29 16:45:55 mail.davomail.com clamd[490]: SelfCheck: Database status OK.
Nov 29 16:45:55 mail.davomail.com clamd[490]: SelfCheck: Database status OK.
Nov 29 16:45:56 mail.davomail.com vpopmail[3195]: vchkpw-smtp: vpopmail user 
not found administrator@:119.235.53.75
Nov 29 16:45:




On Nov 29, 2016, at 10:45 AM, Jaime Lerner <[email protected]> wrote:

I was just mentioning it because David kept pointing to that as an error and 
thinking it was the issue as to why qmail wasn't working. It's definitely not 
an issue on my server. Perhaps that's how it is set up for Digital Ocean 
servers running CentOS 7...not sure. 

He can run 'systemctl status network' to see that his network service is 
running fine. (Mine shows it's using /etc/rc.d/init.d/network, and his may say 
the same)

From: Eric Broch <[email protected]>
Reply-To: <[email protected]>
Date: Tuesday, November 29, 2016 at 10:59 AM
To: <[email protected]>
Subject: Re: [qmailtoaster] error after changing squirrelmail conf new-install

I'm not sure what to tell you to get network management started. It always seems to work on my boxes, vm's included. Maybe I'm taking something for granted. When I configure my network settings on clean install sometimes I leave network settings alone (dhcp), install qmailtoaster, then run qmt_host.sh. Other times I set the hostname and ipv4 ip, gateway, and dns (on fresh install) and run qmt_host.sh to change everything. I've never had a problem with network manager (something I need to investigate now). So the way around this (for now) is to edit the ifcfg-'device' file manually, something I hate to do.
On 11/29/2016 8:48 AM, Jaime Lerner wrote:
Just as an FYI, if I run the command 'nmtui' on my server I get the same response 
"NetworkManager is not running".  Just in case you're thinking that's an 
issue...it's obviously not.

From: Eric Broch <[email protected]>
Reply-To: <[email protected]>
Date: Tuesday, November 29, 2016 at 10:45 AM
To: <[email protected]>
Subject: Re: [qmailtoaster] error after changing squirrelmail conf new-install

And,
What are these settings: IPADDR2=10.13.0.5
PREFIX2=16
If you don't need them remove.

On 11/29/2016 8:34 AM, Eric Broch wrote:
Do below and remove ifcfg-enp0s3

On 11/29/2016 8:32 AM, Eric Broch wrote:
Here's what I would do
# cp -p  /etc/sysconfig/network-scripts/ifcfg-eth0    /root/'somewhere'
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
erase all settings, paste below into the file and save
# systemctl restart network
DEVICE='eth0'
TYPE=Ethernet
BOOTPROTO=none
ONBOOT='yes'
HWADDR=62:ed:ca:6d:25:73
IPADDR=162.243.70.109
NETMASK=255.255.255.0
GATEWAY=162.243.70.1
IPADDR2=10.13.0.5
PREFIX2=16
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
DNS1=8.8.8.8
DNS2=8.8.4.4
# vi /etc/resolv.conf
clear all ipv6 nameserver settings
add: nameserver 8.8.8.8
nameserver 8.8.4.4


On 11/29/2016 7:48 AM, David Overman wrote:
Ok,
I tried the script with my ip for ip4 address and 8.8.8.8 and 8.8.4.4
and with my actual ip and hostname.

Still getting Error: NetworkManager is not running.

[root@mail ~]# sh qmt-host.sh

Call this script as follows (example below):
qmt-host.sh hostname ipv4.address ipv4.gateway
qmt-host.sh me.mydomain.com 192.168.0.2 192.168.0.1

Machine ID: f4d13c7c7b144261851b451e00bb999b
Boot ID: a73c2022069042cf8d8e58ca859c787e
Virtualization: kvm
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-327.36.3.el7.x86_64
Architecture: x86-64
Error: NetworkManager is not running.


On Nov 29, 2016, at 08:26 AM, Eric Broch <[email protected]> wrote:

Try running this: 
https://raw.githubusercontent.com/qmtoaster/scripts/master/qmt_host.sh
Or
Take a look here:
http://ask.xmodulo.com/configure-static-ip-address-centos7.html
You must get rid of the IPv6 name servers



On 11/29/2016 4:37 AM, David Overman wrote:
[root@mail ~]# systemctl start network
[root@mail ~]# nmtui
NetworkManager is not running.


Do you think this may have something to do with my Centos Instance running on A 
digitalocean droplet?

On Nov 28, 2016, at 07:37 AM, Eric Broch <[email protected]> wrote:

# systemctl start network


On 11/28/2016 12:16 AM, David Overman wrote:
Failed to start NetworkManager.service: Unit NetworkManager.service is
masked


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]







Reply via email to