To restart Apache from the command line from a Amazon EC2 Instance simply type:
/sbin/service httpd restart
In case you get “permission denied” errors, you should try adding a sudo in front of the line, e.g.:
sudo /sbin/service httpd restart
These commands are no different. If you remember anything from your linux days. Just don’t be afraid and try it out.