• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Domain setup error

C

cyleung

Guest
Hello,

I am trying to setup SSL on my domain and got the SSL cert. in place.
But when I tried to assign the domain to the SSL cert. by going to Domain -> Setup
I got the following error, I got the same error after I ran the plesk repair...

DB query failed: Table 'psa.protected_dirs' doesn't exist
---------------------- Debug Info -------------------------------
0: C:\Program Files (x86)\SWsoft\Plesk\admin\plib\common_func.php3:209
db_query(string 'select id, path, realm from protected_dirs where dom_id=1 and dom_type="domain"')
1: C:\Program Files (x86)\SWsoft\Plesk\admin\plib\class.ProtectedDirsList.php:40
ProtectedDirsList->fetchProtectedDirsList()
2: C:\Program Files (x86)\SWsoft\Plesk\admin\plib\class.ProtDir.php:324
ProtDir->checkDuplicates()
3: C:\Program Files (x86)\SWsoft\Plesk\admin\plib\class.PHostingManager.php:239
PHostingManager->getPleskStatPDir()
4: C:\Program Files (x86)\SWsoft\Plesk\admin\plib\class.PHostingManager.php:213
PHostingManager->isPleskStatProtected()
5: C:\Program Files (x86)\SWsoft\Plesk\admin\plib\class.PHostingManager.php:2205
PHostingForm->assign(object of type PHostingManager, boolean true, boolean true, boolean true, boolean false)
6: C:\Program Files (x86)\SWsoft\Plesk\admin\htdocs\domains\hosting\phosting_setup.php:265


Thanks

CY

PS: Is there a KB article that talks about SSL setup with plesk and IIS 6.0?
 
Hi,

Plesk database is corrupted.

Here is an protected_dirs table structure.

CREATE TABLE `protected_dirs` (
`id` int(10) unsigned NOT NULL auto_increment,
`non_ssl` enum('false','true') NOT NULL default 'false',
`ssl` enum('false','true') NOT NULL default 'false',
`realm` varchar(255) default NULL,
`path` varchar(245) NOT NULL default '',
`dom_id` int(10) unsigned NOT NULL default '0',
`dom_type` enum('domain','subdomain') NOT NULL default 'domain',
PRIMARY KEY (`id`),
UNIQUE KEY `dom_id` (`dom_id`,`dom_type`,`path`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
Thanks for the response. So how do I recover the database? Is there any other utils to do that?

Could I just simply re-create that table? What data do I have to add to the table?

Thanks a lot
 
Back
Top