Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6684847
  • 博文数量: 1159
  • 博客积分: 12444
  • 博客等级: 上将
  • 技术积分: 12570
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-13 21:34
文章分类

全部博文(1159)

文章存档

2016年(126)

2015年(350)

2014年(56)

2013年(91)

2012年(182)

2011年(193)

2010年(138)

2009年(23)

分类: Web开发

2015-10-25 10:37:16

-------------------------------
[root@localhost processmaker]# pwd
/opt/project/processmaker/
[root@localhost processmaker]# tar xzf processmaker-3.0.1.5-community.tar.gz -C /var/www/html/

chown -R apache.apache /var/www/html/processmaker/
chmod -R 700 /var/www/html/processmaker/

chcon -R -t public_content_rw_t /var/www/html/processmaker/workflow/engine/config/
chcon -R -t public_content_rw_t /var/www/html/processmaker/workflow/engine/content/languages/
chcon -R -t public_content_rw_t /var/www/html/processmaker/workflow/engine/plugins/
chcon -R -t public_content_rw_t /var/www/html/processmaker/workflow/engine/xmlform/
chcon -R -t public_content_rw_t /var/www/html/processmaker/workflow/engine/js/labels/
chcon -R -t public_content_rw_t /var/www/html/processmaker/workflow/public_html/translations/
chcon -R -t public_content_rw_t /var/www/html/processmaker/workflow/public_html/index.html
chcon -R -t public_content_rw_t /var/www/html/processmaker/shared/

Workspace Name: workflow
Admin Username: admin
Admin Password: 123456
Confirm Admin Password: 123456
-------------------------------

+++++++++ 第1步:安装processmaker

download processmaker-3.0.1.5-community.tar.gz

[root@localhost processmaker]# pwd
/var/www/html/processmaker
[root@localhost processmaker]# gedit etc/pmos.conf

注意:etc/pmos.conf   // 参考 /var/www/html/processmaker/pmos.conf.example

点击(此处)折叠或打开

  1. <VirtualHost *:80>
  2.     ServerName 127.0.0.1

  3.     DocumentRoot /var/www/html/processmaker/workflow/public_html
  4.     DirectoryIndex index.html index.php

  5.     <Directory /var/www/html/processmaker/workflow/public_html>
  6.         Options Indexes FollowSymLinks MultiViews
  7.         AllowOverride None
  8.         Order allow,deny
  9.         allow from all

  10.         ExpiresActive On

  11.         <IfModule mod_rewrite.c>
  12.             RewriteEngine On
  13.             RewriteCond %{REQUEST_FILENAME} !-f
  14.             RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
  15.         </IfModule>
  16.     </Directory>
  17. </VirtualHost>


[root@localhost processmaker]# cp etc/pmos.conf /etc/httpd/conf.d/

[root@localhost processmaker]# service httpd restart    //  /bin/systemctl restart  httpd.service
[root@localhost processmaker]# systemctl start  mariadb.service



本机浏览器,访问:
出现如下问题,需要重新安装 PHP


PHP Version >= 5.2.10:            5.4.16
MySQL Support:                    undefined*
cURL Version:                    cURL 7.29.0
OpenSSL Version (*):                NSS/3.15.4
DOM/XML Support:                    Enabled
GD Support:                        bundled (2.1.0 compatible)
Multibyte Strings Support:        Not Enabled
Soap Support:                    Not Enabled
Mcrypt Support:                    Not Enabled
LDAP Support (*):                Not Enabled
Memory Limit >= 80M:                256M

+++++++++ 第2步:重新安装 PHP

[root@localhost processmaker]# mount -o loop /opt/CentOS-7-x86_64-Everything-1503-01.iso /mnt/iso
[root@localhost processmaker]# rpm -ivh /mnt/iso/Packages/php-mysql-5.4.16-23.el7_0.3.x86_64.rpm
[root@localhost processmaker]# rpm -ivh /mnt/iso/Packages/php-soap-5.4.16-23.el7_0.3.x86_64.rpm
[root@localhost processmaker]# rpm -ivh /mnt/iso/Packages/php-ldap-5.4.16-23.el7_0.3.x86_64.rpm


---------------------------------------//centos 编译 php
//centos7 yum 源
# yum localinstall -y

# yum install -y libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel libjpeg-devel libpng-devel libicu-devel openldap-devel

#LD_LIBRARY_PATH=/usr/local/lib ./configure

./configure --with-apxs2=/usr/bin/apxs --enable-cli --enable-shared --with-libxml-dir --enable-xml --with-gd --enable-gd-native-ttf --with-openssl --enable-mbstring --with-mcrypt --enable-soap --with-mhash --with-ldap --with-ldap-sasl --enable-opcache --enable-mysqlnd --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-zip --with-zlib --with-zlib-dir --with-jpeg-dir --with-png-dir --with-freetype-dir --with-curl --without-pdo-sqlite --with-sqlite3 --enable-pcntl --enable-calendar --enable-bcmath --enable-exif --enable-ftp --enable-intl --with-bz2 --with-pcre-regex --with-iconv-dir --disable-rpath --enable-shmop --enable-sysvsem --enable-sysvshm --enable-inline-optimization --enable-mbregex  --enable-fpm --enable-sockets --with-xmlrpc --with-xsl --with-gettext --enable-session --enable-ctype --with-kerberos

make -j4
make test
make install

具体过程见:  http://blog.chinaunix.net/uid-14735472-id-5271293.html

---------------------------下面杂项没用
cp php.ini-production /usr/local/lib/php.ini
# 设置php-fpm开机自动启动
chmod +x /etc/init.d/php-fpm
chkconfig php-fpm on
cp /data/soft/php/etc/php-fpm.conf.default /data/soft/php/etc/php-fpm.conf
service php-fpm start
./configure --prefix=/usr/local/php/v70 --with-config-file-path=/usr/local/php/v70/etc --with-mysqli=/usr/local/mysql/ --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql
--with-libdir=/lib/
--with-ldap=/usr/
--with-libxml-dir=/usr
--with-zlib-dir=/usr/lib
--with-iconv-dir=/usr/local/
./configure --prefix=/data/soft/php\
 --with-libdir=lib64\
 --enable-fpm\
 --with-fpm-user=php-fpm\
 --with-fpm-group=www\
   --with-png-dir=/usr/lib\
 --with-jpeg-dir=/usr/lib\
 --with-gettext\
 ---------------------------



---------------------------------------//centos 编译 php

阅读(4275) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~