Ubuntu Linux Installation PHP5.3.0 command _linux

Source: Internet
Author: User
Tags bz2 curl mkdir phpinfo sqlite
Just have a machine just installed Ubuntu, compiled a LAMP system, PHP 5.3.0 changes are relatively large. The first sight of the php.ini document has been changed. Feels more comfortable than a previous version. The development environment is differentiated from the configuration of the production environment. The detailed later slowly understand. Seems to enhance a lot of features. I can see it from the Phpinfo (). Release a newly-tested phpinfo () screenshot, and post the compiled command record later.

Look at the compiled stack of commands. A friend in need can take it for reference.

Sudo Apt-get InstallBuild-essentialGcc Make Autoconfautomake1.9 LibtoolSudo Apt-get InstallZlib1g-dev Libdb-devTar -jxfapr-1.3.5.tar.bz2-C../Builds/ Tar -jxfapr-util-1.3.7.tar.bz2-C../Builds/ Tar -zxfHttpd-2.2.11.tar.gz-C../Builds/Cd../Builds/ Cdapr-1.3.5/./ConfigureMake Sudo Make InstallCd../apr-util-1.3.7/./Configure--with-apr=/Usr/Local/Apr--with-berkeley-db=/UsrMake Sudo Make InstallCd../httpd-2.2.11/./Configure--prefix=/Usr/Local/Apache2--enable-rewrite=shared--enable-dav=shared--enable-so --with-apr=/Usr/Local/Apr/Bin/apr-1-config--with-apr-util=/Usr/Local/Apr/Bin/apu-1-configMake Sudo Make InstallSudo Apt-get InstallLIBXML2 Libxml2-devTar -zxfNeon-0.28.4.tar.gz-C../Builds/ Tar -zxfZlib-1.2.3.tar.gz-C../Builds/ Tar -zxfExpat-2.0.1.tar.gz-C../Builds/ Tar -zxfSubversion-1.6.2.tar.gz-C../Builds/ Mkdir../Builds/subversion-1.6.2/Sqlite-amalgamationTar -zxfSqlite-amalgamation-3.6.13.tar.gzCpsqlite-3.6.13/Sqlite3.c../Builds/subversion-1.6.2/Sqlite-amalgamation/ Rm -rfsqlite-3.6.13Cd../Builds/neon-0.28.4/./ConfigureMake Sudo Make InstallCd../zlib-1.2.3/./Configure--prefix=/Usr/Local/ZlibMake Sudo Make InstallCd../expat-2.0.1/./ConfigureMake Sudo Make InstallCd../subversion-1.6.2/./Configure--prefix=/Usr/Local/Subversion--with-apxs=/Usr/Local/Apache2/Bin/Apxs--with-apr=/Usr/Local/Apr/Bin/apr-1-config--with-apr-util=/Usr/Local/Apr/Bin/apu-1-config--with-neon=/Usr/Local --with-zlib=/Usr/Local/Zlib--with-ssl Make Sudo Make InstallTar -zxfMysql-5.0.83-linux-i686-icc-glibc23.tar.gzSudo MvMysql-5.0.83-linux-i686-icc-glibc23/Usr/Local/MysqlCd /Usr/Local/Mysql/ SudoGroupadd MySQLSudoUseradd-GMySQL MySQLSudoScripts/mysql_install_db--user=mysqlSudo Chown -RMysql.Sudo Chgrp -RMysql.Sudo Chown -RRoot.Sudo Chown -RMySQL DataCdSupport-files/ Sudo CpMy-medium.cnf/etc/My.cnfSudoGedit/etc/My.cnfSudo./Mysql.server startCd../Bin./Mysqladmin-URoot password' MyPassword './Mysql-URoot-P Cd../Support-files/ Sudo./Mysql.server stopSudo Apt-get Install Flexlibpng12-0Libpng12-dev Libltdl3-devSudo ln -sflibpng12.so.0 libpng.soTar -zxfCurl-7.19.5.tar.gz-C../Builds/ Tar -zxfJpegsrc.v6b.tar.gz-C../Builds/ Tar -zxfFreetype-2.3.9.tar.gz-C../Builds/ Tar -zxfLibmcrypt-2.5.8.tar.gz-C../Builds/ Tar -zxfMhash-0.9.9.9.tar.gz-C../Builds/ Tar -zxfPhp-5.3.0.tar.gz-C../Builds/Cd../Builds/curl-7.19.5/ Sudo Mkdir /Usr/Local/Curl./Configure--prefix=/Usr/Local/Curl--with-ssl Make Sudo Make InstallCd../jpeg-6b/ Sudo Mkdir /Usr/Local/JpegSudo Mkdir /Usr/Local/Jpeg/BinSudo Mkdir /Usr/Local/Jpeg/LibSudo Mkdir /Usr/Local/Jpeg/IncludeSudo Mkdir /Usr/Local/Jpeg/Mans Sudo Mkdir /Usr/Local/Jpeg/Mans/Man1./Configure--prefix=/Usr/Local/Jpeg--enable-shared --enable-static Make Sudo Make InstallCd../freetype-2.3.9/./Configure--prefix=/Usr/Local/Freetype2Make Sudo Make InstallCd../libmcrypt-2.5.8/./Configure--prefix=/Usr/Local/LibmcryptMake Sudo Make InstallCd../mhash-0.9.9.9/./Configure--prefix=/Usr/Local/LibmhashMake Sudo Make InstallCd../php-5.3.0/./Configure--prefix=/Usr/Local/PHP \--with-apxs2=/Usr/Local/Apache2/Bin/APXS \--with-config-file-path=/Usr/Local/PHP \--with-openssl\--with-zlib\--with-zlib-dir=/Usr/Local/Zlib \--enable-bcmath\--enable-calendar\--with-curl=/Usr/Local/Curl \--with-curlwrappers\--enable-ftp\--with-gd\--with-jpeg-dir=/Usr/Local/JPEG \--with-png-dir=/USR \--with-freetype-dir=/Usr/Local/FREETYPE2 \--enable-gd-native-ttf \ --with-gettext \ --with-mcrypt= /usr /local /libmcrypt \ --with-mhash= /usr /local /libmhash \ --enable-mbstring \ --enable-exif \ -- with-mysql= /usr /local /mysql \ --with-pdo-mysql= /usr /local /mysql \  --with-mysqli= /usr /local /mysql /bin /mysql_config \ --with-xmlrpc \ -- ENABLE-SOAP \ --enable-sockets \ --enable-zip    sudo  cp php.ini-development /usr /local /php /php.ini  sudo gedit /usr /local /apache2 /conf / httpd.conf                 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.