Script to install PHP in Replit from source.
Run this to install PHP 8.0
curl https://raw.githubusercontent.com/chillfox/php-download.sh/main/php-download.sh | bash -s 8.0
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