Operating System - Linux
1753857
Members
7516
Online
108809
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2003 05:19 AM
тАО08-20-2003 05:19 AM
Good Morning-
Can anybody tell me of a command that will tell me which version of apache i'm running. Also, can somebody describe what apache "stand alone version" is? Thanks a lot!
Kyle
Can anybody tell me of a command that will tell me which version of apache i'm running. Also, can somebody describe what apache "stand alone version" is? Thanks a lot!
Kyle
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2003 05:24 AM
тАО08-20-2003 05:24 AM
Re: apache
You can ever use rpm to know this:
rpm -qi apache
Also, if you look into /var/log/httpd/error_log, when you start apache it tells the version of the httpd daemon, along with third-party modules that are configured on your installation.
The "apache standalone version" is the version that both appears when you query the rpm database and the Apache error log.
HTH
Paulo Fessel
rpm -qi apache
Also, if you look into /var/log/httpd/error_log, when you start apache it tells the version of the httpd daemon, along with third-party modules that are configured on your installation.
The "apache standalone version" is the version that both appears when you query the rpm database and the Apache error log.
HTH
Paulo Fessel
L'employ├Г┬й propose, le boss dispose.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2003 05:36 AM
тАО08-20-2003 05:36 AM
Solution
httpd -v
Print the version of httpd.
It's possible to run the httpd daemon in either stand-alone mode or via the Internet Server daemon (inetd). Running the daemon in stand-alone mode makes easier to start and stop individual processes without modifying the /etc/inetd.conf file constantly
Regards,
Sergejs
Print the version of httpd.
It's possible to run the httpd daemon in either stand-alone mode or via the Internet Server daemon (inetd). Running the daemon in stand-alone mode makes easier to start and stop individual processes without modifying the /etc/inetd.conf file constantly
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2003 04:10 PM
тАО08-20-2003 04:10 PM
Re: apache
Running it in stand-alone (as a daemon) is usually more efficient as well as easier to manage.
The wasy to tell if it is running in Standalone or launched fromthe super-daemon (inetd/xinetd) is to see which process are running, who their parents are, and who owns the port.
For example, stand-alone:
# ps -ef | grep http
root 795 1 0 Apr10 ? 00:00:13 /usr/sbin/httpd
The Parent PID (3rd field) is 1, meaning it's parent is 'init'. This is what happens to daemons which launch off into the background. As the process which launched it is no longer necessary, it removes any reliance on it.
For example, launched from inetd/xinetd:
# ps -ef | grep http
root 795 763 0 10:08 ? 00:00:00 /usr/sbin/httpd
The 3rd field is greater than 1, meaning that it was launched by something else. Further research shows:
# ps -fp 763
root 763 1 0 Apr10 ? 00:00:00 xinetd -stayalive -reuse
This is the super-daemon on this box.
Otherwise you could use a command similar to:
# netstat -ntlp | grep :80
(stand alone)
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 795/httpd
(launced from inetd)
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 763/xinetd
Just some little tid-bits.. mostly aimless rambling :)
The wasy to tell if it is running in Standalone or launched fromthe super-daemon (inetd/xinetd) is to see which process are running, who their parents are, and who owns the port.
For example, stand-alone:
# ps -ef | grep http
root 795 1 0 Apr10 ? 00:00:13 /usr/sbin/httpd
The Parent PID (3rd field) is 1, meaning it's parent is 'init'. This is what happens to daemons which launch off into the background. As the process which launched it is no longer necessary, it removes any reliance on it.
For example, launched from inetd/xinetd:
# ps -ef | grep http
root 795 763 0 10:08 ? 00:00:00 /usr/sbin/httpd
The 3rd field is greater than 1, meaning that it was launched by something else. Further research shows:
# ps -fp 763
root 763 1 0 Apr10 ? 00:00:00 xinetd -stayalive -reuse
This is the super-daemon on this box.
Otherwise you could use a command similar to:
# netstat -ntlp | grep :80
(stand alone)
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 795/httpd
(launced from inetd)
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 763/xinetd
Just some little tid-bits.. mostly aimless rambling :)
One long-haired git at your service...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP