WebFaction
Community site: login faq

Title sums it up.

How do I run apachectl configtest against my httpd.conf file?

When I try it, I get "httpd: Could not open configuration file /etc/httpd/conf/httpd.conf: Permission denied"

If I try: apachectl configtest conf/httpd.conf

I get the help (-h) response.

asked 24 May '16, 01:05

leehinde
45212
accept rate: 0%


You have to specify the full path and other config options. You can use most of the command in the 'start' script, like this,

[you@webXX bin]$ cat start
#!/bin/bash

LD_LIBRARY_PATH=/home/you/webapps/app/apache2/lib:/home/you/webapps/app/lib /home/you/webapps/app/apache2/bin/httpd.worker -f /home/you/webapps/app/apache2/conf/httpd.conf -k start

[you@webXX bin]$ LD_LIBRARY_PATH=/home/you/webapps/app/apache2/lib:/home/you/webapps/app/lib /home/you/webapps/app/apache2/bin/httpd.worker -f /home/you/webapps/app/apache2/conf/httpd.conf -t
Syntax OK
permanent link

answered 24 May '16, 03:06

johns
5.3k312
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×27

question asked: 24 May '16, 01:05

question was seen: 2,692 times

last updated: 24 May '16, 03:06

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM