Install and Configure
PHP5 in Debain
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
Update php4 to php5
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
Now you need to run the following command to update the PHP4 to
PHP5 and this will install apache,mysql,ldap servers support for
php5 modules also.
#apt-get install libapache2-mod-php5 libapache2-mod-perl2 php5
php5-cli php5-common php5-curl php5-dev php5-gd php5-imap
php5-ldap php5-mhash php5-mysql php5-odbc 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