You can restart Apache Server in Ubuntu by running the following command in your terminal:
$ sudo service apache2 restart
If using a systemd based distro like Ubuntu Linux 16.04+ LTS or Debian Linux 8.x+:
$ sudo systemctl restart apache2.service