create_user_session.php was not found on this server

Evan Ferroli

Member
Apr 7, 2018
8
0
1
France
cPanel Access Level
Reseller Owner
Hello Cpanel community,
I recently created the web hosting company with WHMCS and adding a server with cPanel connection, the moment I try to connect, it puts me the message of error:
cPanel API Unreachable:

Not Found

The requested URL /json-api/create_user_session.php was not found on this server.

For information, I have version 7.4.2 of WHMCS and it is an official version.

I have read all the WHM and cPanel documents related to this problem, but nothing has worked.

Could you help me?

Regards,
Evan Ferroli Touiti
 

Attachments

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hi @Evan Ferroli

Can you tell me, do you have CSF enabled on the cPanel server? If so, does the error persist if you temporarily disable it and it's rules. You can do this by running the following:

Code:
csf -x
iptables --flush
Then test if you're able to connect with WHMCS

Once complete just run

Code:
csf -e
To re-enable CSF


Thank you,
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hello,


The error message you're receiving indicates an inability for WHMCS to connect to the server. If you followed the instructions I provided to disable CSF and its rules added to iptables I'd like to know if there are any associated errors in the cPanel error logs when attempting to access the server using WHMCS. The cPanel error logs are located at /usr/local/cpanel/logs/error_log


Thank you,