- Restart apache the Ubuntu way:
To restart: sudo service apache2 restart|stop|start.
To stop: sudo service apache2 stop.
To start: sudo service apache2 start.
- Restart nic
ifdown eth0 && ifup eth0
- Change nic or dns settings on some ubuntu
nano /etc/network/interfaces