1752350 Members
5887 Online
108787 Solutions
New Discussion

Re: HTTP CONNECTION

 
KINGSLEY_1
Regular Advisor

HTTP CONNECTION

Dear Sirs

 

I am running hp-ux 11.23. Can any one help with how to stop/start http on my server? The problem is i am trying to do an http connection to my server but could not. I rebooted the server but there was no change.

 

Thank you.

 

Kingsley

8 REPLIES 8
Bill Hassell
Honored Contributor

Re: HTTP CONNECTION

http, like any network protocol, requires some sort of program or daemon to be running. On HP-UX, the program is called apache. Edit the file:

 

     /etc/rc.config.d/hpws_apacheconf

 

Then change the line: HPWS_APACHE_START=1

The apache web server will start automatically at the next reboot.

 

To immediately start the web server (after editing the above file):

 

     /sbin/init.d/hpws_apache start



Bill Hassell, sysadmin
KINGSLEY_1
Regular Advisor

Re: HTTP CONNECTION

Hi Bill!

 

I did what you told me and this is the output when i do ps -ef | grep -i httpd

 

/ # ps -ef | grep -i httpd
    root  1866     1  0 21:05:46 ?         0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start
     www  1873  1866  0 21:05:46 ?         0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start
     www  1868  1866  0 21:05:46 ?         0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start
     www  1876  1866  0 21:05:46 ?         0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start
    root 20630 20611  0 08:16:30 pts/ta    0:00 grep -i httpd
/ #

 

But i still do not connect through "http"

 

Is there another service i should start?

 

Thanks

 

kingsley

Ismail Azad
Esteemed Contributor

Re: HTTP CONNECTION

Hi,

 

> Is there any other service to start?

 

With the current init run level implementation on HPUX unlike upstart on ubuntu, trying to find a dependent service could be quiet difficult unlike the 'predictive self healing' provided by an HPUX cousin. Anyways, if you can reboot the server, it would automatically start the dependencies in the sequential order {if configured to do so}  and this would be the easiest and cleanest answer for the question you put forward. I suggest you give one more reboot after the change you made in the corresponding startup script for apache. Hope this helps.

 

Regards

Ismail Azad

Read, read and read... Then read again until you read "between the lines".....
Torsten.
Acclaimed Contributor

Re: HTTP CONNECTION

Did it work before?

Check, if it is running on port 80 or another port (httpd.conf).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
KINGSLEY_1
Regular Advisor

Re: HTTP CONNECTION

Hi Azad!

 

I am in the process of restarting the server. The issue confronting me is that there is this ORACLE application software which uses port 8040. When we do http://172.25.34.85:8040 there is no response from the server.

But when i do http://172.25.34.85, i am able to connect to

 

 

 

welcome to hp-ux web server suite

hp-ux web server suite what's new
HP-UX Web Server Suite is a collection of popular open source tools customized and optimized for HP-UX platform.

The following components are part of the suite:

  • HP-UX Apache-based Web Server
  • HP-UX Tomcat-based Servlet Engine
  • HP-UX Webmin-based Admin
  • HP-UX XML Web Server Tools»Documentation
        :

            release notes, guides, FAQs

    » Administer
        your web server (if enabled)
        login: admin     password: hp.com

phptomcatwebmin

i do not know whether the problem is from.

 

thanks

 

kingsley

KINGSLEY_1
Regular Advisor

Re: HTTP CONNECTION

Hi Torsten!

 

The last time we used it is about a year now. Part of the configuration is shown below and it shows that it listens on port 80.

 

Thanks.

 

 

 

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80

Listen 80

# For C++ modules that require classic libraries
LoadFile /usr/lib/libCsup.sl
LoadFile /usr/lib/libstream.sl
LoadFile /usr/lib/libstd.sl

Torsten.
Acclaimed Contributor

Re: HTTP CONNECTION

According to your "ps" output it is running.

You should have a look at the apache log files.

You may also try to connect from the server directly to prevent a network problem.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
KINGSLEY_1
Regular Advisor

Re: HTTP CONNECTION

Hi All!

 

Thank you so much for the help. I did all what you told me, but the system was still not working. This made me ask the DBA(S) to recheck their application and the scripts. After a while they told me they hadn't restarted a script and that was the cause.

 

Thank you once again for your help.

 

kingsley