免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 780 | 回复: 0
打印 上一主题 下一主题

在linux5中构架LAMP [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-23 11:11 |只看该作者 |倒序浏览

               
1:在添加删除程序里把,网络服务的————“万维网”和“SQL数据库”的软件包全部安装完
2:在:/root/下建立一个目录;把相应的源代码包全部放到里面解压;(mkdir /root/soft)
3:安装APACHE辅助包;(cd /root/soft/httpd/httpd-2.2.9/srclib),安装apr 和apr-util包
(1)  ./configure
--prefix=/usr/local/apr --enable-threads --enable-other-child --enable-static(进apr目录进行安装)
make(编译)
             make install(开始安装)

(2)./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/(进apr-util目录进行安装)

   

(3)安装apache2 路径/usr/local/apache2

./configure --prefix=/usr/local/apache2 --enable-mods-shared=all
--enable-cache --enable-file-cache --enable-mem-cache --enable-disk-cache
--enable-static-support --enable-static-htpasswd --enable-static-htdigest
--enable-static-rotatelogs --enable-static-logresolve --enable-static-htdbm
--enable-static-ab --enable-static-checkgid --disable-cgid --disable-cgi
--with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --enable-ssl
--with-ssl=/usr/include/openssl

  
                        make(编译)
           make install(开始按装)




(4)安装php包
         解压PHP包

./configure
--prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs
--with-pear=/usr/share/pear --with-bz2 --with-libxml-dir=/usr
--with-mysql=/var/lib/mysql --with-mysqli=/usr/bin/mysql_config
--enable-sockets --with-openssl=/usr/

         



+--------------------------------------------------------------------+
|
License:                                                         
|
| This
software is subject to the PHP License, available in this     |
|
distribution in the file LICENSE.  By
continuing this installation |
| process,
you are bound by the terms of this license agreement.     |
| If you do
not agree with the terms of this license, you must abort |
| the
installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you
for using PHP.




只要出现以上的提示,就证明你全部检查成功,完了接下来就可以执行以下命令了






(5)安装论坛:
     1:先拷贝软件  PHPWind_UTF8_6[1].3.2
          解压到soft 目录下
               cd /root/soft
Upzip PHPWind_UTF8_6[1].3.2
Cd  
php-5.2.6
把PHPWIND这个目录拷贝到你要发布的目录下面
记得修改权限(chmod
775 phpwind)别忘了查看:install.txt(安装帮助)
记得把PHPWIND这个目录的权限改一下(chmod -R 775 PHPWIND)
Vi /usr/local/apapche2/conf/httpd.conf
把Document和dirctory两个目录改成你发布网页的目录
修改发布的网页类型,加上index.php
在IE上输地址进行访问和相应的设置


注意事项
1:rpm包安装的APACHE在:/usr/sbin/
源代码安装的APACHE在:你指定的目录下
2:在启动APACHE服务的时候,一定要看你当前是启动的哪一个,查看方法:ps -ef
|grep httpd(如显示的是/use/sbin下的则不是咱们要启动的APACHE服务,解决方法是把这个给停了,到咱们安装的目录下,一般是在指定的路径bin/目录下就行了,然后在启动)
3:全部安装完以后在配置APACHE配置文件的时候,记得DocumentRoot  和Directory所配置的路径就是你网站要发布的路径,并且要一样,然后记得把Directory index   (网页类型)加上index.php
           

You may have found a
problem in PHP.
We would like to send
this report automatically to the
PHP QA team, to give
us a better understanding of how
the test cases are
doing. If you don't want to send it
immediately, you can
choose "s" to save the report to
a file that you can
send us later.
Do you want to send
this report now? [Yns]: n
  

   这个是编译PHP的结果

make(编译)
make install(开始安装)


file:///C:/DOCUME%7E1/libo/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.png

PHPWind
Install Step finish
http://10.1.1.240/install.php
?
屏幕剪辑的捕获时间:
2008-10-30, 1:13

           只要出现上面的,你就大功告成了
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/93926/showart_1873189.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP