This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I purchased and installed Red Hat Linux 7.0. It included the Apache Web Server. I would like to know: 1) how can I find out what version of apache is included with Linux 7.0 2) How can I find out if it is the source code version or a binary version. Thanks.
try: rpm -qa |grep apache or rpm -qa |grep httpd It will have the binary, and probably the source as well. I would go to apache.org to get the latest source and compile it yourself (you will probably end up doing that yourself anyway, because you will want to compile with diffenernt options). James
Red Hat Linux comes with a source code CD, but the two "install" CD's are binary. Since they use the Red Hat Package Manager (RPM), you can always query what's installed, but unless you explicitly installed from the source CD, all you have is the binary. Although you can query rpm for the Apache Version, the authoritative answer is the one that Apache itself gives, The command for that is: /usr/sbin/httpd -v There are security-related updates for Apache since the RedHat 7.0 release. They recommend that you run at least version 1.3.20, You can download update RPMs from redhat.com as well as many mirror sites. If you want to build from source, the freshest is always at www.apache.org. Unless you're into experimental, avoid the Apache 2.0 and download the latest 1.3 version. Warning: you'll muddy the RPM management of apache if you build this way. Also, the default apache build configuration doesn't always put files in the same places that Red Hat does. As in many Linux products, the simplest stand-alone way is to place the component in its own private directories, but the simplest way when considering the OS as a whole is to splatter the binaries, config files, libs, etc. into the system-wide directories. That's a job that's really only practical if you use something like RPM to track what goes where.
An IDE is no substitute for an Intelligent Developer.