Skip to content

Instantly share code, notes, and snippets.

@szihaj
Last active September 20, 2023 15:09
Show Gist options
  • Save szihaj/b1c2e6e14eb4dd939f57e0eb46a47ab1 to your computer and use it in GitHub Desktop.
Save szihaj/b1c2e6e14eb4dd939f57e0eb46a47ab1 to your computer and use it in GitHub Desktop.
How to install PHP 5.3 on Ubuntu
sudo add-apt-repository ppa:sergey-dryabzhinsky/php53
sudo apt-get update
sudo apt-get install php53-common php53-cli
# to see a list of available packages:
# apt-cache search php53
# ex.: sudo apt-get install php53-mod-mysql
# Apache module:
sudo apt-get install libapache2-mod-php53
# - disable current php module, for example:
sudo a2dismod php7.0
# - then, enable php5.3 module:
sudo a2enmod php53
# - restart webserver:
sudo service apache2 restart
# Modules:
# ppa:sergey-dryabzhinsky/php53-modules
@samuraiohelson
Copy link

hi, when i run sudo apt-get install php53-mod-mysql, i got that error:

php53-mod-mysql : Depends: libssl101r (>= 1.0.1d) but it is not installable

help please im using ubuntu 16.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment