标签:localhost 源代码 下载文件 linux 压缩包
1、下载文件ZenTaoPMS.2.3.stable.zip
拷贝到目录:/home/work/opencom/apache/htdocs/
2、unzip ZenTaoPMS.2.3.stable.zip
3、linux下的安装: 下好源代码后,切换到压缩包的文件路径下,使用unzipZenTaoPMS.1.2.stable解压,将zentaopms包移动到apache的目录下,由于之前已经安装了php,mysql,apache的软件,目录已调整到/var/www目录下,因此将zentaopms放在下面.然后通过安装文件进行安装,输入: http://localhost/zentaopms/www/ 就链接到了安装页面.跟着向导一路下来就完成了.安好后,要删除install.php(sudo rminstall.php).
4、http:// XXXX.com:8888/zentaopms/www/install.php
5、开始安装
6、设置PDO_MySQL扩展
wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
tar xzvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/home/work/opencom/php/bin/phpize
ln -s /home/work/opencom/mysql/bin/mysql_config /usr/bin/mysql_config
./configure--with-php-config=/home/work/opencom/php/bin/php-config--with-pdo-mysql=/home/work/opencom/mysql
Make
Make install
修改配置文件:
/home/work/opencom/php/lib/php.ini(如果没有,从源码包中拷贝一份)
extension_dir = "/"
extension="/home/work/opencom/php/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so"
确保如下配置正确:
/home/work/opencom/apache/conf/http.conf
PhpIniDir /home/work/opencom/php/lib
重启apache
$database_default ="zendao";
$database_hostname ="127.0.0.1";
$database_username ="root";
$database_password ="MhxzKhl";
$database_port ="3606";
7、Nginx配置
Nginx.conf
upstream zentao {
server X.X.X.X:8888 weight=1max_fails=3 fail_timeout=15s;
}
nginx_vhost.conf
server {
listen 80;
server_name youxibug.XXXX.com;
location / {
proxy_pass http://zentao;
}
}
标签:localhost 源代码 下载文件 linux 压缩包
原文地址:http://881955.blog.51cto.com/871955/1639385