开发者

How to start Apache on EC2

开发者 https://www.devze.com 2023-01-22 04:47 出处:网络
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

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!


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


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/


Well, you need to set up a LAMP server. To install LAMP server with one command, try the following:

sudo apt-get install lamp-server^ 

Note that the last ^ is not a typo, it's included in the command. See this page for more information.


sudo apt-get update sudo tasksel

and enjoy.


If you are running bitnami's Drupal Stack, you can

1) cd /opt/bitnami 2) sudo bash (enter password) 3) sh ctlscript.sh restart

this will restart the LAMP stack

0

精彩评论

暂无评论...
验证码 换一张
取 消