0

After trying to retrofit an existing Ubuntu Raring Amazon EC2 node to support Drupal (see PHP5 is installed, but Apache is displaying PHP as uninterpreted text. How can I get it to process it as PHP?), I decided to start with a fresh start and use tasksel install lamp-server, which I was concerned might clobber something. I tried to follow https://help.ubuntu.com/community/Drupal , installing Drupal 7 from repositories, and an apachectl restart runs with apparent success, but when I try to connect to the FQDN I use to shell in, from a web browser, Chrome says, "Oops! Google Chrome could not connect to ec2-54-218-143-2.us-west-2.compute.amazonaws.com".

Could you point me to a preferred HOWTO to create a node running Drupal (as well as being able to support VirtualHosts with CGI scripts as well as static content)? Is there a not-obviously-advertised way to load an image on a host that will run Drupal?

--EDIT--

Pasting in the security group ports for the instance:

22 (SSH)    0.0.0.0/0   Delete
80 (HTTP)   0.0.0.0/0   Delete

In other words, Amazon claims that it is allowing connections in on port 80.

Christos Hayward
  • 1,180
  • 3
  • 16
  • 39

1 Answers1

1

You need to change your security group settings to allow inbound traffic on port 80. I also typically use ufw on the server as a firewall.

My list for spinning up a drupal server on AWS are:

  1. Spin up t1.micro instance
  2. Change security group to allow http(80), https(443), ssh(22), ftp(21).
  3. Set up ufw on server to allow http(80), https(443), ssh(22), ftp(21)
  4. install default lamp server
  5. install proftpd
  6. create ftp user and assign home directory of /var/www
  7. assign an elastic IP to the instance in the aws control panel

After you do this and get the updates (apt-get upgrade), you should have a pretty good shell for a basic web server.

Now you should be able to go to: ec2-54-218-143-2.us-west-2.compute.amazonaws.com and get an It Works! page. The most common issue is always the elastic IP or security group access.

If you have issues, message me and I can help out a little more or do a webex and show you around aws....super bored at work today...