看到好多人都在寻找LINUX下调试通达的OA,我把我的安装步骤都发到一下的帖子中,大家可以参考一下!我费了3天的时间,因为虚拟机速度太慢,我的机器配置很低,P3800的
具体安装是这样的
所需环境
apache2.0.59 mysql 5.02 php5.1.6
虚拟机 linux as 4
这些软件和官方所需软件完全相同!
安装MYSQL
groupadd mysql
useradd -g mysql mysql
gunzip < mysql-VERSION.tar.gz | tar -xvf -
cd mysql-VERSION
./configure --prefix=/usr/local/mysql
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var
chgrp -R mysql .
bin/mysqld_safe --user=mysql &
安装PHP,首先要安装PHP5所需的软件
安装GD库(让PHP支持GIF,PNG,JPEG)
a.安装 jpeg6
建立目录:
# mkdir -p /usr/local/jpeg6
# mkdir -p /usr/local/jpeg6/bin
# mkdir -p /usr/local/jpeg6/lib
# mkdir -p /usr/local/jpeg6/include
# mkdir -p /usr/local/jpeg6/man
# mkdir -p /usr/local/jpeg6/man1
# mkdir -p /usr/local/jpeg6/man/man1
# cd /home/xiutuo/software/
# tar -zvxf jpegsrc.v6b.tar.gz
# cd jpeg-6b
# ./configure --prefix=/usr/local/jpeg6/ --enable-shared --enable-static
# make; make install
b.安装libpng
# cd /home/xiutuo/software/
# tar -zvxf libpng-1.2.8.tar.gz
# cd libpng-1.2.8
# cp scripts/makefile.std makefile
# make; make install
c.安装 freetype
# cd /home/xiutuo/software/
# tar -zvxf freetype-2.1.10.tar.gz
# cd freetype-2.1.10
# mkdir -p /usr/local/freetype
# ./configure --prefix=/usr/local/freetype
# make;make install
d.:安装zlib
# cd /home/xiutuo/software/
#tar -zxvf zlib-1.2.3.tar.gz
#cd zlib.1.2.3
# ./configure
# make;make install
e.安装GD库
# cd /home/xiutuo/software/
# tar -zvxf gd-2.0.33.tar.gz
# mkdir -p /usr/local/gd2
# cd gd-2.0.33
# ./configure --prefix=/usr/local/gd2 --with-jpeg=/usr/local/jpeg6/
--with-png=/usr/local/lib/
--with-zlib=/usr/local/lib/
--with-freetype=/usr/local/freetype/
# make; make install
e.安装Curl库
# cd /home/xiutuo/software/
# tar -zxf curl-7.15.0.tar.gz
# mkdir -p /usr/local/curl
# ./configure --prefix=/usr/local/curl
# make; make install
安装php5,php5必须有libxml2支持!
a.安装libxml2
# cd /home/xiutuo/software/
# tar -zxf libxml2-2.6.19.tar.gz
# cd libxml2-2.6.19
# mkdir -p /usr/local/libxml2
# ./configure --prefix=/usr/local/libxml2
# make; make install
b.安装 libxslt(可选安装,你可以不安装)
# cd /home/xiutuo/software/
# tar -zxf libxslt-1.1.15.tar.gz
# mkdir -p /usr/local/libxslt
# cd libxslt-1.1.15
# ./configure --prefix=/usr/local/libxslt --with-libxml-prefix=/usr/local/libxml2
# make; make install
现在安装PHP5
ALTER TABLE `address_group` RENAME `ADDRESS_GROUP`;
ALTER TABLE `address` RENAME `ADDRESS`;
ALTER TABLE `affair` RENAME `AFFAIR`;
ALTER TABLE `attend_config` RENAME `ATTEND_CONFIG`;
ALTER TABLE `attend_duty` RENAME `ATTEND_DUTY`;
ALTER TABLE `attend_evection` RENAME `ATTEND_EVECTION`;
ALTER TABLE `attend_holiday` RENAME `ATTEND_HOLIDAY`;
ALTER TABLE `attend_leave` RENAME `ATTEND_LEAVE`;
ALTER TABLE `attend_manager` RENAME `ATTEND_MANAGER`;
ALTER TABLE `attend_out` RENAME `ATTEND_OUT`;
ALTER TABLE `bbs_board` RENAME `BBS_BOARD`;
ALTER TABLE `bbs_comment` RENAME `BBS_COMMENT`;
ALTER TABLE `book_info` RENAME `BOOK_INFO`;
ALTER TABLE `book_type` RENAME `BOOK_TYPE`;
ALTER TABLE `calendar` RENAME `CALENDAR`;
ALTER TABLE `chatroom` RENAME `CHATROOM`;
ALTER TABLE `contact` RENAME `CONTACT`;
ALTER TABLE `cp_asset_type` RENAME `CP_ASSET_TYPE`;
ALTER TABLE `cp_assetcfg` RENAME `CP_ASSETCFG`;
ALTER TABLE `cp_cptl_info` RENAME `CP_CPTL_INFO`;
ALTER TABLE `cp_dpct_sub` RENAME `CP_DPCT_SUB`;
ALTER TABLE `cp_prcs_prop` RENAME `CP_PRCS_PROP`;
ALTER TABLE `customer` RENAME `CUSTOMER`;
ALTER TABLE `department` RENAME `DEPARTMENT`;
ALTER TABLE `diary` RENAME `DIARY`;
ALTER TABLE `diary_comment` RENAME `DIARY_COMMENT`;
ALTER TABLE `email` RENAME `EMAIL`;
ALTER TABLE `email_box` RENAME `EMAIL_BOX`;
ALTER TABLE `file_content` RENAME `FILE_CONTENT`;
ALTER TABLE `file_sort` RENAME `FILE_SORT`;
ALTER TABLE `flow_form_type` RENAME `FLOW_FORM_TYPE`;
ALTER TABLE `flow_process` RENAME `FLOW_PROCESS`;
ALTER TABLE `flow_run` RENAME `FLOW_RUN`;
ALTER TABLE `flow_run_data` RENAME `FLOW_RUN_DATA`;
ALTER TABLE `flow_run_feedback` RENAME `FLOW_RUN_FEEDBACK`;
ALTER TABLE `flow_run_prcs` RENAME `FLOW_RUN_PRCS`;
ALTER TABLE `flow_sort` RENAME `FLOW_SORT`;
ALTER TABLE `flow_type` RENAME `FLOW_TYPE`;
ALTER TABLE `hrms` RENAME `HRMS`;
ALTER TABLE `icqcontact_tb` RENAME `ICQCONTACT_TB`;
ALTER TABLE `icqmsgs_tb` RENAME `ICQMSGS_TB`;
ALTER TABLE `icqservermsg_tb` RENAME `ICQSERVERMSG_TB`;
ALTER TABLE `ik_app` RENAME `IK_APP`;
ALTER TABLE `ik_field` RENAME `IK_FIELD`;
ALTER TABLE `ik_form` RENAME `IK_FORM`;
ALTER TABLE `ik_table` RENAME `IK_TABLE`;
ALTER TABLE `interface` RENAME `INTERFACE`;
ALTER TABLE `ip_rule` RENAME `IP_RULE`;
ALTER TABLE `linkman` RENAME `LINKMAN`;
ALTER TABLE `meeting` RENAME `MEETING`;
ALTER TABLE `meeting_room` RENAME `MEETING_ROOM`;
ALTER TABLE `mytable` RENAME `MYTABLE`;
ALTER TABLE `netchat` RENAME `NETCHAT`;
ALTER TABLE `netdisk` RENAME `NETDISK`;
ALTER TABLE `netmeeting` RENAME `NETMEETING`;
ALTER TABLE `news` RENAME `NEWS`;
ALTER TABLE `news_comment` RENAME `NEWS_COMMENT`;
ALTER TABLE `notify` RENAME `NOTIFY`;
ALTER TABLE `office_products` RENAME `OFFICE_PRODUCTS`;
ALTER TABLE `office_transhistory` RENAME `OFFICE_TRANSHISTORY`;
ALTER TABLE `picture` RENAME `PICTURE`;
ALTER TABLE `plan_type` RENAME `PLAN_TYPE`;
ALTER TABLE `post_tel` RENAME `POST_TEL`;
ALTER TABLE `product` RENAME `PRODUCT`;
ALTER TABLE `provider` RENAME `PROVIDER`;
ALTER TABLE `sal_data` RENAME `SAL_DATA`;
ALTER TABLE `sal_flow` RENAME `SAL_FLOW`;
ALTER TABLE `sal_item` RENAME `SAL_ITEM`;
ALTER TABLE `sale_history` RENAME `SAL_HISTORY`;
ALTER TABLE `sale_manager` RENAME `SAL_MANAGERITEM`;
ALTER TABLE `score_date` RENAME `SCORE_DATE`;
ALTER TABLE `score_flow` RENAME `SCORE_FLOW`;
ALTER TABLE `score_group` RENAME `SCORE_GROUP`;
ALTER TABLE `score_item` RENAME `SCORE_ITEM`;
ALTER TABLE `sms` RENAME `SMS`;
ALTER TABLE `sms2` RENAME `SMS2`;
ALTER TABLE `sms2_priv` RENAME `SMS2_PRIV`;
ALTER TABLE `sms3` RENAME `SMS3`;
ALTER TABLE `sys_code` RENAME `SYS_CODE`;
ALTER TABLE `sys_function` RENAME `SYS_FUNCTION`;
ALTER TABLE `sys_log` RENAME `SYS_LOG`;
ALTER TABLE `sys_menu` RENAME `SYS_MENU`;
ALTER TABLE `sys_para` RENAME `SYS_PARA`;
ALTER TABLE `unit` RENAME `UNIT`;
ALTER TABLE `url` RENAME `URL`;
ALTER TABLE `user` RENAME `USER`;
ALTER TABLE `user_priv` RENAME `USER_PRIV`;
ALTER TABLE `vehicle` RENAME `VEHICLE`;
ALTER TABLE `vehicle_maintenance` RENAME `VEHICLE_MAINTENANCE`;
ALTER TABLE `vehicle_operator` RENAME `VEHICLE_OPERATOR`;
ALTER TABLE `vehicle_usage` RENAME `VEHICLE_USAGE`;
ALTER TABLE `version` RENAME `VERSION`;
ALTER TABLE `vote_item` RENAME `VOTE_ITEM`;
ALTER TABLE `vote_title` RENAME `VOTE_TITLE`;
ALTER TABLE `webmail` RENAME `WEBMAIL`;
ALTER TABLE `winexe` RENAME `WINEXE`;
ALTER TABLE `work_plan` RENAME `WORK_PLAN`;
ALTER TABLE `attachment_edit` RENAME `ATTACHMENT_EDIT`;
ALTER TABLE `book_manage` RENAME `BOOK_MANAGE`;
ALTER TABLE `bs_line` RENAME `BS_LINE`;
ALTER TABLE `contract` RENAME `CONTRACT`;