[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
点击(此处)折叠或打开
-
<VirtualHost *:80>
-
ServerName 127.0.0.1
-
-
DocumentRoot /var/www/html/processmaker/workflow/public_html
-
DirectoryIndex index.html index.php
-
-
<Directory /var/www/html/processmaker/workflow/public_html>
-
Options Indexes FollowSymLinks MultiViews
-
AllowOverride None
-
Order allow,deny
-
allow from all
-
-
ExpiresActive On
-
-
<IfModule mod_rewrite.c>
-
RewriteEngine On
-
RewriteCond %{REQUEST_FILENAME} !-f
-
RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
-
</IfModule>
-
</Directory>
- </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
本机浏览器,访问: http://127.0.0.1
出现如下问题,需要重新安装 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 http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm -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
相关热门文章
给主人留下些什么吧!~~
评论热议