LIVEAPI to cPanel

Hello,
can you help me solve this problem if you?
Since cPanel when trying to access Cloudflare there is this message that appears:
Child failed to make LIVEAPI connection to cPanel
I wish to reinstall Cloudflare but will the API be the same?

That doesn’t look like something Cloudflare would be at fault for, especially the “connection to cpanel” part. Can you contact your hosting provider, or if you’re a host, get the full stacktrace from cpanel logs?

Hello @Judge
Here is what I found.
In short it lacks files that’s why it displays this message.

Checking the logs while replicating the error it seems that the Cloudflare plugin is missing files that it is looking for: 

=====
[12:07:29 Armis@114 ~]cPs# tail -n0 -f /usr/local/cpanel/logs/error_log
PHP Warning: require_once(Cloudflare/vendor/autoload.php): failed to open stream: No such file or directory in /usr/local/cpanel/base/frontend/paper_lantern/Cloudflare/index.live.php on line 2
PHP Fatal error: require_once(): Failed opening required 'Cloudflare/vendor/autoload.php' (include_path='/usr/local/cpanel/3rdparty/php/72/lib/php:.') in /usr/local/cpanel/base/frontend/paper_lantern/Cloudflare/index.live.php on line 2
[2019-02-22 12:08:08 +0100] die [Internal Death while parsing [live php] 4729] Child failed to make LIVEAPI connection to cPanel from: ./frontend/paper_lantern/Cloudflare/index.live.php. at cpanel.pl line 4182.
at cpanel.pl line 4182.
cpanel::cpanel::setup_external_engine() called at cpanel.pl line 784
cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/Cloudflare/index.live.php") called at cpanel.pl line 271


Child failed to make LIVEAPI connection to cPanel from: ./frontend/paper_lantern/Cloudflare/index.live.php. at cpanel.pl line 4182.
[2019-02-22 12:08:08 +0100] warn [cpaneld] The subprocess (cpanel (cpanel)) exited with an error: The subprocess reported error number 255 when it ended. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 251.
Cpanel::Server::Handlers::SubProcess::_report_subprocess_errors(Cpanel::Server::Handlers::SubProcess=HASH(0x1bdf5e0)) called at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 109
Cpanel::Server::Handlers::SubProcess::handler(Cpanel::Server::Handlers::SubProcess=HASH(0x1bdf5e0), "subprocess_name", "cpanel (cpanel)", "subprocess_read_handle", GLOB(0x1bdbef8), "subprocess_write_handle", GLOB(0x1bdfdd8), "subprocess_pid_to_reap", ...) called at cpsrvd.pl line 7168
cpanel::cpsrvd::cpHandler("app", "cpanel", "document", "./frontend/paper_lantern/Cloudflare/index.live.php") called at cpsrvd.pl line 2676
cpanel::cpsrvd::dodoc_cpaneld() called at cpsrvd.pl line 1882
cpanel::cpsrvd::dodoc(HASH(0x13bfc18)) called at cpsrvd.pl line 1625
cpanel::cpsrvd::handle_one_connection(5) called at cpsrvd.pl line 1031
cpanel::cpsrvd::script() called at cpsrvd.pl line 363
======

In this case, it is looking for the following file and is unable to: 

======
/usr/local/cpanel/base/frontend/paper_lantern/Cloudflare/autoload.php
======

I was able to list off the files in that directory and confirm that the file is missing as well: 

======
[12:08:22 Armis@114 ~]cPs# ls -lah /usr/local/cpanel/base/frontend/paper_lantern/Cloudflare/
total 1.3M
drwxr-xr-x 6 root root 4.0K Oct 18 12:32 .
drwxrwxr-x 79 root root 4.0K Feb 21 20:14 ..
drwxr-xr-x 2 root root 4.0K Oct 18 12:32 assets
-rwxr-xr-x 1 root root 1.3M Oct 18 12:32 compiled.js
-rwxr-xr-x 1 root root 755 Oct 18 12:32 composer.json
-rwxr-xr-x 1 root root 93 Oct 18 12:32 config.json.sample
drwxr-xr-x 2 root root 4.0K Oct 18 12:32 fonts
-rwxr-xr-x 1 root root 3.4K Oct 18 12:32 index.live.php
drwxr-xr-x 2 root root 4.0K Oct 18 12:32 lang
-rwxr-xr-x 1 root root 2.4K Oct 18 12:32 proxy.live.php
drwxr-xr-x 2 root root 4.0K Oct 18 12:32 stylesheets
======

When I try to uninstall it with this command.

bash <(curl -s https://raw.githubusercontent.com/Cloudflare/Cloudflare-CPanel/master/Cloudflare.install.sh) -k [YOUR_HOST_API_KEY] -n ‘[YOUR_COMPANY_NAME]’

I get this message:
bash: Erreur de syntaxe près du symbole inattendu « -k »

I take the opportunity to ask the question because I forgot which API key should I put?
Because I have two
Zone ID and Account ID area

This topic was automatically closed after 14 days. New replies are no longer allowed.