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

The script can install any versions of PHP that are listed on: https://www.php.net/downloads

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

./php-download 8.0

GitHub: https://github.com/chillfox/php-download.sh

You are viewing a single comment. View All
Profile icon
MiaChillfox

Hi

@Luigga2211

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.