论坛: UNIX系统 标题: Apache+mysql+php+phpbb建论坛 复制本贴地址    
作者: TecZm [teczm]    版主   登录
teczm认为到目前为止,问题已有明确答案,本贴已被冻结,不再接受更多的回复

1.从各自官方网站取得程序:
httpd-2.0.54.tar.gz  mysql-4.1.12.tar.gz  php-4.4.0.tar.gz phpBB2017cn.rar
2.安装mysql
//创建运行mysqld用户
#pw groupadd mysql
#pw useradd mysql -g mysql -s /bin/sh

//编译安装
#./configure --prefix=/usr/local/mysql --with-charset=gb2312 --with-big-tables
#make
#make install

//创建mysql许可表
#/usr/local/mysql/bin/mysql_install_db

//拷贝示例my.cnf
#cp support-files/my-medium.cnf /etc/my.cnf (overwrite?-->yes)
//编辑my.cnf<见my.cnf配置>

//设置mysql程序目录权限
#chown -R root /usr/local/mysql
#chgrp -R mysql /usr/local/mysql
#chown -R mysql /usr/local/mysql/var

//启动mysql
#/usr/local/mysql/bin/mysqld_safe --user mysql &

//使用mysql的root连接mysqld
#/usr/local/mysql/bin/mysql -u root -p

//创建phpbb数据库
mysql>create databases phpbb;
mysql>quit

3.安装Apache2.0.54
#./configure --enable-so
#make
#make install

//编辑/usr/local/apache2/conf/httpd.conf加入对php支持,加下面两行
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
//同时增加目录访问默认显示页面格式中有.php,例如:

引用:
DirectoryIndex  index.php index.html



4.安装php4环境
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
make
make install
cp php.ini-dist /usr/local/lib/php.ini

5.安装phpbb
//将phpBB2017cn.rar在win下解压
//上传到/usr/local/apache2/htdocs(你的网站目录)
//在浏览器中输入http://ip(或域名)
按照提示安装即可。



地主 发表时间: 05-08-25 16:46

回复: TecZm [teczm]   版主   登录


B1层 发表时间: 05-08-25 16:52

回复: zhengzheng [zhengzheng]   论坛用户   登录
好用吗?

B2层 发表时间: 05-08-26 12:30

回复: TecZm [teczm]   版主   登录
2.0.17的MOD版比标版功能多很多,好用。
但MOD版只支持mysql,不如标版支持的数据库多,特别是PGSQL,有点点可惜。

B3层 发表时间: 05-08-26 12:48

回复: mtvmtvmtv [mtvmtvmtv]   论坛用户   登录
装phpwind3.0.1
不知道可不可以?

B4层 发表时间: 05-09-05 14:01

回复: mtvmtvmtv [mtvmtvmtv]   论坛用户   登录
安装mysql出现错误提示
运行#./configure..........

接着运行#make
出现提示:make: *** No targets specified and no makefile found.Stop

是不是运行#./configure.... 这步没有成功呢?




B5层 发表时间: 05-09-15 23:15

回复: TecZm [teczm]   版主   登录
〉〉〉No targets specified and no makefile found.Stop

检查你./configure 和make这两步有没错误提示。

B6层 发表时间: 05-09-16 09:00

回复: XiYang [cimsxiyang]   版主   登录
90%的可能性是你下载的mysql版本是人家已经编译好的包,不需要编译的啦
:)

B7层 发表时间: 05-09-16 10:45

回复: mtvmtvmtv [mtvmtvmtv]   论坛用户   登录
运行:#./configure --prefix=/usr/local/mysql --with-charset=gb2312 --with-big-tables


出现提示:
cheching build system type... .i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking for a BSD-compatible install... /usr/bin/install -c
cheching whether build environment is sane... yes
/2222222/phpbb://2222222/phpbb:

No such file or directory
configure:WARNING:'missing' script is too old or missing
checking for gawk... gawk
checking whether build environment is sane... yes
checking whether make sets $ (MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no

configure:error:no acceptable C compiler found in $PATH
See 'config.log'for nore details.





B8层 发表时间: 05-09-16 16:41

回复: TecZm [teczm]   版主   登录
/2222222/phpbb://2222222/phpbb:

B9层 发表时间: 05-09-16 16:52

回复: TecZm [teczm]   版主   登录
你是在Linux下吧,用gcc替换cc
引用:
ww# ./configure -h
`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.





B10层 发表时间: 05-09-16 16:56

回复: mtvmtvmtv [mtvmtvmtv]   论坛用户   登录
目录/目录

B11层 发表时间: 05-09-16 16:57

回复: mtvmtvmtv [mtvmtvmtv]   论坛用户   登录
"用gcc替换cc"

怎么换?


B12层 发表时间: 05-09-16 16:58

回复: TecZm [teczm]   版主   登录
#./configure cc="gcc" --prefix=/usr/local/mysql --with-charset=gb2312 --with-big-tables


不要告诉我你系统中木有gcc哦

[此贴被 TecZm(teczm) 在 09月16日17时01分 编辑过]

B13层 发表时间: 05-09-16 16:58

回复: mtvmtvmtv [mtvmtvmtv]   论坛用户   登录
运行:#./configure cc="gcc" --prefix=/usr/local/mysql --with-charset=gb2312 --with-big-tables

出现:
bash:./configure:没有那个文件或目录


用rpm -qa | grep gcc
查询显示:
libgcc-3.2-9

GCC应该装了吧?
 




[此贴被 残月(mtvmtvmtv) 在 09月16日17时08分 编辑过]

B14层 发表时间: 05-09-16 17:06

回复: TecZm [teczm]   版主   登录
先去mysql官方网站重新下源代码,再不行的话
.....我远程上来给你解决算了
另外把你的RF-linux桌面版换掉


[此贴被 TecZm(teczm) 在 09月16日17时35分 编辑过]


[此贴被 TecZm(teczm) 在 09月16日18时12分 编辑过]

B15层 发表时间: 05-09-16 17:32

回复: mtvmtvmtv [mtvmtvmtv]   论坛用户   登录
感谢TecZm的帮忙,

弄了这么久,原来问题出在RF-linux操作系统上.国产货就是不行。
看来我要改变学习方向了

B16层 发表时间: 05-09-17 10:17

论坛: UNIX系统

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号