Skip to content
← Back to Community
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

Voters
Profile icon
bholtbholt
Profile icon
5pengoo
Profile icon
Ehnryu
Profile icon
Mooping
Profile icon
MiaChillfox
Comments
hotnewtop
Profile icon
Luigga2211

if i was on bash what would be the run command

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.