资源描述:
《apache mysql php for linux全攻略(apache mysql php的linux全攻略)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、apache+mysql+phpforlinux全攻略(Apache+MySQL+PHP的Linux全攻略)Apache+mysql+phpforLinuxRaidersSource:xnux.cnAuthor:xnux.cnreleasetime:2007-05-29DownloadMySQL,PHP,ApacheSuiteWhatpackagesdoyouneedtobuildsuchamainframe?No:Apache,MySQLandPHP!Apache:atpresent,Apachehasbeenoutofthe2.0.Xversion,butthemostwidelyused
2、orbelongtothe1.3.Xversion,thisversioniscurrentlythelatestversionof1.3.20,youcanApacheonthemainpagetoseerelatedinformation:Apachehomepage(English):ApacheSuite(downloadedfromhomepage):PHP:thelatestversionis4.0.6(June2001outOh),youcanonthemainpageofPHPtoseesomeofthestuff!PHPhomepage(English):PHPhomepag
3、edownload:MySQL:thelatestversionis3.23.41,andyoucanalsogototheMySQLofficialwebsitetoseeit!MySQLhomepage(English):MySQLhomepagedownload:Thatistosay,weneedthreefiles,namely:Apache-1.3.20.tar.gzPhp-4.0.6.tar.gzMysql-3.23.41.tar.gzInstallMySQL,PHP,andApacheIttakescaretoinstallthesethreepackages,becausey
4、oumightnotbeabletogetthelatestsuiteversionwhenusingtheRPMupgrade,sohereweusethemostprimitivesourcecodeupdatemethod.Theinstallationmethodisasfollows:Removetheoldversionofthedrumanddecompression:Removetherelevantolddata,andifyouareRedHat6.1,thenyoucanremovethefollowingsuitefirst![root@tsai,/root]#,RPM
5、,-e,mod_perl[root@tsai,/root]#,RPM,-e,phpfi[root@tsai,/root]#,RPM,-e,ApacheSure,ifyou'veinstalledanolderversionofApache,PHP,orMySQL,youcanalsoremoveit.Actually,it'sapersonalhabit.Somepeopleliketosavetwoversionsintheirsystem.Ifyouwanttoinstalltwoversionsinyoursystem,thenyoudon'tneedtoremovetheRPMinst
6、allationkit!However,inordertofearsystemconflicts,youhavetocancelhttpd,PHP,andMySQLserviceswiththesetupprogram!Decompress:IfyouputthethreefilesofApache,MySQL,andPHPinthe/home/testdirectory,andthenextractthedataintothe/usr/local,youcandoso:[root@tsai/root]#CD/usr/local[root@tsai,local]#,tar,-zxvf,/hom
7、e/test/apache_1.3.20.tar.gz[root@tsai,local]#,tar,-zxvf,/home/test/mysql-3.23.41.tar.gz[root@tsai,local]#,tar,-zxvf,/home/test/tar,-zxvf,/test/php-4.0.6.tar.gzIn/usr/local,therewillbemorethanthreedire