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

pecl install pecl_http-2.5.5

[root@nodename ~]# pecl install pecl_http-2.5.5
downloading pecl_http-2.5.5.tgz ...
Starting to download pecl_http-2.5.5.tgz (199,782 bytes)
..........................................done: 199,782 bytes
downloading raphf-1.1.2.tgz ...
Starting to download raphf-1.1.2.tgz (15,915 bytes)
...done: 15,915 bytes
downloading propro-1.0.2.tgz ...
Starting to download propro-1.0.2.tgz (13,393 bytes)
...done: 13,393 bytes
8 source files, building
running: phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
ERROR: `phpize' failed
8 source files, building
running: phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
ERROR: `phpize' failed
71 source files, building
running: phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
ERROR: `phpize' failed

and php-devel has conflicts

[root@nodename member]# yum install php-devel
Loaded plugins: fastestmirror, presto, priorities, protectbase, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
 * mratwork-epel: mirror.cs.princeton.edu
 * 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-devel.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Dependency: php(x86-64) = 5.3.3-47.el6 for package: php-devel-5.3.3-47.el6.x86_64
--> Running transaction check
---> Package php.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
--> Processing Dependency: httpd-mmn = 20051115 for package: php-5.3.3-47.el6.x86_64
--> Running transaction check
---> Package httpd.x86_64 0:2.2.31-1.mr.el6 will be installed
--> Processing Dependency: httpd-tools = 2.2.31-1.mr.el6 for package: httpd-2.2.31-1.mr.el6.x86_64
---> Package php-cli.x86_64 0:5.3.3-47.el6 will be installed
---> Package php-common.x86_64 0:5.3.3-47.el6 will be installed
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.2.31-1.mr.el6 will be installed
--> Processing Conflict: httpd24u-2.4.20-3.ius.el6.x86_64 conflicts httpd < 2.4.20
--> Processing Conflict: httpd24u-tools-2.4.20-3.ius.el6.x86_64 conflicts httpd-tools < 2.4.20
--> Processing Conflict: php56u-cli-5.6.22-2.ius.el6.x86_64 conflicts php-cli < 5.6
--> 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-cli conflicts with php-cli-5.3.3-47.el6.x86_64
Error: php56u-gmp conflicts with php-common-5.3.3-47.el6.x86_64
Error: httpd24u-tools conflicts with httpd-tools-2.2.31-1.mr.el6.x86_64
Error: httpd24u conflicts with httpd-2.2.31-1.mr.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

Link to comment
Share on other sites

  • 0

Run this first

 

yum install php-devel php-mbstring


Than try again

 

php-devel has conflicts packages

[root@nodename member]# yum install php-devel
Loaded plugins: fastestmirror, presto, priorities, protectbase, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
 * mratwork-epel: mirror.cs.princeton.edu
 * 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-devel.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Dependency: php(x86-64) = 5.3.3-47.el6 for package: php-devel-5.3.3-47.el6.x86_64
--> Running transaction check
---> Package php.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
--> Processing Dependency: httpd-mmn = 20051115 for package: php-5.3.3-47.el6.x86_64
--> Running transaction check
---> Package httpd.x86_64 0:2.2.31-1.mr.el6 will be installed
--> Processing Dependency: httpd-tools = 2.2.31-1.mr.el6 for package: httpd-2.2.31-1.mr.el6.x86_64
---> Package php-cli.x86_64 0:5.3.3-47.el6 will be installed
---> Package php-common.x86_64 0:5.3.3-47.el6 will be installed
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.2.31-1.mr.el6 will be installed
--> Processing Conflict: httpd24u-2.4.20-3.ius.el6.x86_64 conflicts httpd < 2.4.20
--> Processing Conflict: httpd24u-tools-2.4.20-3.ius.el6.x86_64 conflicts httpd-tools < 2.4.20
--> Processing Conflict: php56u-cli-5.6.22-2.ius.el6.x86_64 conflicts php-cli < 5.6
--> 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-cli conflicts with php-cli-5.3.3-47.el6.x86_64
Error: php56u-gmp conflicts with php-common-5.3.3-47.el6.x86_64
Error: httpd24u-tools conflicts with httpd-tools-2.2.31-1.mr.el6.x86_64
Error: httpd24u conflicts with httpd-2.2.31-1.mr.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

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' ?

Link to comment
Share on other sites

  • 0

May I ask why are you doing?

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

I'm not a professional personally, but that looks like you are trying to run two PHP versions and it should be:

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

But I would highly recommend you hire a system admin because it should be easy to set-up but you have more than one PHP version, and you'll need to ensure you install the functions for the correct version of PHP.

Link to comment
Share on other sites

  • 0

May I ask why are you doing?

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

I'm not a professional personally, but that looks like you are trying to run two PHP versions and it should be:

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

But I would highly recommend you hire a system admin because it should be easy to set-up but you have more than one PHP version, and you'll need to ensure you install the functions for the correct version of PHP.

This is usual fu..ck with centos .....thera are few work arounds.....he need php devel and MB strings  for phpize tools ....

pecl install mailparse

this will never work because it work only on php 7+

so you need install lower version

You can check here releases https://pecl.php.net/package/mailparse

Link to comment
Share on other sites

  • 0

May I ask why are you doing?

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

I'm not a professional personally, but that looks like you are trying to run two PHP versions and it should be:

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

But I would highly recommend you hire a system admin because it should be easy to set-up but you have more than one PHP version, and you'll need to ensure you install the functions for the correct version of PHP.

 

sorry, my mistake during 'copy-paste'

i mean

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

my php path is /usr/bin/php56m-cli and /usr/bin/php

 

 

yum search mailparse

 

See if a package with mailparse exists for php56u, something like php56u-pecl-mailparse or something and then try installing that. That should avoid the conflict.

 

there are some conflicts

[root@nodename /]# yum search mailparse
Loaded plugins: fastestmirror, presto, priorities, protectbase, replace
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
==================================================================== N/S Matched: mailparse ====================================================================
php-pecl-mailparse.x86_64 : PHP PECL package for parsing and working with email messages

  Name and summary matches only, use "search all" for everything.
[root@nodename /]# yum install php-pecl-mailparse.x86_64
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

Link to comment
Share on other sites

  • 0

For php 6 or older need Release 2.1.6

[root@nodename /]# pecl install mailparse-2.1.6
downloading mailparse-2.1.6.tgz ...
Starting to download mailparse-2.1.6.tgz (36,538 bytes)
..........done: 36,538 bytes
9 source files, building
running: phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
ERROR: `phpize' failed

