# Installation Problems on LEMP Stack

**URL:** <https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589>\
**Category:** Product Support\
**Created:** [February 26, 2015, 5:29am UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589 "2015-02-26T05:29:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ardit](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@ardit](https://forum.mautic.org/u/ardit)\
**Post date:** [February 26, 2015, 5:29am UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589/1 "2015-02-26T05:29:04Z")

</div>

Disclaimer: I’m an amateur when it comes to server management. With good tutorials, I can usually pull it off.  
  
  
  
So I have VPS with Digital Ocean running a LEMP stack.  
  
Nginx 1.4.6 on Ubuntu 14.04.  
  
Current PHP version: 5.5.9-1ubuntu4.6  
  
  
  
[tools.o6n.com](http://tools.o6n.com) works. PHP files can be found and what not.  
  
[tools.o6n.com/mautic/](http://tools.o6n.com/mautic/) is where I’ve placed the files using git, I’ve tried sftp too, no luck.  
  
Initially had some permission issues with cache and log folders. Changed permissions and got past that.  
  
I’ve installed composer, gave me problems until I brought curl up to date.  
  
  
  
Anyway, I’m simply getting a 404 error on the install page.  
  
See here: [http://tools.o6n.com/mautic/](http://tools.o6n.com/mautic/)  
  
  
  
What am I doing wrong??

---

<div class="post-metadata">

**Author:** ![ardit](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@ardit](https://forum.mautic.org/u/ardit)\
**Post date:** [February 26, 2015, 5:29am UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589/2 "2015-02-26T05:29:04Z")

</div>

Disclaimer: I’m an amateur when it comes to server management. With good tutorials, I can usually pull it off.

So I have VPS with Digital Ocean running a LEMP stack.  
Nginx 1.4.6 on Ubuntu 14.04.  
Current PHP version: 5.5.9-1ubuntu4.6

[tools.o6n.com](http://tools.o6n.com) works. PHP files can be found and what not.  
[tools.o6n.com/mautic/](http://tools.o6n.com/mautic/) is where I’ve placed the files using git, I’ve tried sftp too, no luck.  
Initially had some permission issues with cache and log folders. Changed permissions and got past that.  
I’ve installed composer, gave me problems until I brought curl up to date.

Anyway, I’m simply getting a 404 error on the install page.  
See here: [http://tools.o6n.com/mautic/](http://tools.o6n.com/mautic/)

What am I doing wrong??

---

<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:** [February 26, 2015, 6:57pm UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589/3 "2015-02-26T18:57:09Z")

</div>

Hi Ardit:

To me it looks like you probably have a server config issue most likely related to the fact you’re running Nginx instead of apache as your web server.

By default Mautic comes with a .htaccess file which acts on Apache’s webserver for mod\_rewrite. Nginx doesn’t have mod\_rewrite so you’ll need to configure Nginx to do the same things as mod\_rewrite.

To set this up and make it work, check out Symfony’s guide on configuring Nginx:

[http://symfony.com/doc/current/cookbook/configuration/web\_server\_configuration.html#nginx](http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html#nginx)

And you’ll need to make some changes. They have notes on app.php and app\_dev.php. We don’t use those, we use index.php and index\_dev.php, so you need to change their guidelines to be directed to those files.

Also, we have .htaccess files to prevent direct access to:

app/logs  
app/cache  
app/config

You should use nginx to prevent direct access to these directories as well for security reasons.

---

<div class="post-metadata">

**Author:** ![ardit](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@ardit](https://forum.mautic.org/u/ardit)\
**Post date:** [February 26, 2015, 9:57pm UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589/4 "2015-02-26T21:57:51Z")

</div>

I tried following their example. Didn’t do it for me. It’s definitely a configuration problem, but it’s above my knowledge levels.

I’ve officially given up on this happening for now. I’ll put together a new VPS with a LAMP stack and I’ll see where that takes me.

Thanks for the help though.

---

<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:** [February 27, 2015, 2:42am UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589/5 "2015-02-27T02:42:24Z")

</div>

Hi Ardit

I feel your pain

I’ve literally spent all day dinking around with nginx via vagrant and run into tons of issues with permissions, routing, etc… Its not quite as easy as it seems for sure!

I’m still working on it and also writing a tutorial which, as soon as I get it working, I will happily share with you.

That said, Apache will likely be a far easier route to go at this point if you want to get up and running quickly.

---

<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:** [February 27, 2015, 5:04am UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589/6 "2015-02-27T05:04:29Z")

</div>

Hi Ardit

Another reply here, I’ve finally been ale to get Mautic to run on Nginx! I wrote a guide which you can view here:

[https://docs.google.com/a/websparkinc.com/document/d/1DwaHnlMtDAzZ9jHe98M\_Z33cYrLmnKNPr0ydZPG\_wy4/edit#](https://docs.google.com/a/websparkinc.com/document/d/1DwaHnlMtDAzZ9jHe98M_Z33cYrLmnKNPr0ydZPG_wy4/edit#)

If you have the spare time and want to play around with it, I’d love your feedback so we can improve the document as a resource for anyone who wishes to do this. I’d recommend using the vagrant box so you don’t need to mess around with your production VPS.

Cheers!

---

<div class="post-metadata">

**Author:** ![ardit](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@ardit](https://forum.mautic.org/u/ardit)\
**Post date:** [February 27, 2015, 7:15pm UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589/7 "2015-02-27T19:15:51Z")

</div>

This is great!

I’m going to run through it this weekend and I’ll let you know what happens.

---

<div class="post-metadata">

**Author:** ![ardit](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@ardit](https://forum.mautic.org/u/ardit)\
**Post date:** [March 26, 2015, 4:32am UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589/8 "2015-03-26T04:32:33Z")

</div>

Took me a while to get to this, but I tried it with no luck. 404 error…

---

<div class="post-metadata">

**Author:** ![loneview](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@loneview](https://forum.mautic.org/u/loneview)\
**Post date:** [March 26, 2015, 11:53am UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589/9 "2015-03-26T11:53:40Z")

</div>

I fared better with a LAMP stack on DigitalOcean. Still had some hoops to jump thru to get everything going

---

<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:** [March 26, 2015, 4:47pm UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589/10 "2015-03-26T16:47:54Z")

</div>

Glad to hear it!

One trick I figured out recently: If you use the Wordpress image from Digital ocean, and then just don’t install wordpress and upload Mautic instead, it’ll save you tons of time. The build comes with pretty much everything you need for Mautic. I had to set PHP Timezone and set up DNS, that was it. Pretty simple, great results.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 11:00pm UTC](https://forum.mautic.org/t/installation-problems-on-lemp-stack/1589/11 "2020-02-02T23:00:31Z")

</div>


