Category : amazon-ec2

I am a bit new to aws I used aws elastic beanstock to create a php 7 deployment for a laravel project which runs perfectly on my laptop. then uploaded my laravel project files, edited the .env file Now I’m getting 404 Not Found error On the elastic beanstalk console, the health of the server ..

Read more

Im trying to implement laravel websockets and trying to access dashboard. http://127.0.0.1:8000/laravel-websockets Address leads me to the dashboard on my local machine but when i host it and try www.mysite.com/laravel-websockets, it shows that the page doesn’t exist. Im using this package for laravel websockets and AWS EC2 Instance for hosting. broadcasting.php <?php return [ /* ..

Read more

enter image description here I tried installing Laravel packages on my EC2 server on AWS via puTTY but everytime i run installation commands for a Laravel package, It shows a warning message (as shown in the image) and after that crashes with the same message: In RemoteFilesystem.php line 560: The "http://repo.packagist.org/p/provider-2013%24373e592feb042f51b8ed82f090 6531e330bdd926e48324f0393ad8c54afb6b5c.json" file could not ..

Read more

Install redis and everything you need, both locally and on your AWS instance. The project works fine locally, but on the AWS instance it is not listening for events. My project config: laravel-echo-server.json: "authHost": "http://laravel-echo.prueba", "authEndpoint": "/broadcasting/auth", "clients": [ { "appId": "8e68e645703c9004", "key": "63d2488fa6f11f844b985da0528d3975" } ], "database": "redis", "databaseConfig": { "redis": { }, "sqlite": { ..

Read more

I am deploying a Laravel REST API in Amazon EC2 and using Application Load Balance (ALB) as reverse proxy. So, the architecture is basically Client -> Route 53 (resolve DNS) -> Load Balancer ALB (reverse proxy) -> EC2 instance with Ubuntu and my Laravel Application. Since Laravel uses Symfony library to handle proxies, I followed ..

Read more

On my production server, I’m frequently facing memory problem. apache error log frequently logging this error. 856685.751702] Out of memory: Kill process 29946 (httpd) score 12 or sacrifice child [856685.757737] Killed process 29946 (httpd) total-vm:585720kB, anon-rss:25324kB, file-rss:0kB, shmem-rss:72kB In the Laravel Log file, I have this error is logging frequently. [2021-01-29 07:10:45] local.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Out ..

Read more

The application is deployed at http://impexonlinedata.com/ . This is the only application deployed on EC2 instance of t2.xlarge instance size. Barely any CPU usage (less than 1 %). Same for memory. There is enough space on the server. The database is an RDS instance(t2.small) with barely any CPU usage as well. Every page is taking ..

Read more

What type of EC2 Instance should I use for a data management Laravel Website? We are using a AWS RDS database along with the EC2 Instance. Most of the Processing(in fact approx. 85%) that is done in the website is Read/Write operations from the database. There are some REST APIs that are also accessed every ..

Read more

I have a working file upload on my vuejs(dashboard) & laravel(restful api), its all working properly on my local dev environment, but when I deploy it on my aws es2 instance, it has error saying : InvalidArgumentException: The putObject operation requires non-empty parameters: Bucket Bucket in file /var/www/api.myapp.com/public_html/myapp-be/vendor/aws/aws-sdk-php/src/InputValidationMiddleware.php I wonder if Storage::disk(‘s3′)->put($file_path.’/’.$file_name, base64_decode($file)); stores the ..

Read more

I have 2 apps, 1 for dashboard (VueJS) and 1 for api (Laravel)… In my laravel, I have an api function that uploads an image to my s3 bucket : class ImageController extends Controller { public function __construct() { $this->middleware(‘auth:api’, [‘except’ => [‘uploadImage’]]); $this->middleware(‘cors’); } public function uploadimage(Request $request) { $disk = Storage::disk(‘s3′); $disk->put($request->path.’/’.$request->file_name, base64_decode($request->file)); ..

Read more

I’m unable to send emails from EC2 with sendmail in Laravel despite ports (587, 465) are open and Sendmail installed. I’m getting no error in the server and laravel logs. What probably can be the issue? Is this the firewall which is blocking or something else? I’m using the following configurations in Laravel: MAIL_HOST=smtp.gmail.com MAIL_PORT=587 ..

Read more

I have build a small web application using Laravel, MySQL and React. This tutorial https://www.youtube.com/watch?v=ISVaMijczKc&ab_channel=Academind has helped uploading the application but it is giving 501 error now. I think the problem is with the React used with Laravel as frontend. Can someone suggest me a good source to deploy the Laravel-React app on AWS? Source: ..

Read more