Giter Club home page Giter Club logo

elasticbeanstalk-nginx-php's People

Contributors

al3xdm avatar alanreynosov avatar rubas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

elasticbeanstalk-nginx-php's Issues

nginx won't start

I'm installing per the instructions, but nginx won't start. If I try to login and start it manually it gives me this error:

nginx: [emerg] getpwnam("elasticbeanstalk") failed in /etc/nginx/nginx.conf:11

The AMI you reference is probably a legacy container and doesn't exist. I used this one: ami-1624987f

autostart turned off?

Hi,

Out of interest, why does the build script turn off the autostart on boot (chkconfig) options? Does another system start nginx when booting up a new instance or restarting one?

Cheers,

Rob

Composer not running on deployment

I have a composer.json in my root directory and I installed using --composer - but post deploy there is no vendor directory.

To try to compensate I added postDeploy.sh with the following contents

curl -s https://getcomposer.org/installer | php
php composer.phar
rm -f composer.phar
rm -r composer.json
rm -f ${0##*/}

I find postDeploy that the postDeploy.sh file is still there and doesn't seem to have run

references to subdirectories forward to port 8080?

Thanks for writing the cool software.

I deployed my app to it. If I hit / I get index.php and that works great.

Trying to hit /signin (a directory containing an index.php file) results in the following

curl -v http://php.zork.com/signin/

  • About to connect() to php.zork.com port 80 (#0)
  • Trying XXX.XXX.XXX.XXX... connected
  • Connected to php.zork.com (XXX.XXX.XXX.XXX) port 80 (#0)

    GET /signin HTTP/1.1
    User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
    Host: php.zork.com
    Accept: /

    < HTTP/1.1 301 Moved Permanently
    < Accept-Ranges: bytes
    < Age: 0
    < Content-Type: text/html
    < Date: Sat, 01 Dec 2012 21:19:04 GMT
    < Location: http://php.zork.com:8080/signin/
    < Server: nginx
    < Via: 1.1 varnish
    < X-Varnish: 208411340
    < Content-Length: 178
    < Connection: keep-alive
    < <title>301 Moved Permanently</title>

    301 Moved Permanently


    nginx
  • Connection #0 to host php.zork.com left intact
  • Closing connection #0

If I disable varnish this should resolve?

git aws.push breaks the environment

The first deployment is OK, subsequent ones produce errors - errors can't be viewed (choosing show errors in the environment panel does nothing) and the app never works again unless I do a "rebuild environment".

I'm kind of done with this thing but I thought I'd let you know.

There is nothing in the log snapshot either BTW.

ElasticBeanstalk issues with long Composer

We're using a forked version of this project to deploy a PHP Project on ElasticBeanstalk.

It runs perfectly after a bit of fpm / nginx config tuning, however we have an issue with the initial deployment.

We need to load in a number of Composer dependencies (~15) and a couple of them are large repos (Zend Framework 2 is a big issue). The whole process inside the postDeploy.sh script can take 4-5 minutes, during which time the Host Manager fails to respond with an OK status and the ELB also changes into an Unavaliable state.

Are there any currently:

  1. Any ways to avoid the old version of the app being taken out of rotation before the new one is successfully deployed.

  2. Any plans to change the behaviour, e.g create a completely new deploy folder per version of the application, which is symlinked to /var/www/html only once the deployment is completed?

At the moment we have to have 3 versions of our production environment on ElasticBeanstalk otherwise we have ~10mins of downtime per deploy. We have to manually update the root domain DNS to point to the most up-to-date environment once the environment has corrected itself. This means we can end up with x3 the AWS cost.

HostManager Snapshotting logs

Whilst replacing Apache with Nginx one of the default HostManager directory configs seems to have been missed. When I try and snapshot the instances logs from the Console I get a blank page.

Looking at HostManager, this error is in the log:

/usr/bin/tail: cannot open `/var/log/httpd/error_log' for reading: No such file or directory

Issue with Permissions

First off, amazing find. I've been wanting to use NGINX with ELB for the longest time. Thank you thank you.

I'm having one issue with setting up the AMI. I've enabled Composer. One I build the application, it eventually fails because it fails the health check. I try to SSH into the instance. NGINX is off and I try to start it and I get this error:

service nginx res[ec2-user@ip-10-158-27-69: ~] $ service nginx start
Starting nginx: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2012/11/28 21:18:03 [warn] 2093#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:26
2012/11/28 21:18:03 [emerg] 2093#0: mkdir() "/var/lib/nginx/tmp/client_body" failed (13: Permission denied)
                                                           [FAILED]

Any ideas?

Multiple Versions of PHP

I was wondering if it's possible to support multiple versions of PHP. I know I can just edit the build file but having it built in would be even better?

Thanks!

Some Modification needed

Thank you for this great stuff. I need some modification.

I need eaccelecrator instead of APC, want to use nginx itself as reverse proxy instead of varnish, how can I modify your build. I will install Magento on this modified environment.

Log rotation doesn't work

I have created new instance form elastic beanstalk standard AMI, then applied this build, all have been installed properly. I've created new AMI out of that instance, launched new Elastic Beanstalk environment with new AMI.
All seem to be working fine, but I can't see rotated logs into my S3. The event log of the enviroment says, that logs are being rotated to S3, but I couldn't see them there.

Would you be kind to suggest me something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.