Exponent CMS upload on cPanel

ExponentCMS is a popular web site management framework.  It has its own internal security system to protect against web site hacking.  As a result, on cPanel, which has its own system, the file uploads may not work.  Here is what to do when there are file upload issues:

  • make sure suPHP is enabled in cPanel
  • make sure the default mask is 0022 or 022 in /opt/suphp/etc/suphp.conf
  • make sure the default mask is 644 in config.php
    Open up the /conf/config.php file and check the following lines:
    define('FILE_DEFAULT_MODE_STR','0666');
    define('FILE_DEFAULT_MODE',octdec(FILE_DEFAULT_MODE_STR+0));
    define('DIR_DEFAULT_MODE_STR','0770');
    define('DIR_DEFAULT_MODE',octdec(DIR_DEFAULT_MODE_STR+0));