cpanel php class not creating object -
we used "cpanel api2" library create park domain in our server , working fine until last cpanel up-gradation.
we created file mytest.live.php on server create object of "cpanel class" troubleshooting issue, unfortunately returns error below.
<?php require_once "/usr/local/cpanel/php/cpanel.php"; $cpanel = new cpanel(); ?> and output returns:
fatal error: uncaught exception 'runtimeexception' message 'there problem fetching env variablecontaining path socket' in /usr/local/cpanel/php/cpanel.php:146 stack trace: #0 /home/cityusa/public_html/mytest.live.php(4): cpanel->__construct() #1 {main} thrown in /usr/local/cpanel/php/cpanel.php on line 146 so please resolve issue.
you should try naming file ".live.php" or ".livephp". worked me.
Comments
Post a Comment