[Windows] Laravel behaving strange on Windows Server

You likely encounter those problem when developing Laravel Application using Windows Machine.

Symptoms:

  • Frequent Apache Crash (Connection reset)
  • “Access denied for user ‘homestead’@’localhost’ (using password: YES)”, even .env is set to different credential
  • .env setting drifting between two separate Laravel installations  (e.g. http://127.0.0.1:8080 .env setting applied to http://127.0.0.1:8081)

Continue reading “[Windows] Laravel behaving strange on Windows Server”

[Windows/Linux/Mac][PHP Deployer] Zero Downtime PHP Deployment

Deployer – https://deployer.org/
A zero downtime PHP deployment tool.

How it works?

Basically it SSH into the remote server, git clone to new folder, composer install, and create symlink to latest release folder
And optionally run database migration, restart PHP-FPM. If either step fails, it rollbacks the whole transaction.

Continue reading “[Windows/Linux/Mac][PHP Deployer] Zero Downtime PHP Deployment”