Preparing to install Centova Cast on a CPanel server

Question:

How do I prepare my CPanel server before installing Centova Cast?

Answer:

Please note that these instructions are provided only as a courtesy to our customers; we cannot provide technical support for working with third-party control panels.

That said, these are the procedures used by our installing technicians to disable restrictions which would prevent Centova Cast from operating on CPanel servers:

  1. Login to your WHM control panel as root (i.e., at http://yourdomain.com:2087)
  2. Under Security, click Security Center.
  3. Click PHP open_basedir Tweak.
  4. CPanel will display a list of web sites hosted on your server. Find the one on which you want to run Centova Cast. Place a checkmark in the box next to it, and click Save at the bottom of the page.
  5. Next, you must disable PHP Safe Mode if it is enabled. CPanel makes it easy to disable safe mode for your entire server, but it is trickier to disable it just for one web site. If you don't mind disabling safe mode for ALL sites on your server, simply click Service Manager (under Service Configuration), and then set Safe Mode to Off and click Save. Then skip the remaining steps.
  6. If you don't want to disable safe mode for ALL of your sites, you'll need to just disable it for the domain on which you want to use Centova Cast. To do that, follow the remaining steps, but be extremely careful as any minor mistake could render your web site unusable.
  7. Login to your server via SSH.
  8. Run the following command: nano /usr/local/apache/conf/httpd.conf
  9. Press Ctrl+W, enter your the domain name (i.e., yourdomain.com), of the web site on which you want to use Centova Cast. Press enter to search for your web site's configuration.
  10. You should see something like:

    <VirtualHost 10.203.17.49>
    ServerName yourdomain.com
    ...(several other lines here)
    </VirtualHost>
    

    Immediately before the </VirtualHost> line, add the following line:

    php_admin_value safe_mode Off
    

    So the finished result should look something like:

    <VirtualHost 10.203.17.49>
    ServerName yourdomain.com
    ...(several other lines here)
    php_admin_value safe_mode Off
    </VirtualHost>
    
  11. Press Ctrl+X and answer Yes when asked to save changes.

  12. Run the following command to restart Apache: /usr/local/apache/bin/apachectl restart

At this point, CPanel should be configured correctly to allow the installation of Centova Cast, and you should be able to run Centova Cast's install.sh script at this time.

The only remaining issue that may be commonly encountered on a CPanel server is a potential ionCube loader issue described separately in this article.