What is the procedure to check the apache version in a sun solaris machine?

7,640

Solution 1

Check the reply HTTP headers when connecting to a page on this server using Live HTTP Headers in Firefox (if you use Firefox).

If your not using Firefox, just search for an HTTP Header Viewer on your browser of choice.

As long as your server gives this information (which it should by default in Apache), you should see it in the header. This is the information that it COULD give you. Good Luck.

Accept this answer if it solved your problem. Thx.

Solution 2

In what way does "httpd -v" not work? Does it return an error, or something else?

You may also be able to verify the version via the Solaris packaging system e.g. try "pkginfo" - if Apache has been installed as a package.

If you know exactly which httpd executable is running (e.g. "ps alxww | grep http") then you can determine which package owns that executable via "pkgchk -l -p /absolute/path/to/httpd"

But, in my experience, "httpd -v" should "just work" for the Apache httpd executable ...

Good luck.

Robb.

Share:
7,640

Related videos on Youtube

user2465494
Author by

user2465494

Updated on September 18, 2022

Comments

  • user2465494
    user2465494 over 1 year

    What is the procedure to check the apache version in a sun solaris machine?httpd -v is not working

    • HelpingHand
      HelpingHand over 10 years
      Check the reply HTTP headers when connecting to a page on this server using Live HTTP Headers in Firefox (if you use Firefox). If your not using Firefox, just search for an HTTP Header Viewer on your browser of choice. As long as your server gives this information (which it should by default), you should see it in the header. Good Luck. Upvote this comment if it helped.
    • Andrew Schulman
      Andrew Schulman over 10 years
      @HelpingHand: Instead of a comment, why not give an answer?
    • HelpingHand
      HelpingHand over 10 years
      @Andrew Schulman Good idea! Just posted it!
  • Nikhil
    Nikhil over 10 years
    Most likely because httpd is installed in a directory not in the user path. If the error is httpd: Command not found. (as I get on Solaris), run the command with the full path to the httpd binary, such as /usr/apache2/2.2/bin/httpd -v .