1、安装apache,清参考blog: http://blog.csdn.net/jiaju_cao/article/details/6795758
安装目录: /usr/local/apache2 (注意,apache必须安装php模块)
2、下载、安装dotproject,官网:
最新版本:dotproject-2_1_5.zip
tar -xvf dotproject-2_1_5.zip
mv dotproject /usr/local/apache2/htdocs
3、安装mysql
下载:mysql-5.1.59.tar.gz
cd mysql-5.1.59
./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql
make
make install#prefix=/usr/local/mysql mysql安装的目标目录
#sysconfdir=/etc my.ini配置文件的路径
#localstatedir=/var/lib/mysql 数据库存放的路径
安装完以后要初始化数据库,当然你是升级的话不用做这步;
/usr/local/mysql/bin/mysql_install_db
4、配置apache
修改配置文件目录权限,修改后,可以在画面直接创建配置文件。
chmod 777 /usr/local/apache2/htdocs/dotproject/includes
如果config.php文件已存在了,就直接改这个文件的权限为可写。
例如:chmod a+w dotproject/includes/config.php
打开这个地址http://IP地址/dotproject/install/后,打开dotProject Installer画面,这个页面会检查系统配置信息:默认情况下面这三个文件夹没有写权限,所以会报错。
问题描述:
./files writable? File upload functionality will be disabled
./files/temp writable? PDF report generation will be disabled
./locales/en writable? Translation files cannot be saved. Check /locales and subdirectories for permissions.
解决方法:
# mkdir -p /usr/local/apache2/htdocs/dotproject/files/temp
# chmod -R 777 /usr/local/apache2/htdocs/dotproject/files/
# chmod -R 777 /usr/local/apache2/htdocs/dotproject/locales/
问题描述
Session Save Path writable? Fatal: session.save_path is not set
Session AutoStart = ON? Try setting to ON if you are experiencing a WhiteScreenOfDeath
解决方法:
修改php.ini文件,找到session.save_path = "/tmp" 去掉左边的;分号;
找到session.auto_start = 0,把0改为1。
# /usr/local/apache2/bin/apachectl stop
# /usr/local/apache2/bin/apachectl start
重启Apache后这几项就可以通过check了!点击Start Installation按钮进入下一步:
Database Server Type Note - currently only MySQL is known to work correctly
Database Host Name localhost
Database Name dotproject
Database User Name dotproject
Database User Password password
Use Persistent Connection? 默认不选
Drop Existing Database? 选择这项会删除原来的数据库;还没创建的可不选;
点击install db & write cfg按钮。
Database Installation Feedback: Database successfully setup
Config File Creation Feedback: Config file written successfully
配置成功。
点击Login and Configure the dotProject System Environment,进入登录配置画面!
用户名/密码:admin/passwd
填写一些基本配置,这里会警告提示你删除install安装目录,删了就没警告了!
这里直接点Save也可,进入系统后,点击system admin,可以修改各种设定。
# rm –rf /usr/local/apache2/htdocs/dotproject/install //删除安装文件夹
点击右下角的Save按钮,进入系统。
到此安装完毕,可以使用了