DylanBaine.com / Browse / How to install Headless Chrome on a Laravel Forge server for chrome-php.

How to install Headless Chrome on a Laravel Forge server for chrome-php.

This post will go over how I installed chromium binary on a Laravel Forge server.

I have a PHP Application hosted that leverages the chrome-php package. This is a Vultr Compute VM server is managed by Laravel Forge. In order to install the chrome binary I had to ssh into my vultr server and run the following commands:

  • sudo add-apt-repository ppa:phd/chromium-browser To add the chromium browser to the package manager repository for your server.
  • sudo apt update Update the package manager so that the new repository will be used.
  • sudo apt install -y chromium-browser Install the chrome browser
  • sudo apt --fix-broken install To install any missing dependancies
  • google-chrome To verify installation.