Skip to content

Fix PHP installation in no-LTS version #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion install/terminal/libraries.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sudo apt install -y \
build-essential pkg-config autoconf bison clang rustc \
build-essential ppa-purge pkg-config autoconf bison clang rustc \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev mupdf mupdf-tools gir1.2-gtop-2.0 gir1.2-clutter-1.0 \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev libpq-dev postgresql-client postgresql-client-common
2 changes: 2 additions & 0 deletions install/terminal/select-dev-language.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ if [[ -n "$languages" ]]; then
;;
PHP)
sudo add-apt-repository -y ppa:ondrej/php
# Check the version of source.list file and replace $(lsb_release -sc) with noble
sudo sed -i "s/$(lsb_release -sc)/noble/g" /etc/apt/sources.list.d/ondrej-ubuntu-php-"$(lsb_release -sc)".sources
sudo apt -y install php8.4 php8.4-{curl,apcu,intl,mbstring,opcache,pgsql,mysql,sqlite3,redis,xml,zip}
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php --quiet && sudo mv composer.phar /usr/local/bin/composer
Expand Down
1 change: 1 addition & 0 deletions migrations/1747995850.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo apt install -y ppa-purge
2 changes: 1 addition & 1 deletion uninstall/dev-language.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [[ -n $languages ]]; then
;;
PHP)
sudo apt -y purge php8.4 php8.4-{curl,apcu,intl,mbstring,opcache,pgsql,mysql,sqlite3,redis,xml,zip}
sudo add-apt-repository -y --remove ppa:ondrej/php
sudo ppa-purge -y ppa:ondrej/php
sudo rm /usr/local/bin/composer
;;
Python)
Expand Down