Sponsored Content
Operating Systems Linux Red Hat Apache service not coming up after restart Post 302987269 by anaigini45 on Wednesday 7th of December 2016 09:59:18 PM
Old 12-07-2016
Apache service not coming up after restart

When I update the server with new SSL certificates, and restart httpd, I get errors :

Code:
[root@umedealer conf]# service httpd restart
Stopping httpd:                                            [FAILED]
rm: cannot remove `/usr/local/apache2/bin/httpd/logs/httpd.pid': Not a directory
Starting httpd:                                            [FAILED]


[root@umedealer conf]# /usr/bin/apachectl -f /usr/local/apache2/conf/extra/httpd-ssl.conf
AH00526: Syntax error on line 48 of /usr/local/apache2/conf/extra/httpd-ssl.conf:
Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in the server configuration
[root@umedealer conf]#

This is a customised installation. The SSLCertificateFile, Key File & Chain File are all put in the directory called "/app/UmobileSSL".
These files are pointed to in the file named /usr/local/apache2/conf/extra/httpd-ssl.conf :
Code:
SSLCertificateFile  "/app/UmobileSSL/wildcard.u.com.my.crt"
SSLCertificateKeyFile "/app/UmobileSSL/wildcard.u.com.my.key"
SSLCertificateChainFile "/app/UmobileSSL/intermediate_ca.crt"

However, when I restart apache after installing the certificates, I get the error mentioned above. I tried with both the commands above.
I googled for solutions, and the solution given was to make sure that the lines :

Code:
> LoadModule ssl_module modules/mod_ssl.so 
> Include conf/extra/httpd-ssl.conf

are NOT commented out in httpd.conf. I have checked this file, and the 2 lines above are indeed not commented out.

I have also checked that the mod_ssl.so module is indeed present in the "modules" directory (/usr/local/apache2/modules).

How do I resolve the errors above?

Last edited by Scrutinizer; 12-07-2016 at 11:09 PM.. Reason: Additional code tags for data samples
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Service Restart Netbackup

For vertitas netbackup 6.0 I have media server :Solaris Client server: Windows I want to restart the netbackup service on the media server . plz suggest ASAP. (1 Reply)
Discussion started by: saurabh84g
1 Replies

2. Shell Programming and Scripting

Restart a Service!!

Hello, I am trying to write a script which will monitor few processes(winbind) for cpu utilization, If the process consumes more than say 99% cpu for 3 minutes, I want to run a script to restart the service which forks the process. ---------- Post updated at 11:21 AM ---------- Previous update... (5 Replies)
Discussion started by: linuxaddict7
5 Replies

3. Solaris

NFS client service restart

Can any one please tell me the command for NFS client service restart.This is to resolve, NFS mount slowness issue.Mount is very slow for both read and write operations.The below commands are not helping out in this situation. ---------- Post updated at 08:59 AM ---------- Previous update was... (1 Reply)
Discussion started by: ksvaisakh
1 Replies

4. HP-UX

Script to auto restart a service

Hi All, May i please know if it is possible to write a script to check the log messages and automatically restart a service if it is failed or it is stopped. Appreciate your suggestions. Thanks in advance. regards, Eajaz (2 Replies)
Discussion started by: ajazshariff
2 Replies

5. Shell Programming and Scripting

Need to Restart Service with Password

Hi All, Requirement : I need to check for some services in my environment and restart the service if its not running. I have written script to check the script if its running or not. While if its not running i need to restart it using ./start command. But it will ask for password prompt and i... (4 Replies)
Discussion started by: pradeepbaliga
4 Replies

6. Shell Programming and Scripting

Restart IDSM service in WASSERVER

Hello, Currently i am handling admin activity of wasserver, its parts of teamcenter, wasserver is used to maintain IDSM service which is involved in data transfer activity. due to some reason IDSM service gets down and have to restart this service manually. ... (0 Replies)
Discussion started by: chetan0412
0 Replies

7. SuSE

Service restart daily

Hi, Beside using crontab, what is other application we can set it? Normally I check using command crontab -l. Any other path I need to check? Please guide me. Thanks. (2 Replies)
Discussion started by: mzainal
2 Replies

8. Shell Programming and Scripting

How to restart a service without root access.?

hi , can anyone please tell me to how to restart a service without root or i need a root access for it. as a user i am getting this type of error : nkchand@(tendcer0h1) nkchand $ service /opt/Nimsoft/bin/niminit stop ksh: service: not found. (1 Reply)
Discussion started by: nkchand
1 Replies

9. Red Hat

Restart service xinit.d or init.d ?

Hello How do I restart init.d ?? (centos 6.5) Thanks (2 Replies)
Discussion started by: mnnn
2 Replies

10. Red Hat

Error Restart apache

Hi Im apache service restart Error $ service httpd reload Reloading httpd: service httpd reload Reloading httpd: service httpd start Starting httpd: (98)Address already in use: make_sock: could not bind to address :80 (98)Address already in... (1 Reply)
Discussion started by: mnnn
1 Replies
GIT-INSTAWEB(1) 						    Git Manual							   GIT-INSTAWEB(1)

NAME
git-instaweb - Instantly browse your working repository in gitweb SYNOPSIS
git instaweb [--local] [--httpd=<httpd>] [--port=<port>] [--browser=<browser>] git instaweb [--start] [--stop] [--restart] DESCRIPTION
A simple script to set up gitweb and a web server for browsing the local repository. OPTIONS
-l, --local Only bind the web server to the local IP (127.0.0.1). -d, --httpd The HTTP daemon command-line that will be executed. Command-line options may be specified here, and the configuration file will be added at the end of the command-line. Currently apache2, lighttpd, mongoose, plackup and webrick are supported. (Default: lighttpd) -m, --module-path The module path (only needed if httpd is Apache). (Default: /usr/lib/apache2/modules) -p, --port The port number to bind the httpd to. (Default: 1234) -b, --browser The web browser that should be used to view the gitweb page. This will be passed to the git web--browse helper script along with the URL of the gitweb instance. See git-web--browse(1) for more information about this. If the script fails, the URL will be printed to stdout. start, --start Start the httpd instance and exit. Regenerate configuration files as necessary for spawning a new instance. stop, --stop Stop the httpd instance and exit. This does not generate any of the configuration files for spawning a new instance, nor does it close the browser. restart, --restart Restart the httpd instance and exit. Regenerate configuration files as necessary for spawning a new instance. CONFIGURATION
You may specify configuration in your .git/config [instaweb] local = true httpd = apache2 -f port = 4321 browser = konqueror modulepath = /usr/lib/apache2/modules If the configuration variable instaweb.browser is not set, web.browser will be used instead if it is defined. See git-web--browse(1) for more information about this. SEE ALSO
gitweb(1) GIT
Part of the git(1) suite Git 1.8.5.3 01/14/2014 GIT-INSTAWEB(1)
All times are GMT -4. The time now is 02:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy