Install Chrome as the www-data User

After recently rebuilding the 4RoadService web server on Debian 13, Browsershot wasn't working right. It wasn't working at all. We run Laravel on a slightly old-school LAMP setup with PHP-FPM, and run the Laravel workers as the www-data user, the same user that runs the web server, so that user needed to be able to run puppeteer and Chrome, which wasn't possible with each user having its own nvm/node/npm installation. Installing Node & NPM Globally The Node docs now suggest installing […]

https://johnbeales.com/2026/install-chrome-as-the-www-data-user/

Scriptable Headless Browsers 101: PhantomJS vs. Headless Chrome/Chromium vs. Headless Firefox

Like cURL, but for executing JavaScript, handling external resources, and interacting with webpages programmatically.