Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache Web server (novice) 1

Status
Not open for further replies.

Neo81

Technical User
Aug 16, 2001
154
AU
Hey People


I have to take a site that we host of our ISP, it is only a small company one (6 lines) but we do a bit of web hosting, and the guy who set it up has left the company and we cannot get a hold of him.... I just need to know how to get rid of the things that point to where the web pages is as it has been re deligated to another ISP and they cannont host it until I get rid of it on out servers.... we are running Apache web server 1.3 I think if that is anyhelp and Redhat, solaris and lrp linux versions, I know enough to get me around and change stuff but that is about it, I am learning linux at the moment......

Thanks


Later
NEo81 >:):O>
 
ok you will want to delete the virtual host from the apache config file (httpd.conf) the restart apache (httpd)

actually this is not going to affect anything but give a very slight increase in performance on your server.

now to remove the DNS entry

edit the file /etc/named.conf and find the lines for the zone (domain) in question. delete (or comment out) those lines, save the file and restart named.

From what I have read, there shouldn't be any problems with switching the nameserver references for the domain at the registrar, but then again this could explain why I am having trouble setting up a domain on my server...
 
Hey

Garwain, Thanks for the post it was very helpfull and easy to understand. I have comment'd those references out of the named.conf and the httpd.conf now how do I restart the apache server, is there anyway I can do this without restarting the machine? all the ways that posts on the net has told me do not work, the box is running SunOS 5.7 also how do you edit files in that OS, VI doesn't want to work I get a segmentation error?

Thanks


Later
NEo81 >:):O>
 
All depends what version of Apache you have installed.

If you have the /usr/local/apache/bin/apachectl file, issue the "/usr/local/apache/bin/apachectl stop" and the "/usr/local/apache/bin/apachectl start" commands.

Else run "/etc/rc.d/init.d/httpd stop" and "/etc/rc.d/init.d/httpd start"

Note, bothe these may have a "restart" command available too which will do the same as the 2 commands, but I had some bad experiences with it, so for safety sake I run the "stop" and "start" commands seperately.

Do a ps -ef|grep [h]ttp after each command to see if the processes did stop and start again. IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
I can't really help that much directly regarding SunOS since I've never used it before.

The previous post shows how to restart apache (you may have to modify the path though)

you'll also have to restart named . with luck you can just type
named restart
or
named stop
named start

As for editors, I'd suggest trying emacs, joe or pico. At least one of those should be installed on the system along with vi (in not I'd try to get JOE installed. I find it a handy tool for quick changed)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top