web server installed?

Hi,

I need to check whether webserver is installed in my UNIX box or not
Can some one please help me (command?)

Thanks

Assuming that you are on a HP-UX box, you can use SAM to see what optional software packages are installed. Another way is to look through /opt. For example, the Apache web server is typically installed in /opt/apache/ or /opt/hpws/apache/

Many thanks, and I could see some folders related to Apache.

byfusp01 $ pwd
/opt/hpws/apache
byfusp01 $ ll
total 256
-r--r--r-- 1 bin bin 16413 Apr 8 2004 GETTING_STARTED
drwxr-xr-x 2 bin bin 8192 Feb 17 2005 LICENSES
drwxr-xr-x 2 bin bin 8192 Feb 17 2005 bin
drwxr-xr-x 3 bin bin 8192 Feb 17 2005 build
drwxr-xr-x 2 bin bin 96 Feb 17 2005 cgi-bin
drwxr-xr-x 4 bin bin 8192 Feb 17 2005 conf
drwxr-xr-x 3 bin bin 8192 Feb 17 2005 error
drwxr-xr-x 3 bin bin 8192 Feb 17 2005 hpws_docs
drwxr-xr-x 2 www other 8192 Feb 17 2005 htdocs
drwxr-xr-x 3 bin bin 8192 Feb 17 2005 icons
drwxr-xr-x 2 bin bin 8192 Feb 17 2005 include
drwxr-xr-x 3 bin bin 8192 Feb 17 2005 lib
drwxr-xr-x 2 www other 96 Feb 17 2005 logs
drwxr-xr-x 4 bin bin 96 Feb 17 2005 man
drwxr-xr-x 13 bin bin 8192 Feb 17 2005 manual
drwxr-xr-x 2 bin bin 8192 Feb 17 2005 modules
dr-xr-xr-x 4 bin bin 96 Feb 17 2005 newconfig
drwxr-xr-x 7 bin bin 96 Feb 17 2005 php
drwxr-xr-x 6 bin bin 96 Feb 17 2005 stunnel
drwxr-xr-x 2 bin bin 8192 Feb 17 2005 util
drwxr-xr-x 6 bin bin 96 Feb 17 2005 webproxy

Actually i was trying to send mails using the command mailx -s "subject" abc@xyz.com,
but i was advised to check whether webserver is installed or not?
Is ther a requirement to start this apache server or will it be already up & running?

My ultimate aim is to send e-mails. Appreciate if you could help me.

many thanks

If you want to send emails you need to ensure that your system's sendmail is working. A couples of ways to check:

ps -ef | grep sendmail
mailq -v

HP-UX 11.20 ships with sendmail version 8.11.1. HP-UX 11.11 - version 8.9.3.1. HP-UX 11.00 and 10.20 = version 8.7.1.1. Sight differences between each version.

Look on docs.hp.com for the appropriate sendmail configuration documentation

fpmurphy,

I am checking with our unix team for starting the apache server.
Do we need to install 'mail server' so that we can use mailx command?

Thanks