Install plesk-php70-devel package with yum.Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command.
Install plesk-php70-devel package with yum.Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command.
What exactly are the commands I should be using? Because I cannot install phpredis 3.0.0 using pecl.
Code:/tmp/redis/common.h:3:43: fatal error: ext/standard/php_smart_string.h: No such file or directory #include <ext/standard/php_smart_string.h> ^ compilation terminated. make: *** [redis.lo] Error 1 ERROR: `make' failed
apt-get install plesk-php70-dev
sorry, but your answer is really strange. The suggestion to solve your issue is to install "plesk-php70-devel"... do you really think, that another dev-package could be used, to solve issues with the mentioned "PLESK" - php - version? It's even the same, if you would say: I already installed the "plesk-php56-devel" - package.which installs its own php70-dev
Install plesk-php70-devel package with yum.
Error: Package: plesk-php70-devel-7.0.9-centos7.16072211.x86_64 (plesk-php-7.0)
Requires: plesk-php70 = 7.0.9-centos7.16072211
Installed: plesk-php70-7.0.10-centos7.16090813.x86_64 (@PHP_7_0-dist)
plesk-php70 = 7.0.10-centos7.16090813
Available: plesk-php70-7.0.9-centos7.16072211.x86_64 (plesk-php-7.0)
plesk-php70 = 7.0.9-centos7.16072211
Try to install it manually - plesk-php70-devel-7.0.10-centos6.16090813.x86_6..>
Yes, it will.Will this package update with regular PHP updates?
Pls. check your existing "*.ini" - files at for example "/opt/plesk/php/7.0/etc/php.d/". If you already have an existing "*.ini" - file, which directs to the PHP - depending "*.so" - file, then there is certainly no need to include it a second time.Also, am I correct in thinking that I do not need the redis.so file attached in the original post now? Redis is listed under PHP extensions.
cd /opt/plesk/php/7.0/include/php/ext
wget -O phpredis-php7.zip https://github.com/phpredis/phpredis/archive/php7.zip
unzip phpredis-php7.zip
rm -fv phpredis-php7.zip
cd phpredis-php7
/opt/plesk/php/7.0/bin/phpize
./configure --with-php-config=/opt/plesk/php/7.0/bin/php-config
export CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
make
make install
ls -la /opt/plesk/php/7.0/lib64/php/modules/redis.so
/opt/plesk/php/7.0/bin/php -v
/opt/plesk/php/7.0/bin/php -i | grep redis
echo 'extension=redis.so' > /opt/plesk/php/7.0/etc/php.d/redis.ini
plesk bin php_handler --reread
Yes, I suppose that re-complation module for current PHP version will be required.Updating to Plesk Onyx, will the manually added PHP Redis extension be working after the update? Or would we have re-configure redis using the one that comes with Plesk Onyx?
Updating to Plesk Onyx, will the manually added PHP Redis extension be working after the update? Or would we have re-configure redis using the one that comes with Plesk Onyx?
Edit of my post: Got PHP Redis compiled and working on CentOS 7 and Plesk 12.5.
Code:yum update yum install make plesk-php70-devel gcc glibc-devel zlib-devel cd /opt/plesk/php/7.0/include/php/ext wget -O phpredis-php7.zip https://github.com/phpredis/phpredis/archive/php7.zip unzip phpredis-php7.zip rm -fv phpredis-php7.zip cd phpredis-php7 /opt/plesk/php/7.0/bin/phpize ./configure --with-php-config=/opt/plesk/php/7.0/bin/php-config export CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe" make make install ls -la /opt/plesk/php/7.0/lib64/php/modules/redis.so echo "extension=redis.so" >/opt/plesk/php/7.0/etc/php.d/redis.ini /usr/local/psa/bin/php_handler --reread
Pls. consider to read IgorG's answer to your question: => #4Great - but what is with plesk 12.5 ?