Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Following services are not running: proxy @ AWS -- after Laravel re-config

I have Laravel application which I learned to run both with php artisan serve and with local Apache.

Now I wish to run the same on Amazon Beanstalk.

I have created Beanstalk instance for PHP7. Then I went to Amazon Linux console and installed composer there. I think this was unneeded step.

Next I acrhived all my Laravel project with ZIP and uploaded it to AWS with web console. First I got Forbidden error

enter image description here

as said here: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/php-laravel-tutorial.html

Then I fixed document root to public/ as said below and now I have health state severe saying

Impaired services on all instances.
Following services are not running: proxy.

When I am opening site with browser, I see blank page.

How to see any logs in AWS to understand what is happening?

What cen be a reason? Project is self-contained, it uses SQLite database inside the codebase. When I was enabling this project on local machine, I was to enable multiple things in Apache and PHP.

like image 381
Dims Avatar asked Mar 26 '17 08:03

Dims


People also ask

How do you use EB config?

yml . By default, the EB CLI saves the configuration settings with a configuration-name based on the environment name. You can specify a different configuration name by including the --cfg option with your desired configuration name when you run the command. You can tag your saved configuration using the --tags option.

What port for Elastic Beanstalk?

By default, Elastic Beanstalk configures the proxy to forward requests to your application on port 5000. You can override the default port by setting the PORT environment property to the port that your main application listens on.


1 Answers

It was the problem with ZIP file structure: it contained extra top directory inside. So, on AWS it was /var/app/current/myappname while should be just /var/app/current.

like image 87
Dims Avatar answered Oct 01 '22 05:10

Dims