Operating System - HP-UX
1833159 Members
2865 Online
110051 Solutions
New Discussion

changing ip in apache server

 
Ahmed Hassan_2
Occasional Advisor

changing ip in apache server

dear all,
I have apache sever running on HP ux11.0 ,it is working fine ,I need to change th ip number and host name on this server,I changed this in
/etc/rc.config.d/netconf
/etc/hosts
in all httpd files on the system
I restarted many time but now I cant access through http ,I returned back the ip http is working fine

is there any other configuration file I should
but the new ip and host name in order to access the server through http??
7 REPLIES 7
Robert-Jan Goossens
Honored Contributor

Re: changing ip in apache server

Hi,

Did you reboot the server after you had changed the netconf and hosts file ?

Regards,
Robert-Jan
David Child_1
Honored Contributor

Re: changing ip in apache server

Were you able to access this server over the new IP via ssh, telnet, etc.? Is the new IP address on the same network? Perhaps you need to update your routes.

David
Ahmed Hassan_2
Occasional Advisor

Re: changing ip in apache server

yes I am able to access the server with telnet or ftp only http is not running
Robert-Jan Goossens
Honored Contributor

Re: changing ip in apache server

Could you check your httpd.conf file,depending a bit if you install the hp or the opensource version where it is.

/etc/apache/httpd.conf

Regards,
Robert-Jan
Ahmed Hassan_2
Occasional Advisor

Re: changing ip in apache server

I had changed all httbd I can find in the server
/opt/apache/etc/httpd.conf
/application/www/config/httpd.conf

Robert-Jan Goossens
Honored Contributor

Re: changing ip in apache server

If you are running an Apache web server, be sure to edit the system name(s) in:

/usr/local/etc/httpd/conf/access.conf
/usr/local/etc/httpd/conf/httpd.conf
/usr/local/etc/httpd/conf/srm.conf

This is from an open source apache server. please change the PATH to your own install PATH.

Hope this helps,
Robert-Jan
RAC_1
Honored Contributor

Re: changing ip in apache server

ps -ef|grep http

Does it return anything?

When you start it, do you get any messages in log file??

Also one more thing to check--What is the listen directive in httpd.conf file?? Is it still pointing to old ip address??

Anil
There is no substitute to HARDWORK