How to start Apache on EC2
25,036
Solution 1
For Suse 11, try
rcapache2 status
rcapache2 start
If it is not installed, you can install with
yast2 --install apache2
for a tutorial on LAMP with this server, check
http://www.susegeek.com/internet-browser/install-configure-lamp-apachemysqlphp-in-opensuse-110/
Solution 2
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
Comments
-
murze about 4 years
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!
-
murze over 13 yearsYour last command results in "No such client module –install" Is there a preconfgured AMI where a LAMP is already installed?
-
Brandon Frohbieter over 13 yearsI don't believe so, you may have to follow a tutorial online to get the stack set up. Don't worry, after a few tries, you'll have the hang of it for good.
-
Brandon Frohbieter over 13 yearssorry, typo. two hyphens, or -i
-
kaysa about 11 yearsJust wanted to mention that BitNami does provide Amazon and Azure cloud images with pre-configured LAMP. bitnami.com/stack/lamp/cloud