欢迎来到天天文库
浏览记录
ID:51592889
大小:361.00 KB
页数:17页
时间:2020-03-25
《Linux系统第12章 Lamp整合.ppt》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、第13章LAMP整合重点、难点:掌握源码进行Apache与php整合掌握基于PHP论坛的架设1介绍什么是LAMPLinux操作系统Apacheweb发布服务程序Mysql关系数据库系统PHP网站开发语言1.1linux+apache+mysql+php2Apache与PHP的整合2.1动态网站技术的概念ASP+ACCESS(SQL-SERVER)PHP+MYSQL(ORACLE)JSP+MYSQL(ORACLE,SQL-SERVER)网站开发语言+数据库技术2.2源码安装Apache与PHP安装Apache开始安装和编译代码:./configure--prefi
2、x=/usr/local/apache--with-mysql=/usr/local/mysql--enable-track-vars--enable-cgi--enable-so--enable-mods-shared=all--with-config-file-path=/usr/local/apache/conf--prefix=/usr/local/apache指定把apahce安装到/usr/local/apache目录中;--enable-cgi支持CGI;--with-config-file-path=/usr/local/apache/conf指
3、定把apache的配制文件放在/usr/local/apache/conf中;比如httpd.conf配制文件就在这个目录中;--enable-track-vars为启动cookie的get/post等追踪功能--enable-soDSO功能--enable-mods-shared=all包含所有的模块为DSO如果需要更多的选项,可能通过下面的命令来查看;(./configure--help)makemakeinstall设置成开机自启动在/etc/rc.d/rc.local文件中加入一行/usr/local/apache/bin/apachectlstart这
4、样每次重新启动系统以后,apache也会随系统一起启动.安装PHP开始安装和编译代码:A先安装支持包(注意安装顺序)建立初始目录:mkdir/usr/local/modules#jpeg目录mkdir/usr/local/modules/jpeg6mkdir/usr/local/modules/jpeg6/binmkdir/usr/local/modules/jpeg6/libmkdir/usr/local/modules/jpeg6/includemkdir/usr/local/modules/jpeg6/manmkdir/usr/local/modules/
5、jpeg6/man/man1A1、安装zlibtarxzvfzlib-1.2.2.tar.gzcdzlib-1.2.2#不要用--prefix自定义安装目录,影响gd的安装./configuremakemakeinstallA2、安装freetypetarxzvffreetype-2.1.5.tar.gzcdfreetype-2.1.5./configure--prefix=/usr/local/modules/freetypemakemakeinstallA3、安装libpngtarxzvflibpng-1.2.5.tar.gz#不要用--prefix自定义安
6、装目录,影响gd的安装cdlibpng-1.2.5cpscripts/makefile.stdmakefilemaketestmakeinstallA3、安装jpegtarxzvfjpegsrc.v6b.tar.gz./configure--prefix=/usr/local/modules/jpeg6--enable-shared--enable-staticmakemakeinstallA4、安装GDtarxzvfgd-2.0.33.tar.gz./configure--prefix=/usr/local/modules/gd--with-jpeg=/usr
7、/local/modules/jpeg6--with-png--with-zlib--with-freetype=/usr/local/modules/freetypemakemakeinstall./configure--prefix=/usr/local/php--with-gd=/usr/local/modules/gd--with-jpeg-dir=/usr/local/modules/jpeg6--with-zlib--with-png--with-freetype-dir=/usr/local/modules/freetype--enable-mag
8、ic-quotes--w
此文档下载收益归作者所有