博客统计信息

51cto博客之星
用户名:wuqingying
文章数:274
评论数:711
访问量:749079
无忧币:4916
博客积分:4337
博客等级:7
注册日期:2006-04-17

LAMP+epiware组建网络办公平台
2007-11-22 11:53:26
    洋洋却不洒的总结了自己用LAMP+mysql组建一个web网络办公平台的过程。其过程非想象中的顺利。出现了很多问题,不是缺少软件支持就是编译有问题。中途还有几次差点摔罐子破碗之类的情绪事故发生。不过还好,都忍了,做这行可以什么都学不会,但一定要学会耐心。长征路途虽艰苦好歹革命终于成功了。在此不多废话,为了各位看官能有个清晰的思路,俺就不将碰到的问题写上来了,过程见证。
先表下自己的网络平台情况及软件版本下载地址等琐事:
1:网络状况:一台RHEL 4的版本服务器,设定其IP地址为10.66.77.126。一台普通客户端,用来检测结果的,IP为10.66.77.200.
2:   软件:apache: httpd-2.2.6.tar.gz 下载地址:[url]http://apache.mirror.phpchina.com/httpd/httpd-2.2.6.tar.gz[/url]
     PHP: php-5.2.4.tar.gz 下载地址:不好意思,忘了。自己去找。
 
安装过程详解:(我下载的软件都在/usr/public/目录下。各人自定)
1:先安装apache吧。
[root@localhost public]# tar -zxvf httpd-2.2.6.tar.gz
[root@localhost public]# cd httpd-2.2.6
[root@localhost httpd-2.2.6]# ./configure --prefix=/apache #偶安装在/apache下
[root@localhost httpd-2.2.6]# make
[root@localhost httpd-2.2.6]# make install #OK,不出意外,一切OK。出了意外,赶紧google去。
 
2:安装mysql吧。
[root@localhost public]# tar -zxvf mysql-5.0.45-linux-i686.tar.gz
[root@localhost public]# mv mysql-5.0.45-linux-i686 /usr/local/mysql 
[root@localhost public]# cd /usr/local/mysql/
[root@localhost mysql]#
groupadd mysql
[root@localhost mysql]# useradd -g mysql mysql
[root@localhost mysql]# chown -R mysql .
[root@localhost mysql]# chgrp -R mysql .
[root@localhost mysql]# scripts/mysql_install_db --user=mysql
[root@localhost mysql]# chown -R root .
[root@localhost mysql]# chown -R mysql data
[root@localhost mysql]#   bin/mysqld_safe --user=mysql &
#正常情况下,mysql能正常运行,不过我是遇到了很多问题在这,就不多说了,后来都是去找问题方法的。
[root@localhost mysql]#  Bin/mysqladmin –u password 1234
[root@localhost mysql]#  cd /etc/init.d/
[root@localhost init.d]#  cp /usr/local/mysql/support-files/mysql.server mysql
[root@localhost init.d]# chkconfig --add mysql
[root@localhost init.d]# chkconfig mysql on
[root@localhost init.d]# chkconfig --list mysql
mysql           0:off   1:off   2:on    3:on    4:on    5:on    6:off

 
 
2:安装PHP了,
[root@localhost init.d]# cd /var/public/
[root@localhost public]# cd php-5.2.4
[root@localhost php-5.2.4]# ./configure --with-mysql=/usr/local/mysql --with-apxs2=/apache/bin/apxs #根据自己安装情况设置哦。
[root@localhost php-5.2.4]# make
[root@localhost php-5.2.4]# make install
安装好后,我们还需要到http.conf文件中做下配置,添加如下几个配置
[root@localhost php-5.2.4]# vi /apache/conf/httpd.conf
#确定有这几项配置,没有就添加进去
LoadModule php5_module        modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
#啥都别说了,来个测试吧:
[root@localhost php-5.2.4]# vi /apache/htdocs/test.php
#添加如下项目,通过浏览器测试[url]http://10.66.77.126/test.php[/url]
<?php
 phpinfo();
?>
测试结果如下所示,OK,安装成功。
 
4:安装Epiware软件。
[root@localhost Epiware_4.6.5]#./install
此过程中系统将会创建以下三个目录,也可以人工设定,具体操作参看文档。
/storage/document_area
/storage/binaries 拷贝binaries文件到此目录中。
    拷贝share/antiword/usr/share/antiword中。
然后执行命令创建mysql
[root@localhost Epiware_4.6.5]# /usr/local/mysql/bin/mysql -u root -p < epi/project_db.sql
Enter password:
epi整个目录拷贝到apache/htdocs目录中去:
[root@localhost Epiware_4.6.5]#cp -r epi /apache/htdocs/epi
#OK,看下浏览器的运行情况吧
可以上传文档供大家共享:
 
呼呼,好累哦,大功告成,鼓励一下了。虽然看起来简单,不过中途遇到的问题还是很多的,不管如何,不达目的誓不罢休!这就是每个IT员的工作精神。
技术不是目的,能提供工作便利的解决方案才是最后目的。Epiware是个不错的软件。至少运行至今还是很稳定的。速度也很快。
分享至
更多
一键收藏,随时查看,分享好友!
leobian
1人
了这篇文章
类别:LINUX系统管理技术圈()┆阅读()┆评论() ┆ 推送到技术圈返回首页

文章评论

 
2007-11-22 22:52:58
真是学到了不少东西

2007-11-23 09:16:48
就学到一句话,出了问题,自己google

2007-11-23 12:39:53
mysql 都不需要configure,make??

2007-11-23 14:17:12
回上面的话,mysql不需要configure。至少我这个最新版的不需要。不过也有configure文件,运行时会和上面的结果一样。

2007-11-24 11:15:15
mysql有静态编译的二进制版本.解压缩后就可以直接使用了

2008-06-10 10:17:19
能否支持中文,中文文件名。

2009-08-11 11:11:45
楼主,您好!

今天在配置Epiware的时候遇到了一个问题,现在不知道怎么解决了!

下边是用IE访问的时候出的错误提示和提供的解决办法,但是试过,都无法解决!麻烦楼主给看一下!

NEW INSTALL
Error, unable to write to the directory /storage/document_area.
This directory exists, but do not have permission to write to it.

This is where all uploaded documents will be stored. You will not

Suggestion:
Make sure that owner of the "httpd" process has write privileges to the directory /storage/document_area
or change this directory to a different one by changing the variable DOCUMENT_DIRECTORY in the file config.inc.php

Go here to verify all

2009-08-11 11:15:56
mkdir /storage
mkdir /storage/document_area
chown -R root.nobody /storage
chmod -R 775 /storage


This assumes that "nobody" owns the apache process
This can BE changed to whatever you want.
Just update the config.inc.php to reflect the new location.
It is an absolute path!!
Apache must have write access to it to store uploaded files


这是他的说明文件!我是安照这个来做的!

2010-03-29 10:53:43
有没有中文包?
谢谢

2011-08-11 10:56:32
楼主您好,请问如何解决上传中文文件名显示乱码的问题?

 

发表评论            

【技术门诊】专家解析:软考重点难点及应试技巧
昵  称:
登录  快速注册
验证码:

请点击后输入验证码博客过2级,无需填写验证码

内  容: