Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start Apache on EC2

I'm an absolute newbie to EC2. My goal is to run a php-mysql-website on EC2.

I've just setup a new instance based on this ami

It seems that apache isn't running? How do I start apache? Is there a general tutorial on how to start EC2 as a web server?

Thanks!

like image 428
murze Avatar asked Oct 28 '10 14:10

murze


People also ask

How do I run Apache on AWS?

Install an Apache web server with PHP and MariaDB. Connect to your EC2 instance and install the web server. Connect to the EC2 instance that you created earlier by following the steps in Connect to your Linux instance. Get the latest bug fixes and security updates by updating the software on your EC2 instance.

Does AWS use Apache?

Apache on the other hand is a SOFTWARE that run on servers. So, essentially you can run Apache on AWS. That is the basic idea. AWS is a platform and Apache can run on top of AWS.


1 Answers

It really depends on the distribution you have chosen. Typically, though, you can start Apache using the init scripts. For example, on Ubuntu server it will be:

sudo /etc/init.d/apache2 start

On CentOS or Redhat it might be:

sudo /etc/init.d/httpd start
like image 114
scientastic Avatar answered Nov 15 '22 20:11

scientastic