PHPSolved

PHPSolved

Daily struggles of web developer

Skip to content

Jan in Linux | 2023-03-29

Elastic Beanstalk – “You cannot remove an environment from a VPC. Launch a new environment outside the VPC.”

This error may occur on macbook – just make sure you are actually packing up the application right.

You should be in the application folder and run

~/myapp$ zip ../myapp.zip -r * .[^.]*

That solves 99% of issues. Otherwise the zip contains hidden files etc.

in Linux | 2023-03-29 | Comment

How to get Certificate Chain from certificate

To obtain certificate chain from a local file:

openssl x509 -noout -subject -issuer -in domain.com.crt

To obtain certificate chain from a domain:

openssl s_client -connect domain.com:443 -showcerts
in Linux | 2021-04-02 | Comment

Ubuntu – The following signatures were invalid: EXPKEYSIG

On latest Ubuntu I got this error

The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging yarn@dan.cx

To fix it, just run following command

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
in Linux | 2021-02-10 | Comment

Docker – The container name “xx” is already in use by container

When building the same app again ( e.g. you get a different source code from production, or somewhere outside of the usual GIT ), you need to remove the old one from Docker first. To do so, you first need to list all your dockers

docker ps -a

here you will see container ID of the old docker. Then just remove it.

docker rm {ID}

in Linux | 2021-01-24 | Comment

AWS Elastic Beanstalk: invalid YAML or JSON error when uploading zip file from MAC OS

The issue is caused by your macbook. You need to remove all Macosx folders automatically generated in the zip file. Like this

zip -d file.zip __MACOSX/\*
in Linux | 2020-10-25 | Comment

Post navigation

Recent Posts

  • Elastic Beanstalk – “You cannot remove an environment from a VPC. Launch a new environment outside the VPC.”
  • How to get Certificate Chain from certificate
  • Ubuntu – The following signatures were invalid: EXPKEYSIG
  • Docker – The container name “xx” is already in use by container
  • AWS Elastic Beanstalk: invalid YAML or JSON error when uploading zip file from MAC OS
  • Uncaught The type apostrophe-login is not defined.
  • nginx – php value / ini_set for specific url
  • Sudo stop asking for password
  • add-apt-repository: command not found
  • gpg: can’t connect to the agent: IPC connect call failed
  • Remove all duplicates from database except for the first
  • Backup huge mysql database
  • Laravel in subdirectory – nginx vhost setup
  • Sort files by time modified
  • Make Git ignore Mode changes
  • Insightly CRM API can’t add a new TAG
  • Laravel Facebook Login guide how-to
  • Get Laravel version
  • PrestaShop – check product category in smarty .tpl
  • Git diff can’t parse utf-8 characters – instead it shows weird <8F>
  • Can’t install Let’s Encrypt certificate through Plesk after update
  • Allow Facebook to test your Open Graph meta tags ( og debugger ) with htpasswd password
  • How to change the webview background color on PhoneGap iOS
  • Laravel strip all cookies and session data from JSON output
  • file_get_contents always returns false
  • WordPress – adjust maximum memory limit
  • Laravel – remove vendor from git
  • PHP – How to trim all values in array
  • http to https redirect infinite loop problem
  • CentOS time is incorrect by few seconds or minutes
  • [Laravel 5] Call to undefined method Illuminate\Foundation\Bootstrap\ConfigureLogging::configureHandler()
  • WordPress – remove emoji scripts
  • WordPress disable theme update
  • Speed up Woocommerce WordPress
  • Change Last Modified and Creation Dates on Linux or Mac OS X
  • Youtube iframe and Analytics tracking
  • Laravel 5 installation error – Parse error: syntax error, unexpected ‘class’ (T_CLASS)
  • Braintree Paypal – Please try a different payment method
  • Centos7 Plesk 17.0 mu14 error updating psa-mail-driver-common
  • LibClamAV Warning: *** The virus database is older than 7 days! ***
  • rsync between servers – how to filter by file extension
  • Plesk 17.x courier-imaps: Maximum connection limit reached for IP
  • CentOS 7 – stdatomic.h: No such file or directory
  • CentOS7 httpd permission denied for write, even with 777 permission
  • CentoOS 7 – color terminal
  • mongodb.so: undefined symbol: php_json_serializable_ce in Unknown on line 0
  • CentOS7 php redis server – permission denied
  • Run nodejs application in background
  • Convert unix timestamp to human readable date in MySQL select
  • Laravel – The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
  • phpMyAdmin blowfish secret generator
  • Your privilege table structure seems to be older than this MySQL version!
  • Apache access log count IP addresses
  • UFW firewall installation on Ubuntu
  • DrawerJS unofficial documentation
  • Your branch is ahead of ‘origin/master’ by 1 commit.
  • Ubuntu 16 – how to increase maximum file open limit ( ulimit -n )
  • mount point XYZ is itself on a OSXFUSE volume
  • Find out ‘open files’ limit for apache user
  • Display errors in PHP file
  • Rebuild software RAID1 after disk failure – cent os
  • Free SSL certificate – how to
  • Compress and unpack directory in Ubuntu using TAR
Copyright ©2023 LJ Studio, s.r.o., Panónska cesta 6, Slovakia.
WP Theme Independent Publisher.