Problem with WHMCS script installer

Hello, I write you because I've a problem. I've bought a WHMCS license to use with WHMCS script installer (version 7.1.1) via virtualmin but unfortunately something doesn't work correctly. First I received that my virtual server is configured as Apache mod_php (run as Apache's user) and the installation failed because WHMCS cannot be installed when PHP being run via mod_php. So I've changed from Apache's user in CGI Wrapper but, at the end of installation, virtualmin returns me that: PHP configuration file was not found! Failed.... Moreover my website based on WP, after changing PHP script execution mode, return me a blank page with a file in download that said:

<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

In my vps I use Ubuntu 14.04 but I upgraded PHP to version 5.6, and MySQL is upgraded to version 5.6 too. Please could anyone help me to resolve this problem? Thank you in advance. Best Mike

Status: 
Active

Comments

Hi andreychek, thank you for your suggestion. I delete totally php 5.6. Not fixed yet, but seems that now I've a problem with whmcs cron script. The installation is gone correctly. Best Mike

Hello, I received a support from whmcs for my problem and they says:

It appears that you may have an issue with the cron file, in oder to get around this please replace the PHP part of your cron path with the full path to PHP so it reads
/path/to/php -q /cron/path

I launched again the cron and I received this notice from virtualmin:

Output from command php -q /home/wpbooster/public_html/whmcs/crons/cron.php ..

Site error: the file <b>/home/wpbooster/public_html/whmcs/crons/cron.php</b> requires the ionCube PHP Loader ioncube_loader_lin_5.5.so to be installed by the website operator.
If you are the website operator  please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.

So, I found a tutorial in the web how to install ioncube and I done so:

wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xvfz ioncube_loaders_lin_x86-64.tar.gz

then

php -i | grep extension_dir

then I received this output

extension_dir => /usr/lib/php5/20121212 => /usr/lib/php5/20121212

After I copied over the module to my PHP modules folder

PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;")
sudo cp "ioncube/ioncube_loader_lin_${PHP_VERSION}.so" /usr/lib/php5/201212

then

service apache2 restart

To ensure that the module was correctly installed, I created a file called test.php in /var/www/html with the following content:

<?php
echo var_export(extension_loaded('ionCube Loader') ,true)
?>

The output in my vps should be "true" but instead I received "false. So I found that virtualmin have a script installer for ionCube but if I launch it, I received this:

Are you sure you want to install ionCube into the directory /home/wpbooster/public_html?
27 files totalling 153.04 MB already exist, and will be deleted if the script is un-installed

Is that wrong in some part of that I done? Please could anyone help me to solve this problem? Thank you in advance. Best Mike