Category : amazon-ec2

I have setup ES and kibana on EC2 AWS (Only for testing purpose) and made it public so that it can be accessed from laptop to test few things… sudo docker pull docker.elastic.co/elasticsearch/elasticsearch:7.15.0 sudo docker run -d -p 9200:9200 -p 9300:9300 –name es-service -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.15.0 sudo docker pull docker.elastic.co/kibana/kibana:7.15.0 sudo docker run -d –link ..

Read more

kinda losing my faith on stackoverflow but what heck lets give it one more go: Okay, this is the issue: I am running a laravel sail "docker-compose.yml" on an AWS "t2.micro" free tier EC2 Instance and when I spin up the "docker-compose.yml file this is what I get: sudo ./vendor/bin/sail up -d 1 ⚙ Creating ..

Read more

I need to run "PHP artisan queue:work", I ec2 ubuntu using supervisor I install supervisor using "sudo apt install supervisor" and create a new configuration file using "sudo vim /etc/supervisor/conf.d/queue-worker.conf" and insert this [program:queue-worker] process_name=%(program_name)s_%(process_num)02d command=php /var/www/html/artisan queue:work autostart=true autorestart=true user=root numprocs=3 redirect_stderr=true stdout_logfile=/var/www/html/queue-worker.log when run "sudo supervisorctl reread" all services for the server stop ..

Read more

I’m totally new in deploying project on server. I am facing some issues. Could not solve it. My project path is /htdocs/projects/admin inside /htdocs/furusato -> there are some other project running. inside /etc/apache2/sites-available/000-default.conf “`DocumentRoot /home/office_user/htdocs ErrorLog /home/office_user/logs/error.log CustomLog /home/office_user/logs/access.log combined <Directory /home/office_user/htdocs> Options Indexes FollowSymLinks AllowOverride All Require all granted“` and admin/public/.htaccess “`<IfModule mod_rewrite.c> <IfModule ..

Read more

I’m deploying a laravel app to AWS EC2 everything is working fine except all POST requests from Postman are getting 403 Forbidden. The Postman requests are in api.php file not web.php so VerifyCsrfToken Middleware is not applied on them Forbidden (403) CSRF verification failed. Request aborted. You are seeing this message because this site requires ..

Read more

I am using aws-sdk in laravel, and launch an instance successfully using ec2client. After successful launch. I want to access again ec2 instance through InstanceID and execute some bash/shell/linux commands, not at launch of instance but later whenever i want is it possible to do it through PHP aws-sdk. $ec2Client = AWS::createClient(‘ec2’); $result = $ec2Client->runInstances(array( ..

Read more