and the php-devel has conflicts

[root@nodename /]# yum install php-devel
Loaded plugins: fastestmirror, presto, priorities, protectbase, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
 * mratwork-epel: mirror.cs.princeton.edu
 * 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-devel.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Dependency: php(x86-64) = 5.3.3-47.el6 for package: php-devel-5.3.3-47.el6.x86_64
--> Running transaction check
---> Package php.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
--> Processing Dependency: httpd-mmn = 20051115 for package: php-5.3.3-47.el6.x86_64
--> Running transaction check
---> Package httpd.x86_64 0:2.2.31-1.mr.el6 will be installed
--> Processing Dependency: httpd-tools = 2.2.31-1.mr.el6 for package: httpd-2.2.31-1.mr.el6.x86_64
---> Package php-cli.x86_64 0:5.3.3-47.el6 will be installed
---> Package php-common.x86_64 0:5.3.3-47.el6 will be installed
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.2.31-1.mr.el6 will be installed
--> Processing Conflict: httpd24u-2.4.20-3.ius.el6.x86_64 conflicts httpd < 2.4.20
--> Processing Conflict: httpd24u-tools-2.4.20-3.ius.el6.x86_64 conflicts httpd-tools < 2.4.20
--> Processing Conflict: php56u-cli-5.6.22-2.ius.el6.x86_64 conflicts php-cli < 5.6
--> 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-cli conflicts with php-cli-5.3.3-47.el6.x86_64
Error: php56u-gmp conflicts with php-common-5.3.3-47.el6.x86_64
Error: httpd24u-tools conflicts with httpd-tools-2.2.31-1.mr.el6.x86_64
Error: httpd24u conflicts with httpd-2.2.31-1.mr.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

