Plesk 12.x / Windows :: Creating Event Handler - Domain Name
Dec 18, 2014
I am trying to create plesk event handler
I have created the event
"C:Program Files (x86)ParallelsPleskbinsubscription_settings.exe" -u "${NEW_DOMAIN_NAME}" -disk_space 15G
for domain updated / domain created
But it doesn't run.
If I add hardcode the domain name for example mytest.com
"C:Program Files (x86)ParallelsPleskbinsubscription_settings.exe" -u mytest.com -disk_space 15G
the event works.
View 7 Replies
ADVERTISEMENT
Apr 25, 2014
Which Event Handler gets fired when a subscription is created? I've tried both "Hosting settings created" and "Default domain (the first domain added to a subscription/webspace) created" but those don't seem to be firing when I create a new subscription. After creating the Event Handler the psa service was restarted each time. I have a script setup to just log the NEW_DOMAIN_NAME to a file, but that isn't happening.
View 3 Replies
View Related
Apr 17, 2014
How can I create new action when new subscription was created/deleted?
View 1 Replies
View Related
Mar 1, 2015
I am running Plesk 11.5.30 on CentOS and trying to change the default permissions of the /httpdocs folder and the skeleton site that is in .skel/0/httpdocs that appears when a domain is created. I have failed to find the event that I need to use to trigger the command.
#!/bin/bash
chmod -R g+rwx "/var/www/vhosts/${NEW_DOMAIN_NAME}/httpdocs"
Some research suggested using the 'physical hosting created' but there is no option for this in 11.5.30.
View 3 Replies
View Related
Dec 8, 2014
I'm trying to create a new domain extranet.ondes.fr to have a forward on an another website.
And have this error message : "Erreur: Failed domain creation: Impossible de mettre à jour les données du domaine : Failed mail post-configuration: Can't create mail domain servie: mail_Facade->createDomain() failed: mailmng failed: MEAOPO.PostOffice.AddPostOffice failed for name extranet.ondes.fr [extranet.ondes.fr]"
View 3 Replies
View Related
Mar 21, 2015
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.
View 1 Replies
View Related
Apr 27, 2015
I'm receiving the following error whenever I try to edit any hosting settings
Unable to determine preferred php handler id
I've found the article for this on the Linux KB (which states to raise a support ticket) but nothing on Windows.
I am running Windows Server 2012 R2 with Plesk 12.0.18
View 1 Replies
View Related
Jan 23, 2014
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.
View 2 Replies
View Related
Dec 1, 2014
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.
View 2 Replies
View Related
May 15, 2013
why on some domains Windows plesk not creating DNS Zones, How to fix domains whitout DNS zones ?
View 2 Replies
View Related
Feb 14, 2014
The issue is effectively that we created a subscription with the domain. Which has since been deleted. The domain now wants to be added to another subscription on the account.
The domain can be seen in both the PBAS and PPA domains and everything seems to point at the right subscriptions. I presume all this is right as we have other domains quite happily added to the subscription in a similar manner.
I'm not really wanting to rip out the entire domain from the system as we spent the morning putting in 132 records, due to a bizarre lack of bulk insertion tools.
View 9 Replies
View Related
Apr 13, 2014
I am new to Parallels software, more specifically Parallels Panels. I have installed a trial copy of the software on my Windows 2008 R2 SP1. This is a Dedicated machine with no other users on it. I presume installation of Panels was successful because I can log in and see the admin control panel. I created a customer with success. I am now trying to create a subscription using the default service plan. After entering all the appropriate info on the new subscription page and submitting it, a few moments later I receive the following error:
Error: Filename: ?C:Inetpubvhosts estyourwebhostingprosite.comhttpdocsweb.config
Error: The configuration section 'system.webServer/rewrite/rules' cannot be read because it is missing a section declaration In module Exception type: System.Runtime.InteropServices.COMException at Microsoft.Web.Administration.Interop.AppHost
[Code] ....
View 3 Replies
View Related
Apr 24, 2014
I am trying to write a script PHP creating a subdomain on a server when executed (as well as doing other stuff, but that part work). But, when I send my request to the server, the script, while it does create the subdomain, doesn't display anything upon execution (I have put a few echo in the script to check the advancement, and nothing appears).
The error message : Echec du chargement de la page Aucune donnée reçue.
Here is my code :
/**
* Returns DOM object representing request for creation of new subdomain named after the parameter
* @return DOMDocument
*/
function createSubdomain($nom)
{
$xmldoc = new DomDocument('1.0', 'UTF-8');
$xmldoc->formatOutput = true;
$packet = $xmldoc->createElement('packet');
[Code] ....
The function curlInit and sendRequest are those used in the examples provided on this site, but I put them here just in case :
/**
* Prepares CURL to perform Plesk API request
* @return resource
*/
function curlInit($host, $login, $password)
[Code] ....
Why it doesn't send anything back ? When I modify the property line in the request, the script displays something, but it also fails at creating the subdomain (because the parameters are incorrect).
View 3 Replies
View Related
Jul 8, 2014
In the attached image, the following error details to create a new subdomain
View 3 Replies
View Related
May 1, 2013
recently i created a domain subscription with 3 alias domains. Thanafter i created a sub domain to a folder in the main domain. At first all went fine but after deleting the alias domains subdomains ans domain supscrption to register all the 4 domains each seperately a problem accured and i cant add any subdomain to none of the 4 domains. registering the domains themselves as individual domain works for each one perfect. But as soon as i try to add a subdomain on any of that 4 domains i get an error that the dns data could not be updated. As it looks like there is still some codes in the plesk database that links to 4 domains in any kind together and prevents me to creste a subdomain.
How can i manually remove all the domains subdomains and alias domain garbage from the plesk database. I use windows version of plesk panel 11.0.9 on windows 2008 server datacenter edition. I have good skils in IT but im not familiar with mysql and plesk. how to remove the records from plesk Mysql database. Command line commands internal commands locations that have to be altered and all other needed steps.
View 1 Replies
View Related
Jul 3, 2012
Is there a way to create global default nameservers for our clients to use in Plesk 11? A lot of clients rather not create their own nameservers, and would simply like to use ours. I can't find any settings in the Plesk Administration where you would create your nameservers as you would in other panels like cPanel/WHM.
View 3 Replies
View Related
Dec 1, 2014
We can no longer create a working subscription
Microsoft Windows Server 2012 R2
12.0.18 Update #26
After the creation of a subscription, DNS does not work properly.
The last successful subcription was created Sept 26, 2014.
I thought something ontoward had happened at first so attempted to delete the subscription and re-create.
On attempting to delete the subscription the following error is given
Error: Some of the selected subscriptions were not removed.
Unable to remove domain: Error during domain.com removeZone: dnsmng failed: Unknown error 0x80131509 (COM Interop Error 80131509, Description: System.InvalidOperationException: Operation is not valid due to the current state of the object. at System.Management.ManagementObject.Delete(DeleteOptions options) at System.Management.ManagementObject.Delete() at WMIMsDNS.Provider.DeleteRecordsByType(String zone, String type) at WMIMsDNS.Provider.DeleteZone(String zone, UInt32& serial)) at removeZone ZoneName = 'domain.com'Click to expand...
View 10 Replies
View Related
Jun 24, 2013
I have a server with Plesk Panel 11.
When I create a domain, I created the folder:
c: inetpub vhosts.
I need to change the folder, since in that hard drive partition I'm running out of space.
How I can change the location of the folder where Plesk creates domains?
View 2 Replies
View Related
Sep 22, 2012
I have a problem with my plesk v11, when i create a new subdomain and upload my asp.net application to that and make a request to view my web page it get Server Error 401 :
401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.
But my main web site have not any problem and works fine, my changes that didn't work :
1) change in web.config file :
<authentication mode="None">
</authentication>
2) change in web config file :
<authorization>
<allow users="?"/>
</authorization>
Another question that i have is this happens because the Plesk's default permission assigning to the main domain so the users can view content without problem, but the permission isnt assign to the created subdomains ?
If this is the problem, how can i fix it so my users can see the content with our Windows Authentication or Forms authentication or anything else?
this is my domain name : www.senatex.ir
and this is my sub domain : nerkh.senatex.ir
Also parallels default host files not have any problems, for example : content.senatex.ir
View 1 Replies
View Related
Jun 30, 2012
I recently upgraded to version 11.0. Since the upgrade, I am not longer able to to create Sub-Domains. I did this all the time with version 10x with NO issues whatsover, but now I get the following error when trying to create a subdomain:
Error: Invalid webmail type
SCREENSHOT OF ERROR IS ATTACHED.
View 9 Replies
View Related
Apr 15, 2015
I have following Warning when creating a new Domain inside a Subscriptions:
I found this Article: [URL] .....
But in my case this does not solve the Problem.
1> All permissions are right.
2> When I type command '/usr/local/psa/bin/repair --restore-vhosts-permissions' i get the answer 'Directory permissions were successfully updated.'
3> The Order of Webuser and FTPUser (as described in the article) could also not be the problem, because in my case there is only one user (There is only Webuser and no FTP-User.)
4> When typing '/usr/local/psa/bin/repair --update-vhosts-structure' I get the following error 6 times each:
Code:
[2015-04-15 21:03:30] ERR [util_exec] proc_close() failed
Error: update-vhosts-structure failed: mkdir: cannot create directory `./webroot.kk-bits.com/logs': File exists
ERROR: Cannot relink logs. Target directory '/var/www/vhosts/webroot.kk-bits.com/logs' is in invalid state.
Unable to update the structure of the home directory: an unexpected error has occurred.
update-vhosts-structure failed: mkdir: cannot create directory `./webroot.kk-bits.com/logs': File exists
ERROR: Cannot relink logs. Target directory '/var/www/vhosts/webroot.kk-bits.com/logs' is in invalid state.
To get the error 6 times seems to mean, that i have this problem with 6 Domain.
View 1 Replies
View Related
Mar 5, 2015
If a shell script is run via the Plesk Events Manager, where does STDOUT & STDERR go? (assuming that nothing in the script itself is redirecting it)
Does it get automatically sent to /dev/null?
Does it get written to a file somewhere?
Is having a script produce output when run from Plesk Event Manager likely to cause any problems?
View 3 Replies
View Related
May 19, 2014
How can I configure an event so when the number of emails in the queue exceeds a certain number then I am notified on the Mobile Plesk Server Monitor?
View 7 Replies
View Related
Jun 10, 2014
I'm trying to run a simple bash script when a new account is created, because I need to move some files automatically. So what I did:
I have created a simple bash script for testing if Plesk run it, called move_some_files.sh under /var/www
Code:
#!/bin/bash
echo "${NEW_SYSTEM_USER} ${NEW_DOMAIN_NAME}" >> move_some_files.log
I created this file as root and did chmod +x.
I created a new 'Hosting settings created' event running as root and with the highest priority with this command: /var/www/move_some_files.sh
I created a new customer with to test it
But, is not running the script! If I try some command directly on the event like 'touch /var/www/new_file' it's created, so the event is running, but not my script.
View 1 Replies
View Related
Jan 15, 2015
PRODUCT, VERSION, MICROUPDATE, OPERATING SYSTEM, ARCHITECTURE
Parallels Plesk, 11.5, .30_build115130819.13, Debian 7.0, Intel 64bit
PROBLEM DESCRIPTION
When triggering the events 'Mail account created' or 'Mail account modified' the returned variable NEW_MAILBOX will always state TRUE regardless of the mailbox option being ticked or not ticked on the 'New mail account' option located on the 'Mail' tab of a subscription.
STEPS TO REPRODUCE
1: Log in to plesk.
2. Select 'Tools & Settings'
3: Select 'Event Manager'
4: Select 'Add New Event Handler'
5: Select Event 'Mail account updated'
6: Enter in '/usr/bin/php /root/scripts/dbmail/mail_mod.php' to the Command box.
[Code] ....
ACTUAL RESULT
[NEW_MAILBOX] => true
EXPECTED RESULT
[NEW_MAILBOX] => false
ANY ADDITIONAL INFORMATION
I submitted this with parallels support and they stated that the variable NEW_MAILBOX will always return as TRUE regardless of if the mailbox option is ticked or not. They also stated the NEW_MAILBOX variable will be true regardless of any action taken on the panel with mail accounts.
The actual documentation on this variable is very sparse
Component name/description Old component value New component value
Mailbox old_mailbox new_mailbox
We previously had some code that would trigger on this variable and would create a mail account on our mail server with or without a mailbox.
if (!strcmp(getenv('NEW_MAILBOX'),"true") && !strcmp(getenv('OLD_MAILBOX'),"false")){
//Create a mailbox on the external mail service
}
if (!strcmp(getenv('NEW_MAILBOX'),"false") && !strcmp(getenv('OLD_MAILBOX'),"true")){
//Create a mail forwarder on the external mail service
}
At some point this variable has stopped working with newer versions of plesk. Having a variable that is always true regardless of what is done when creating a mail account seems pointless and requesting a new feature that was already there in older versions doesnt seem like something that should be requested on a new feature request.
QUESTION: Is there anyway to get this functionality restored other than requesting it gets re added via [URL] ....
View 2 Replies
View Related
Oct 24, 2014
I just added a new PHP Handler with PHP Verison 5.5.18 as cgi and i always get an error when activating. I used the samte setting and php ini as the Buildin Ones
root@ip1:/usr/local/src/php-5.5.18# /usr/local/psa/bin/php_handler --list
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom:
5.5.18 5.5.18 5.5.18 5.5 cgi /usr/local/php550-cgi/bin/php-cgi /etc/php5/cli/php.ini true
cgi 5.3.29 5.3.29 5.3 cgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
fastcgi 5.3.29 5.3.29 5.3 fastcgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
module 5.3.29 5.3.29 5.3 module /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
When i want to activate it i get
Fehler: phpinimng failed: Cannot parse php.ini: (<class 'php_ini.PhpIniSyntaxError'>, PhpIniSyntaxError('[<stdin>:24] Invalid configuration line. Are there excessive leading spaces?',))
I get this even if i want to activate a build in one.
In my additional php config i have
mail.log = /var/log/phpmail.log
mail.add_x_header = On
date.timezone = "Europe/Berlin"
[Zend]
zend_extension=/usr/lib/php/modules/ioncube_loader_lin_5.3.so
zend_extension=/usr/lib/php5/ZendGuardLoader.so
sendmail_path = /usr/sbin/sendmail-wrapper-php
I am using Debian Squeeze.
View 4 Replies
View Related
Sep 25, 2014
sometimes my server doesn't forward emails to other accounts, and I see in log file:
Sep 25 07:38:55 s17218468 /usr/lib64/plesk-9.0/psa-pc-remote[1151]: handlers_stderr: DEFER
Sep 25 07:38:55 s17218468 /usr/lib64/plesk-9.0/psa-pc-remote[1151]: DEFER during call 'grey' handler
Sep 25 07:38:55 s17218468 /usr/lib64/plesk-9.0/psa-pc-remote[1151]: Message aborted.
If I restart the server it works.
View 3 Replies
View Related
Dec 23, 2014
On a server which was running for years now and was updated from plesk 10 to plesk 11 and also to plesk 12 (12.0.18 Update #29) there seems to be a bug.
Customers are able to change PHP handler while in site_isolation_settings.ini it is not allowed:
php_handler_type = fastcgi
PSA service was restarted too:
/etc/init.d/psa restart
This is a serious issue because customers should not be able to change PHP handler type.
Only abonnements created with older Plesk versions are affected. I cannot say which version exactly because server had installed Plesk 10, 11 and 12. What do we have to modify to disallow changing the PHP handler type for this abonnements created with Plesk versions befor Plesk 12?
View 4 Replies
View Related
Nov 24, 2014
It is posible add new mail handler before queue for spam? Example:
mail_handlers_control --add --priority=10 --executable=/usr/local/psa/handlers/hooks/spam --name=spam --enabled --queue=before-queue --type=recipient-domain --mailname=domain.com --context=text
I need for scan relay mail ....
View 1 Replies
View Related
Jun 8, 2008
i have just asked about it a local hosting copany and they show unable to understand what i was asking in the beginning and to give me a proper reply when they finally did.
What i want is to create several mail accounts using my domain names (several mail accounts for each domain name using it)
The usual answer is to use mail forwarding that every registrar offer for free when you register a domain name with them.
So you get a
free mail account
amail@gmail.com
domain name
adomain.com
and you create a forwarding such as
amail@adomain.com to amail@gmail.com
then you give amail@adomain.com so they can write to you using that fake mail, the message will bounce in your registrar and will send it to amail@gmail.com
but what if i want a real amail@adomain.com mail because i want to write replies from that address.
With mail forwarding as long as i know you can receive mail using the fake mail forwarding address but as mail is not a real one you then are forced to reply from the real account behing the forwarding one amail@gmail.com
Can i do that, is that a service included in hosting plans or somewhere. Or am i wrong and its simpler than that.
View 10 Replies
View Related