Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Apache configuration test doesn't pass or fail. Nothing happens.


    I have apache installed on a Linux server. When I run the command for status, or the flag to check the configuration, (-t), it takes me to a new prompt with no output. I'm logged in as root. When I run the configuration check command (with the full path, command, and flag) on other Apache servers, I get "Syntax ok" as the output. Or sometimes I get an error (if there is a problem with a configuration file). In this instance, I get nothing when I check the configuration of apache. I just get a new command prompt. When I try to start apache, nothing happens as well. No error either. I just go to a new line. What is wrong?

  2. #2
    That sounds quite strange. What is your Linux distro/version?

    How did you install apache?

    What is the exact command you are running, and are you running it as root?

    If it is 'httpd -t' that you are using, do this right after it and see what it says:

    Code:
    echo $?

  3. #3
    OS is CentOS. I'm not sure how apache was installed.

    Here are the exact commands that do nothing for me:

    /etc/init.d/httpd status
    /etc/init.d/httpd configtest
    /etc/init.d/httpd restart

    I'll try your suggestion.

  4. $spacer_open
    $spacer_close
  5. #4

    I found out what was wrong

    Quote Originally Posted by atreyu View Post
    That sounds quite strange. What is your Linux distro/version?

    How did you install apache?

    What is the exact command you are running, and are you running it as root?

    If it is 'httpd -t' that you are using, do this right after it and see what it says:

    Code:
    echo $?
    The problem was that a configuration file existed, but it was 0 bytes. I have no idea how it became an empty, zero byte file. But once I corrected it, the problem went away. I wouldn't have thought the behavior that I observed was possible.

  6. #5
    glad you got it sorted. honestly, there are so many permutations of things that can go wrong, you can never plan for it all!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •