micro_xii, I think you're asking if this is the "right" way to kill the web server, yes?
Usually the web server will be started and stopped using init scripts. While kill will probably work, you might be better off using the init scripts (if they are how it's done on your system). The name of the init script will vary from distro to distro, here's a few alternatives:
Code:
/etc/init.d/apache stop
/etc/init.d/apache2 stop
/etc/init.d/httpd stop
Those are variations I've seen, but there may be many more.