We can restart the Apache server using the following command: :~$ sudo /etc/init.d/apache2 restart