Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » File Config » Update PHP4 to PHP5 on Debian Linux

Update PHP4 to PHP5 on Debian Linux

Most of the users in debian is having troble to find itout how to install PHP5 in Debian.I am going to give the instructions how to install in debian

If you want to install PHP5 from debian packages you need to enter the one of the source list in your /etc/apt/sources.list file

deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all

or

deb http://people.debian.org/~dexter php5 sarge
deb-src http://people.debian.org/~dexter php5 sarge

Now you need to save your file and run the following command to take our new changes effect

#apt-get update

Install PHP5 in debian

#apt-get install PHP5

This will install PHP5 in debian

If you want to install any other supported packages you need to install using the following command

#apt-get install libapache2-mod-php5 libapache2-mod-perl2 php5 php5-cli php5-common php5-curl php5-dev php5-domxml php5-gd php5-imap php5-ldap php5-mcal php5-mhash php5-mysql php5-odbc php5-pear php5-xslt

that’s it you have installed PHP5 in your machine. If you want to check the PHP version you run the following command

#php -v

Filed under: File Config

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>