Plesk 12.x / Windows :: Bulk Create Domains Through CLI
May 17, 2015
I need to create more than a 1000 domains and i'm hoping to do this using an automated process. I can create them individually through the command line interface on our windows server but this will take a lot of time and effort.
I have a dedicated server here in the UK with fasthosts (win 2008 server, IIS 7), which which has been running fine for nearly a year. it was running plesk 9.2, and then out of the blue it got errors creating a new domain saying that PHP wasn't installed.
PHP was/is installed on the server, and is still running fine within my 12+ domains/websites. at the point of the error it was running 5.3.8 - i had manually upgraded the version outside of Plesk, but it had seen the new version when installing new domains.
When Plesk stopped seeing that PHP was installed, my hosts asked me to upgrade Plesk, as it would solve the issue. I used that ai.exe program, and choose v11.
The control panel installed OK - but I did lose my websites for a while, due to it downgrading my PHP to v5.2, and installing an older MySQL version which tried to use the same ports etc (I also have manually installed mysql v5.5 and have 1gig databases in that installation!).
After chosing the upgrade to 5.3 option in the Plesk control panel, and turning the Plesk installed Mysql v5.1 service off and to disabled in windows services - 'revealing' my 5.5 version, I could at least get my websites up and running once again!
Once all those were running (the priority), I have found that v11 Plesk has the same problem as v9.2, namely that it doesn't think that PHP is installed and available.
The error on installing a new domain;
Error: Failed domain creation: Unable to update domain data: Execute websrvmng --add-domain "--domain-name=testkrispy.co.uk" failed with error code 1: PHP 5 is not installed
Oddly it does see PHP 5.3.15 in the Service components screen, and it's ticked 'green' in that page, so all looks well.
On trying to install a new domain using plesk I get this;
And also on pages such as webmail - it also shows 'PHP not installed' against those webmail clients which would need PHP to run.
Any way to 'force' Plesk to see that the PHP 5.3.15 version that it itself installed (and I've removed the component and re-installed using Plesk).
My list on the server components page;
ASP 7.0.6002.18276 ASP.NET 2.0.50727.4016 FastCGI Support 7.0.6002.22343 Perl v5.10.1 built for MSWin32-x86-multi-thread PHP 5.3.15 Python 2.6.5.12 SSI 7.0.6001.18000
I've tried something found on this forum (under the 10.4 area), but that hasn't fixed it;
"C:ParallelsInstallerparallelsPANEL-WIN_11.0.9dist-msi-Microsoft-2003-i386php53.msi" you will have an option for "repair" - ran that, no difference.
So as it stands, Plesk 11 is running, and most functions work, it just doesn't recognise the PHP install that it put in place... so I can't add software which requires PHP through Plesk, nor add new domains. All existing domains are running and using PHP fine - so it's installed OK.
One error I've noticed on startup - within the PHP error log, is the following - which I'm guessing is coming from the Plesk's own PHP executable (I can see it uses a 5.3.10 version in it's own admin area, with an extended php.ini file? ) I'm guessing the plesk's php.ini extension is trying to double load some dlls (which isn't a problem?) but seems to not find the php_sockets.dll - although that file is in the directory specified!? If it's a php dll around network sockets, maybe it is trying to use those to communicate with a running php instance? (Just guessing here?)
[30-Jul-2012 15:56:42 UTC] PHP Warning: Module 'mbstring' already loaded in Unknown on line 0 [30-Jul-2012 15:56:43 UTC] PHP Warning: Module 'mysql' already loaded in Unknown on line 0 [30-Jul-2012 15:56:43 UTC] PHP Warning: Module 'mysqli' already loaded in Unknown on line 0 [30-Jul-2012 15:56:44 UTC] PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0 [30-Jul-2012 15:56:44 UTC] PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0 [30-Jul-2012 15:56:44 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:pleskAdditionalPleskPHP53extphp_sockets.dll' - The specified procedure could not be found. in Unknown on line 0
Any time I attempt to create a customer, subscription, domain, anything I get the error "The password should be between 5 and 20 characters in length.". The password is exactly like that. On some pages it gives an error to the username I chose and the error just explains what a username is (??)....
The only actual error I've seen is one from creating an account via the command line. It was a PHP error relating to a function having issues with the encoding or something. (I think this is only relating to sending feedback though?)
Error occurred while sending feedback. HTTP code returned: 502 PHP Notice: iconv(): Wrong charset, conversion from `ISO-8859-1' to `UTF-8//TRANSLIT' is not allowed; File: /usr/local/psa/admin/plib/api-common/cu.php, Line: 599
Error occurred while sending feedback. HTTP code returned: 502 PHP Notice: iconv(): Wrong charset, conversion from `ISO-8859-1' to `UTF-8' is not allowed; File: /usr/local/psa/admin/plib/api-common/cu.php, Line: 597..I've tried OpenSuSE 12.3 with Plesk 11.5 and 12 and I'm now on OpenSuSE 13.1 with the latest Plesk 12.
How can I remove all previous web users, even after an uninstall, I am having trouble finishing a new installation, during the wizard because users already exist.
I have this big problem, when I try to create a new signature, it returns me this error (ProtDir_IIS :: update () failed: Add Protected Directory failed: columns SiteId, path are not unique (Error code 1)).
I am using Web admin edition .I need to create two subdomains namely sub1.example.com and sub2.example.com with different IP address. So i need to create two webspaces since a webspace cannot have two domians pointing to two different IP. So now to I can create two webspaces set to different IP. But to create sub1.example.com in one webspace and sub2.example.com in another webspace , i need main domain example.com in both the workspace. But if try to create example.com in second webspace it already exists.Because it exists in another webspace. Actually i dont want to create example.com in both webspace. i need to its subdomain in different webspace.
So one solution is to create example.com and sub1.example.com in one webspace and create another webspace using Adding new webspace and specifying domain name as sub2.example.com. But i don't know does the second subdomain will work properly without creating main domain.
My Plesk backup doesn't work properly. I constantly get the error "dump file has wrong format".I followed the steps in "How to verify an invalid Plesk backup file" [URL] .... and found the following:
No matter what I do (updating settings, saving, etc.), the error keeps coming back. Seems like a database inconsistency. How can I access the Plesk DB through PhpMyAdmin to check the notifications table? When I go to Settings > Database servers > Local MySQL server > Webadmin, I only see my customers' databases.
im getting an error when im trying to create a subscription on a windows node via PPA management node, the task error is:
Method name: registerIpPlesk on SCREFleskWebIIS:0 Last execution output: This IP address XXX.XXX.XXX.XXX is already registered in Panel on the network interface Local Area Connection
the IP XXX.XXX.XXX.XXX is the correct service node IIS ip address..
we use plesk 12 and server 2012 r2 i want know how can i disable php perl python cgi that resellers can not enable it for their users when add new plan, i do not want my users and users resellers access to php perl python cgi,
I have parallel plesk 11.5 on my VPS hosting. Recently I upgraded the PHP version to 5.4 via Updates and Upgrades feature. Now, I am not able to change anything for any domain/website, it always shows me following error:
"Error: Unable to create or update the subscription: The PHP handler "fastcgi-5.4" is not registered. It was probably deleted from the server. Register a handler with the same properties and try again."
I tried creating a handler with same name in IIS but it didn't work. When I checked in "Server Components" the max PHP version is "PHP 5.3.28" but I see PHP 5.4 installed in C:ParallelsPleskAdditionalPleskPHP54 folder on the server.
When logged into the admin panel, I can manage all other domain except for one. When I try to manage this particular domain (which is our own domain rather than a client domain), it takes a while before returning page not found. In the logs, it's getting a high volume of the following error message:
Error: Unable to create or update the subscription: The PHP handler "fastcgi-5.3" is not registered. It was probably deleted from the server. Register a handler with the same properties and try again.
I've tried attacking the issue through IIS. PHP appears to be configured correctly in IIS. I've looked at permissions. The website itself runs fine, I just can't manage the domain.
Another issue, which may be related, is when trying to access the PHP Manager in IIS for the PleskControlManager site, it gets an error stating that it can't find the php.ini file. I don't know if this is normal, or related.
I've installed the Plesk Panel onto a windows 2008 server. It's all good, web sites are flowing and I'm really happy with the software. The issue I'm having is a customer has an asp site with an access database. After I uploaded their site, they couldn't write to the database, so I had to manually go and set the permission on the database for the "Plesk IIS Anonymous Account (IUSR_xxx)" user to have modify access on the file.
So my question is this, how can I set up the default hosting account to already allow this and so I don't have to go an waste time tweaking the folders manually trying to find the right permissions?
Also, why is it the Plesk IIS Anonymous account that needed to have it's permissions tweaked and not the "Default Plesk application pool user (IWAM_plesk(default))" which is the user who's configured on the application pool in IIS? I can't see where the Plesk IIS Anon user is being used.
Any user that logs in, even with the format domainusername, get's the following error message: 530 User cannot log in.I have already tried the following:
I have a server setup and running shared hosting perfectly. I duplicated one of the plans and just set it to DEDICATED IP. This is for users that will be requiring SSL.
I then went into my panel settings and added in all the additional ip's. It even says in the panel listing "6 dedicated ip's available".
Yet, when I try to re-run the task for provisioning it constantly fails with the message:
Unable to create hosting. Ip address does not exist in client's pool ....
I need to get a list of suspend domains from mysql. The domains are suspend because they exceeded quota.So far I have done this query:
#############
select domains.id, domains.name as domena, Round(((sum(domains.real_size))/1048576),2) realMB,
(select Round((limits.value/1048576),2) from limits left join (domains, subscriptions, subscriptionproperties) on (domains.id=subscriptions.object_id and subscriptions.id=subscriptionproperties.subscription_id and subscriptionproperties.value=limits.id) where subscriptionproperties.name='limitsId' and limits.limit_name='disk_space' and domains.name=domena) quotaMB from domains where domains.status='2' and (select (sum(domains.real_size)))>0 group by domains.cl_id;
but I didnt managed to get only those that exceed the quota.
I need move "Manual Move" all the email content from different domains.
For example i have the domain:
xxx3.com
with the emails:
info@xxx3.com sales@xxx3.com network@xxx3.com
I like know how i can move the email content from every email from one Panel to another Panel without the Transfer Manager. Because the account is created on the other server with different configurations, but i need backup only the old email.