why it's not possible to change php path from "Piping Configuration" ?

Link to comment
Share on other sites

  • 0

This is usual fu..ck with centos .....thera are few work arounds.....he need php devel and MB strings  for phpize tools ....

pecl install mailparse

this will never work because it work only on php 7+

so you need install lower version

You can check here releases https://pecl.php.net/package/mailparse

 

 

but is there a way to only install mail parse for that version say php 5.6? Why doesn't he just update to 5.6 and leave it on that until 7.0 ioncube comes out.

Link to comment
Share on other sites

  • 0

but is there a way to only install mail parse for that version say php 5.6? Why doesn't he just update to 5.6 and leave it on that until 7.0 ioncube comes out.

 

i have php56

[root@nodename ~]# php -v
PHP 5.6.22 (cli) (built: May 31 2016 11:39:15)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
[root@nodename ~]# php56m-cli -v
PHP 5.6.21 (cli) (built: Apr 29 2016 10:47:22)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.1.2, Copyright (c) 2002-2016, by ionCube Ltd.

don't know why i can't install mailparse (and mailparse-2.1.6) with php but can install it with php56m-cli

that's why i need to change the "Piping Configuration" path

Link to comment
Share on other sites

  • 0

but is there a way to only install mail parse for that version say php 5.6? Why doesn't he just update to 5.6 and leave it on that until 7.0 ioncube comes out.

I have do this more than 100 times and never was the same..you have at least 10 working solutions ,he can install it from epel repo..also

Installing lower version is easy just need to specify..... like   pecl install mailparse-2.1.6 .problem can cause many things but  like I said I  don't remeber when I install this from first..even on Ubuntu...switching to php 5.4 will also resolve issue...

Link to comment
Share on other sites

  • 0

i have php56

[root@nodename ~]# php -v
PHP 5.6.22 (cli) (built: May 31 2016 11:39:15)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
[root@nodename ~]# php56m-cli -v
PHP 5.6.21 (cli) (built: Apr 29 2016 10:47:22)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.1.2, Copyright (c) 2002-2016, by ionCube Ltd.

don't know why i can't install mailparse (and mailparse-2.1.6) with php but can install it with php56m-cli

that's why i need to change the "Piping Configuration" path

Hey I forgot to tell you...for devel conflict

Did you try      yum install php5-dev   than try to install 2.1.6 version which is compatibile for you...

These commands install mostly recent variant and mostly now incompatibile with older variants

Link to comment
Share on other sites

  • 0

Hey I forgot to tell you...for devel conflict

Did you try      yum install php5-dev   than try to install 2.1.6 version which is compatibile for you...

These commands install mostly recent variant and mostly now incompatibile with older variants

 

package not found

[root@nodename ~]# yum install php5-dev
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
No package php5-dev available.
Error: Nothing to do

Link to comment
Share on other sites

  • 0

 

package not found

[root@nodename ~]# yum install php5-dev
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
No package php5-dev available.
Error: Nothing to do

Yes there is no that package in repository.......I don't know which centos you are running..supose 6.5

Link to comment
Share on other sites

  • 0

Some tips :
The difference between the "pear" and "pecl" commands is that "pecl"
disables php.ini so that you can overwrite extension .so
that would otherwise be in use and locked for write. So, unless
mbstring is built into PHP (not a loaded module in php.ini), you won't
be able to install mailparse.Dev package you need for phpize tools....

Link to comment
Share on other sites

  • 0

yum search mailparse

 

See if a package with mailparse exists for php56u, something like php56u-pecl-mailparse or something and then try installing that. That should avoid the conflict.

 

 

how does blesta check mailparse availability for admin_departments page?

 

 

Going to sleep..worked last whole night..good luck

 

yeah, still trial and error

and it's 4 AM here  btw  :blesta:

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...