Skip to content
Script to install PHP 7.3, 7.4 and 8.0
Profile icon

The script can install any versions of PHP that are listed on:

The major and minor version to be installed must be passed to the script like this:

./php-download 8.0


You are viewing a single comment. View All
Profile icon



This script was written before Replit changed to using Nix.

With the new Nix environment you can enable PHP 8.0 like this:

  • Click the 3 dots in the Files browser.
  • Click "Show config files"
  • Open the file called "replit.nix"
  • Change "pkgs.php74" to "pkgs.php80"
  • Restart the reply

If you still want to try and use the script then you can simply run in in bash by typing: ./php-download 8.0

But unfortunately, I don't think it works anymore under the Nix environment.