• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Cant install Swoole on PHP 7.3

Martin.H

Regular Pleskian
I tried to install swoole as I need it, but strange I got an Error but for me this seems to be impossible.

This is the command I run:

root@server:~# /opt/plesk/php/7.3/bin/pecl install swoole

But I do get the Error:


In file included from /tmp/swoole/php_swoole_cxx.h:19:0,
from /tmp/swoole/php_swoole_cxx.cc:1:
/tmp/swoole/php_swoole.h:139:2: error: #error "require PHP version 7.1 or later"
#error "require PHP version 7.1 or later"
^~~~~
Makefile:194: recipe for target 'php_swoole_cxx.lo' failed
make: *** [php_swoole_cxx.lo] Error 1
ERROR: `make' failed


But how do I get an Error who is stating "require PHP version 7.1 or later" when I execute it with php7.3
Also I do not have PHP 7.0 installed anyway!

My installed PHP Versions:

PHP 7.3
PHP 7.2
PHP 7.1

When I log in as Admin and execute "php -v" I get:

root@server:~# php -v
PHP 7.3.11 (cli) (built: Oct 25 2019 03:53:44) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.3.2, Copyright (c) 2002-2018, by ionCube Ltd.
with Zend OPcache v7.3.11, Copyright (c) 1999-2018, by Zend Technologies


How can I install swoole on Plesk with PHP 7.3 or even better systemwide?
 
I have installed it without any problems with the following steps:

# yum install make gcc plesk-php73-devel
# /opt/plesk/php/7.3/bin/pecl install swoole
# echo "extension=swoole.so" > /opt/plesk/php/7.3/etc/php.d/swoole.ini
# plesk bin php_handler --reread

As a result:

# /opt/plesk/php/7.3/bin/php -m | grep swoole
swoole

Try it.
 
Back
Top