Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Cannot publish a site with WPB for cPanel: “Can’t receive authorization to work with the host”

 
cpanelcsrflinuxlinux serverpasswords

Symptoms

  • Web Presence Builder installed on a Linux server that uses cPanel's Web Host Manager
  • The site cannot be published via Web Presence Builder while being logged in to end-user's cPanel (11.42.0.23 or higher) as the WebHost Manager (WHM) admin user. The following error appears in the editor:

    The site cannot be published to the specified location.

  • One or several of the following errors appear in sitebuilder.log:

    [EMERG] /JsonApi/ SB_Site_Compiler_Target_AuthoriseException: Can't receive authorization to work with the host 'example.com' with login 'end-user'
    file: /usr/local/sb/include/SB/Site/Compiler/Target/FTP.php
    line: 181
    code: 0 203.0.113.2 http://203.0.113.3/Editor Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36

    [EMERG] /JsonApi/ SB_Exception: Invalid CSRF token has been provided.
    file: /usr/local/sb/include/SB/Controller/Plugins/Sb/CsrfProtect.php
    line: 21
    code: 0
    in /usr/local/sb/include/SB/Controller/Plugins/Sb/CsrfProtect.php on line 21
    #1 at SB_Controller_Plugins_Sb_CsrfProtect->preDispatch(object(SB_Controller_Request_Http))in /usr/local/sb/include/Zend/Controller/Plugin/Broker.php on line 309
    #2 at Zend_Controller_Plugin_Broker->preDispatch(object(SB_Controller_Request_Http))in /usr/local/sb/include/Zend/Controller/Front.php on line 941
    #3 at Zend_Controller_Front->dispatch()in /usr/local/sb/include/SB/Application/Web.php on line 262
    #4 at SB_Application_Web::run()in /usr/local/sb/htdocs/index.php on line 3

    [ERR] /JsonApi/ Cannot copy file to '8520e18166b4a618b525a36cf3627a37.php' via FTP (ftp_put(/usr/local/sb/tmp/ftp_publish_cache_zKT0K0_dir/8520e18166b4a618b525a36cf3627a37.php): failed to open stream: No such file or directory)

Cause

Some parameters (particularly FTP passwords) are not propagated from WHM (WebHost Manager) to cPanel and that prevents the publishing process from occurring normally if the WHM admin is performing it.

Resolution

Make sure that you are logged into cPanel directly as a customer by using the customer username and password and that you are not using the option login to cPanel from WHM > Account Information > List Accounts

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

WebPros Announces the Promotion of Jesse Asklund to Chief Product Officer

Read More »

How to Check Open Ports in Linux (Simple Commands & Tools)

Read More »

Linux Logs Explained

Read More »
Knowledge Base

Unable to publish website created in Web Presence Builder: APIv1 is deprecated. Please, switch to the new APIv3

Read More »

Error while accessing Plesk Web Presence Builder: Base table or view not found

Read More »

Broken WordPress installation after migration to Plesk via Site Import: it does not seem that this WordPress website is working

Read More »

Unable to create a backup or restore Web Presence Builder snapshot in Plesk for Windows: Invalid Snapshot

Read More »

Hosting Wiki

  • Cross Site Request Forgery (CSRF)
  • Server Redundancy
  • Linux Containers
  • Bare Metal Server
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • cPanel/WHM
  • Plesk
  • Web Server
  • DNS Server
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family