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!
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With