Jump to content
  • 0

Change Piping Configuration Path


mas.satriyo

Question

i tried to configure mail piping for support departments

but i can't change php path

 

currently i have multiple php in my vps, /usr/bin/php - /usr/bin/php54m-cli - /usr/bin/php56m and /usr/bin/php70m

i can't install pecl-mailparse with current php

[root@nodename member]# yum install php-pecl-mailparse
Loaded plugins: fastestmirror, presto, priorities, protectbase, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
 * mratwork-epel: mirror.datto.com
 * mratwork-ius-stable: mirror.symnds.com
 * mratwork-webtatic: us-east.repo.webtatic.com
0 packages excluded due to repository protections
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-mailparse.x86_64 0:2.1.5-2.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-pecl-mailparse-2.1.5-2.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-pecl-mailparse-2.1.5-2.el6.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Conflict: php56u-common-5.6.22-2.ius.el6.x86_64 conflicts php-common < 5.6
--> Processing Conflict: php56u-gmp-5.6.22-2.ius.el6.x86_64 conflicts php-gmp < 5.6
--> Finished Dependency Resolution
Error: php56u-gmp conflicts with php-common-5.3.3-47.el6.x86_64
Error: php56u-common conflicts with php-common-5.3.3-47.el6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

but the pecl-mailparse already installed in php56m

here is from my phpinfo

 

2eaacd8eacfb4bbe833e87929ba23575.png

 

how can i change the piping configuration path to

/usr/bin/php56m-cli /home/username/hostmikro.id/member/plugins/support_manager/pipe.php plugin/support_manager/ticket_pipe/index/1/

 

in admin_departments page, the piping configuration box has "readonly" tag

9b4ba7c93a714edc8577fbc866a50609.png

 

tooltip says

"Set your piping path as shown, but be sure to update it to point to where PHP is installed if it differs from what is shown."

 

how can i 'point to where php is installed' if the form is just 'readonly' ?

 

 

thank you

Link to comment
Share on other sites

Recommended Posts

  • 0

Hey I just installed mailparse on jobplease server with centos 6.8( I forgot to do it two days ago when worked on his server and now he send message asking ) ,and as I expect just running install command didn't work..I got error you see in code box which in short mean there is no re2c installed,because this happen very offten i will put complete process.

mkdir .libs
cc -I. -I/root/tmp/pear/mailparse -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootzycCFE/mailparse-2.1.6/include -I/root/tmp/pear/pear-build-rootzycCFE/mailparse-2.1.6/main -I/root/tmp/pear/mailparse -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/mailparse/mailparse.c -fPIC -DPIC -o .libs/mailparse.o
/bin/sh /root/tmp/pear/pear-build-rootzycCFE/mailparse-2.1.6/libtool --mode=compile cc -I. -I/root/tmp/pear/mailparse -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootzycCFE/mailparse-2.1.6/include -I/root/tmp/pear/pear-build-rootzycCFE/mailparse-2.1.6/main -I/root/tmp/pear/mailparse -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/mailparse/php_mailparse_mime.c -o php_mailparse_mime.lo
cc -I. -I/root/tmp/pear/mailparse -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootzycCFE/mailparse-2.1.6/include -I/root/tmp/pear/pear-build-rootzycCFE/mailparse-2.1.6/main -I/root/tmp/pear/mailparse -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/mailparse/php_mailparse_mime.c -fPIC -DPIC -o .libs/php_mailparse_mime.o
re2c -b /root/tmp/pear/mailparse/php_mailparse_rfc822.re > /root/tmp/pear/mailparse/php_mailparse_rfc822.c
/bin/sh: re2c: command not found
make: *** [/root/tmp/pear/mailparse/php_mailparse_rfc822.c] Error 127
ERROR: `make' failed
The mailparse.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20100525
Tidying /usr/local/lib/php.ini...
No changes
Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini...
No changes re2c installed

Here is complete process for this(centos 6.8 + cpanel)

 

install re2c

Install php-devel and mbstring  if not already

yum install php-devel php-mbstring


Download  and install re2c

1.Download correct rpm for centos 6(complete list if not Centos 6 x86_64  http://dl.fedoraproject.org/pub/epel/6/x86_64/)

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/re2c-0.13.5-1.el6.x86_64.rpm

2.Install epel-release rpm:


rpm -Uvh re2c-0.13.5-1.el6.x86_64.rpm

3. Install re2c

yum install re2c

Now Install mailparse

If runing php 6 or lower run:

pear install pecl/mailparse-2.1.6

If runing php 7 + run:

pear install pecl/mailparse



You'll got similar content at the end:

Build process completed successfully
Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/mailparse.so'
install ok: channel://pecl.php.net/mailparse-2.1.6
Extension mailparse enabled in php.ini


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...