Install ssh2 php extension

Instructions for installation of PHP extension ssh2. cd /usr/local/src wget http://www.libssh2.org/snapshots/libssh2-1.6.1-20160109.tar.gz tar -zxvf libssh2-1.6.1-20160109.tar.gz cd libssh2-1.6.1-20160109 ./configure –with-php-config=/usr/local/bin/php-config make make install cd /usr/local/src wget http://pecl.php.net/get/ssh2-0.12.tgz tar -zxvf ssh2-0.12.tgz cd ssh2-0.12 phpize ./configure –with-ssh2 make make install Activate it in your PHP config file: /usr/local/php/php.ini extension=ssh2.so Check if ssh2 extension is loaded php -m|grep ssh2

Read More

How to install ffmpeg-php

We have made a simple ffmpeg-php installer for CentOS servers running CWP. To install FFMPEG and ffmpeg-php in your CWP, go to PHP Settings –> FFMPEG Installer. Installation will run in a background, once you click on the installer button. You can tail/monitor your installer log from the shell or get back in 10-20 minutes […]

Read More

php.ini per folder

All server with CWP can have custom php.ini file set per user account or per folder. User can manually create php.ini file and add values which needs to be changed in it. Location of the global server php.ini file is /usr/local/php/php.ini Location of the global per account php.ini file is /home/USERNAME/php.ini You can also have […]

Read More

PHP compile errors

Compiling PHP with tidy support ADDED FLAGS IN COMPILER: –with-tidy COMPILE ERROR: configure: error: Cannot find libtidy SOLUTION: yum install libtidy libtidy-devel Additional Error solutions http://crybit.com/20-common-php-compilation-errors-and-fix-unix/

Read More

PHP Version Switcher

Now CWP has a PHP Switch option where you can very easily switch to other PHP version and recompile it with desired modules. How to use it? – Click on PHP Version Switcher (here you will get server PHP version and compiled modules which your server has now compiled). – Select PHP Version you wish […]

Read More

PHP Selector

From version 0.9.8 all CWP servers have a CWP PHP Selector which can install all PHP versions with a single click. Using CWP PHP selector you can use a different PHP version per folder or domain. Available PHP versions in the CWP PHP Selector – php 4.4 – php 5.2 – php 5.3 – php […]

Read More