Can you just tell me where is the CPanel PHP Engine that parses <cpanel> tags
I can then use exec(cpanel_phpengine path to_my_script_phpcp) and get the job done
I tried the /usr/local/cpanel/3rdparty/bin/php but that is the standard PHP engine.
I need the CPANEL ENGINE
The following PHP code still gives error:
PHP Code:
echo shell_exec('/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/base/frontend/x3/plugin/functions.live.php');
The error given is "There was a problem connecting back to the cpanel engine. Make sure your script is ends with .live.php or .livephp"
The file is a live.php but still no luck!
Is it because of passing it through the wrong PHP :
/usr/local/cpanel/3rdparty/bin/php
Do you have a seperate PHP binary for CPanel PHP scripts.
Please help me, I have spent over 5 days trying to figure this out.
The reason I am using exec() is that I dont want to rename my index.php to index.live.php or index.phpcp or index.cpphp
ANOTHER Thing,
Why doesnt this work in php:
shell_exec('/usr/local/cpanel/bin/mysqladmin uid ADDDB dbname');
It works if i use SSH as root admin
Even if i try to make my own PERL script it gives me an error:
-bash: line 338: /usr/local/cpanel/bin/<<REMOVED>>: Permission denied
Please Reply,
Rongup