Ubuntu linux 安裝 PHP5.3.0的命令
剛剛手頭有臺(tái)機(jī)器剛裝了 ubuntu, 編譯了一下 LAMP 系統(tǒng), PHP 5.3.0 改動(dòng)比較大。 第一眼看到的 php.ini 文件里已經(jīng)變動(dòng)了。 感覺比一以前版本的舒服點(diǎn)了。 有了開發(fā)環(huán)境和生產(chǎn)環(huán)境的配置區(qū)分了。 詳細(xì)的以后慢慢了解了。 貌似增強(qiáng)了很多功能。 從 phpinfo() 里看出來的。 放出一張/剛測(cè)試出的phpinfo()截圖, 后面張貼一下本次編譯的命令記錄。
看看編譯的一堆命令。 有需要的朋友可以拿去參考一下。
sudo apt-get install build-essential gcc make autoconf automake1.9 libtool sudo apt-get install zlib1g-dev libdb-dev tar -jxf apr-1.3.5.tar.bz2 -C ../builds/ tar -jxf apr-util-1.3.7.tar.bz2 -C ../builds/ tar -zxf httpd-2.2.11.tar.gz -C ../builds/ cd ../builds/ cd apr-1.3.5/ ./configure make sudo make install cd ../apr-util-1.3.7/ ./configure --with-apr=/usr/local/apr --with-berkeley-db=/usr make sudo make install cd ../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-config make sudo make install sudo apt-get install libxml2 libxml2-dev tar -zxf neon-0.28.4.tar.gz -C ../builds/ tar -zxf zlib-1.2.3.tar.gz -C ../builds/ tar -zxf expat-2.0.1.tar.gz -C ../builds/ tar -zxf subversion-1.6.2.tar.gz -C ../builds/ mkdir ../builds/subversion-1.6.2/sqlite-amalgamation tar -zxf sqlite-amalgamation-3.6.13.tar.gz cp sqlite-3.6.13/sqlite3.c ../builds/subversion-1.6.2/sqlite-amalgamation/ rm -rf sqlite-3.6.13 cd ../builds/neon-0.28.4/ ./configure make sudo make install cd ../zlib-1.2.3/ ./configure --prefix=/usr/local/zlib make sudo make install cd ../expat-2.0.1/ ./configure make sudo make install cd ../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 install tar -zxf mysql-5.0.83-linux-i686-icc-glibc23.tar.gz sudo mv mysql-5.0.83-linux-i686-icc-glibc23 /usr/local/mysql cd /usr/local/mysql/ sudo groupadd mysql sudo useradd -g mysql mysql sudo scripts/mysql_install_db --user=mysql sudo chown -R mysql . sudo chgrp -R mysql . sudo chown -R root . sudo chown -R mysql data cd support-files/ sudo cp my-medium.cnf /etc/my.cnf sudo gedit /etc/my.cnf sudo ./mysql.server start cd ../bin ./mysqladmin -u root password 'mypassword' ./mysql -u root -p cd ../support-files/ sudo ./mysql.server stop sudo apt-get install flex libpng12-0 libpng12-dev libltdl3-dev sudo ln -sf libpng12.so.0 libpng.so tar -zxf curl-7.19.5.tar.gz -C ../builds/ tar -zxf jpegsrc.v6b.tar.gz -C ../builds/ tar -zxf freetype-2.3.9.tar.gz -C ../builds/ tar -zxf libmcrypt-2.5.8.tar.gz -C ../builds/ tar -zxf mhash-0.9.9.9.tar.gz -C ../builds/ tar -zxf php-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 install cd ../jpeg-6b/ sudo mkdir /usr/local/jpeg sudo mkdir /usr/local/jpeg/bin sudo mkdir /usr/local/jpeg/lib sudo mkdir /usr/local/jpeg/include sudo mkdir /usr/local/jpeg/man sudo mkdir /usr/local/jpeg/man/man1 ./configure --prefix=/usr/local/jpeg --enable-shared --enable-static make sudo make install cd ../freetype-2.3.9/ ./configure --prefix=/usr/local/freetype2 make sudo make install cd ../libmcrypt-2.5.8/ ./configure --prefix=/usr/local/libmcrypt make sudo make install cd ../mhash-0.9.9.9/ ./configure --prefix=/usr/local/libmhash make sudo make install cd ../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
相關(guān)文章
詳解怎樣在Linux中配置靜態(tài)網(wǎng)絡(luò)連接
這篇文章主要介紹了詳解怎樣在Linux中配置靜態(tài)網(wǎng)絡(luò)連接,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2019-05-05logrotate實(shí)現(xiàn)日志切割方式(轉(zhuǎn)儲(chǔ))
這篇文章主要介紹了logrotate實(shí)現(xiàn)日志切割方式(轉(zhuǎn)儲(chǔ)),具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2023-05-05Linux中設(shè)置路由以及虛擬機(jī)聯(lián)網(wǎng)圖文詳解
這篇文章主要介紹了Linux中設(shè)置路由以及虛擬機(jī)聯(lián)網(wǎng),文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2019-04-04Centos 6.8編譯安裝LNMP環(huán)境(Nginx+MySQL+PHP)教程
這篇文章主要介紹了關(guān)于CentOS 6.8中編譯安裝LNMP環(huán)境的相關(guān)資料,LNMP即Linux,Nginx,MySQL,PHP,文中通過一步步的步驟介紹的非常詳細(xì),需要的朋友可以參考借鑒,下面來一起看看吧。2017-03-03apache中使用mod_gnutls模塊實(shí)現(xiàn)多個(gè)SSL站點(diǎn)配置(多個(gè)HTTPS協(xié)議的虛擬主機(jī))
這篇文章主要介紹了apache中使用mod_gnutls模塊實(shí)現(xiàn)多個(gè)SSL站點(diǎn)配置,也就是多個(gè)HTTPS協(xié)議的虛擬主機(jī)配置方法,需要的朋友可以參考下2014-06-06