I am running ubuntu 12.10 OS . I have recently installed the same on my system . Installation of apache2 seemed fine . But when i tried installing php 5.3 using a set of commands as below , i got the a bunch of issues to face .
sudo -i
wget http://in1.php.net/distributions/php-5.3.28.tar.bz2
tar -xvf php-5.3.28.tar.bz2
cd php-5.3.28
./configure
make
make install
As i run the command :
./configure
I get the below error :
checking libxml2 install dir... no
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.
Kindly help.
Thanks
Try this once .
This will downgrade your php version.
Download shell script from this link . once you have that .sh downloaded file. you need to change the permission using this command
sudo chmod 755 php5_4_downgrade_5.3.sh
Next you can run the script using this command
sudo sh php5_4_downgrade_5.3.sh
try this command only..
sudo apt-get install php5 libapache2-mod-php5
read this https://help.ubuntu.com/10.04/serverguide/php5.html
Update:
For specific php version try this commands.
sudo apt-get install php5=5.3.10-1ubuntu3.4 php5-cli=5.3.10-1ubuntu3.4 php5-common=5.3.10-1ubuntu3.4 libapache2-mod-php5=5.3.10-1ubuntu3.4
sudo apt-get install php5=5.3.10-1ubuntu3.4 php5-cli=5.3.10-1ubuntu3.4 php5-common=5.3.10-1ubuntu3.4 libapache2-mod-php5=5.3.10-1ubuntu3.4
sudo apt-get install php-pear=5.3.10-1ubuntu3.4 php5-curl=5.3.10-1ubuntu3.4 php5-gd=5.3.10-1ubuntu3.4 php5-intl=5.3.10-1ubuntu3.4 php5-mysql=5.3.10-1ubuntu3.4 php5-pspell=5.3.10-1ubuntu3.4 php5-recode=5.3.10-1ubuntu3.4 php5-snmp=5.3.10-1ubuntu3.4 php5-sqlite=5.3.10-1ubuntu3.4 php5-tidy=5.3.10-1ubuntu3.4 php5-xmlrpc=5.3.10-1ubuntu3.4 php5-xsl=5.3.10-1ubuntu3.4
have a look at this answer. https://askubuntu.com/a/220086/199645
仅尝试此命令
$ sudo apt-get install lamp-server^
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.