# Not able to install on AWS EC2

**URL:** <https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070>\
**Category:** Product Support\
**Created:** [July 23, 2015, 12:55pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070 "2015-07-23T12:55:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcgeut](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jcgeut](https://forum.mautic.org/u/jcgeut)\
**Post date:** [July 23, 2015, 12:55pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/1 "2015-07-23T12:55:40Z")

</div>

Not able to install Mautic on my AWS EC2 LAMP instance with Elastic IP. Anyone able to give me a hand?  
  
  
  
Gone through the [freedif.org](http://freedif.org) tutorial a couple of times, but all the directories seem to be in different places. Have run a LAMP installation as described on AWS as: httpd24 php56 mysql55-server php56-mysqlnd and also as per freedif as: apache2 mysql-server php5 php5-mysql  
  
  
  
Neither seems to be running successful.

---

<div class="post-metadata">

**Author:** ![jcgeut](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jcgeut](https://forum.mautic.org/u/jcgeut)\
**Post date:** [July 23, 2015, 12:55pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/2 "2015-07-23T12:55:40Z")

</div>

Not able to install Mautic on my AWS EC2 LAMP instance with Elastic IP. Anyone able to give me a hand?

Gone through the [freedif.org](http://freedif.org) tutorial a couple of times, but all the directories seem to be in different places. Have run a LAMP installation as described on AWS as: httpd24 php56 mysql55-server php56-mysqlnd and also as per freedif as: apache2 mysql-server php5 php5-mysql

Neither seems to be running successful.

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [July 23, 2015, 1:08pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/3 "2015-07-23T13:08:03Z")

</div>

Hi Jcegeut

I don’t personally have any experience with amazon’s EC2 but it should be not unlike many other server setups.

Reading through this guide:  
[http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html)

I see they have directions to install and start apache, and some other services. So let’s start from the bottom and work our way up to mautic:

1. Is apache running? (what does sudo service httpd start do?)
2. Can you get any php info? (php --info)
3. What about mysql? (mysqladmin -u root status)

I would say start with apache, get that running, then add the php service and mysql service, then focus on serving up just a simple php file with a phpinfo(); call in it, make sure you can hit files remotely via a browser. Then it’s time to set up mautic.

---

<div class="post-metadata">

**Author:** ![wootme](https://avatars.discourse-cdn.com/v4/letter/w/e9bcb4/32.png) [@wootme](https://forum.mautic.org/u/wootme)\
**Post date:** [July 23, 2015, 1:09pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/4 "2015-07-23T13:09:41Z")

</div>

@jcgeut  
Welcome to the forums, could you explain “neither seems to be running successful”  
Couple of things to check:

1. Apache running?
2. Which lamp installation did you select?
3. how comfortable are you running/inputting commands on AWS?
4. Screenshot or describe the error in little more detail.

I will be online for next half hour if you are online maybe I can teamview and see. lemme know.

---

<div class="post-metadata">

**Author:** ![jcgeut](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jcgeut](https://forum.mautic.org/u/jcgeut)\
**Post date:** [July 23, 2015, 2:19pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/5 "2015-07-23T14:19:02Z")

</div>

Thanks @wootme and @chad.windnagle

I’ve ran both versions of the LAMP config. One being the standard AWS LAMP tutorial version and the other as per the tutorial on freedif.

Terminated the session on AWS, so would need to kick live from scratch which is not a problem.

Though am an accountant and not a dev, am pretty ok with code.

Got Apache, MySQL and PhP to work on both LAMP setups.

Have already prepared the A record on my DNS for mautic to run on sub-domain.

What’s easiest, shall I kick a LAMP up? And if so with which installs, the AWS or the freedif version?

---

<div class="post-metadata">

**Author:** ![wootme](https://avatars.discourse-cdn.com/v4/letter/w/e9bcb4/32.png) [@wootme](https://forum.mautic.org/u/wootme)\
**Post date:** [July 23, 2015, 2:26pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/6 "2015-07-23T14:26:10Z")

</div>

@jcgeut

Anything would work, till the time you are seeing, apache test page working perfectly, the ways are all the same. we need the exact error or difficulty you are facing when installing mautic. please share the error or screenshot. if need be I could come on teamviewer.

---

<div class="post-metadata">

**Author:** ![jcgeut](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jcgeut](https://forum.mautic.org/u/jcgeut)\
**Post date:** [July 23, 2015, 2:58pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/7 "2015-07-23T14:58:24Z")

</div>

@wootme

Ok. Am running a new LAMP session.

Apache is running ok and so is PHP.

Just uploaded mautic via ftp, as the latest-link is coming back with a 404 so not able to use wget.

Unzipping doesn’t seem to work on “unzip mautic 1.1.3.zip -d mautic”

File is there when I “ls” the /var/www

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [July 23, 2015, 3:02pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/8 "2015-07-23T15:02:02Z")

</div>

Do you get an error doing unzip? You might not have the zip / unzip utilities installed.

---

<div class="post-metadata">

**Author:** ![jcgeut](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jcgeut](https://forum.mautic.org/u/jcgeut)\
**Post date:** [July 23, 2015, 3:08pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/9 "2015-07-23T15:08:40Z")

</div>

After I put in the command: unzip mautic 1.1.3.zip -d mautic

It comes back with: unzip: cannot find or open mautic, mautic.zip or mautic.ZIP.

Where as:  
[ec2-user@ip-172-31-16-42 www]$ ls  
cgi-bin error html icons mautic 1.1.3.zip noindex

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [July 23, 2015, 3:09pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/10 "2015-07-23T15:09:53Z")

</div>

you need to quote the name:

> [@](#):
>
> unzip ‘mautic 1.0.3.zip’ -d mautic

---

<div class="post-metadata">

**Author:** ![jcgeut](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jcgeut](https://forum.mautic.org/u/jcgeut)\
**Post date:** [July 23, 2015, 3:11pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/11 "2015-07-23T15:11:50Z")

</div>

Thanks, worked.

Now [ec2-user@ip-172-31-16-42 www]$ chown -R www-data:www-data /var/www/mautic  
chown: invalid user: ‘www-data:www-data’

---

<div class="post-metadata">

**Author:** ![jcgeut](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jcgeut](https://forum.mautic.org/u/jcgeut)\
**Post date:** [July 23, 2015, 3:13pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/12 "2015-07-23T15:13:13Z")

</div>

Also, do I need to remove the original zip-file after extracting successfully?

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [July 23, 2015, 3:14pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/13 "2015-07-23T15:14:03Z")

</div>

You can remove it yes.

To fix the permission issues, follow the steps here under “set file permissions”. This will be pretty straight forward linux stuff from here on out:

[http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html)

---

<div class="post-metadata">

**Author:** ![jcgeut](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jcgeut](https://forum.mautic.org/u/jcgeut)\
**Post date:** [July 23, 2015, 3:19pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/14 "2015-07-23T15:19:44Z")

</div>

Sorry for getting mixed up in the basics.

Working my way through this tutorial [http://freedif.org/mautic-opensource-marketing-email-automation/](http://freedif.org/mautic-opensource-marketing-email-automation/)

Do I simply replace the ‘www-data’ with ‘ec2-user’?

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [July 23, 2015, 3:24pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/15 "2015-07-23T15:24:03Z")

</div>

I think because you’re using an amazon instance the directions on freedif are a little different. Those are for probably ubuntu. Since you’re using amazon’s stuff, the default user names and privileges are going to be different.

Do you log in with the user ec2-user? I’m thinking whatever the user is you have in your console when you’re on the terminal is the user you should use when the amazon directions reference ec2-user. The important thing is to add the group and run the ownership commands.

I would switch away from the freedif article and complete the steps with the permissions on the amazon one.

---

<div class="post-metadata">

**Author:** ![jcgeut](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jcgeut](https://forum.mautic.org/u/jcgeut)\
**Post date:** [July 23, 2015, 3:29pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/16 "2015-07-23T15:29:17Z")

</div>

Ok, @chad.windnagle, understand.

In that case, are you able to help me work through this?

If #slack works easier for you that is possible too.

---

<div class="post-metadata">

**Author:** ![wootme](https://avatars.discourse-cdn.com/v4/letter/w/e9bcb4/32.png) [@wootme](https://forum.mautic.org/u/wootme)\
**Post date:** [July 23, 2015, 3:30pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/17 "2015-07-23T15:30:21Z")

</div>

Try using this command as is, just copy and paste and let me know if this works.

```auto
chown -R www–data:www-data /var/www/mautic
```

---

<div class="post-metadata">

**Author:** ![jcgeut](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jcgeut](https://forum.mautic.org/u/jcgeut)\
**Post date:** [July 23, 2015, 3:32pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/18 "2015-07-23T15:32:12Z")

</div>

No, sorry

[ec2-user@ip-172-31-16-42 www]$ chown -R www–data:www-data /var/www/mautic  
chown: invalid user: ‘www–data:www-data’

---

<div class="post-metadata">

**Author:** ![wootme](https://avatars.discourse-cdn.com/v4/letter/w/e9bcb4/32.png) [@wootme](https://forum.mautic.org/u/wootme)\
**Post date:** [July 23, 2015, 3:33pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/19 "2015-07-23T15:33:47Z")

</div>

Could you install teamviewer and share the screen with me?

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [July 23, 2015, 3:33pm UTC](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070/20 "2015-07-23T15:33:51Z")

</div>

@wootme I could be wrong but it looks like the www-data user’s “dash” character is different than the group. Is that what could be causing the invalid user issue?

[Next page](https://forum.mautic.org/t/not-able-to-install-on-aws-ec2/2070.md?page=2)
