Plesk 11.x / Windows :: Script PHP For Creating Subdomain
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
ADVERTISEMENT
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
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
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
Jun 20, 2014
I am planning to create site with sub domains like smth.domain.pl and there will be around 10 sub domains now my question is how to handle sub domain creation trough plesk or by htaccess ?
View 1 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
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
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
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
View Related
Jul 29, 2009
I have some URLs like:
[url]
[url]
Now,I would like to create an alias/sub-domain for this URL. For example:
[url]-> [url]
[url]-> [url]
how this can be done? Do I have to create a subdomain for this? But when I try to create a subdomain throught the OLM control panel, it asks me for the real path i.e. '/var/www/html/subdomain_folder' which I don't have in this case. Secondly, can this be done without modifying any information in the DNS? Changing DNS costs be $5/change from OLM
View 2 Replies
View Related
Aug 20, 2007
I have a problem here.
I have 2 domain on 1 account, which one is called domainA.com & domainB.com is an add-on.
I created 2 same subdomain name which are assigned to same subfolder!
subdomain.domainA.com (/public_html/subdomain)
subdomain.domainB.com (/public_html/subdomain)
The question is: How do i change domainB subdomain folder to something else? (eg. /public_html/domainb/subdomain)
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
Jun 19, 2007
Here is a summary:
One) allow users to register at the homepage. Then give them automatically a URL such as username mydomain com
Two) A catch-all subdomain so that if someone browses to xxxx mydomain d0t com and xxxx is not registered by any user; then it is redirected to www mydomain com
Three) All registered subusers details to be maintained in Mysql database (this seems to be easy)
Four) If possible, impose individual quota on each registered user (not really critical).
Which hosting plan should I go with for this? VPS? Shared hosting? Something else?
any particular company? what's the best approach for automatically creating the subdomain for each user upon registering at the site?
View 1 Replies
View Related
Jan 22, 2007
I currently own a few web hosting company's.
Where i seem to be having trouble is that i have allways used Reseller accounts to run my business. But recently this month i have purchased My own Servers.
I currently Own 9 Servers in total. So when it comes to Actual Server Managment im running into a brick wall lol
One of my business's invlolves Free web hosting.
And and I have been using one server for the free web hosting clients.
The problem is that sigle server is Maxed out I cannot add any more accounts to it withought jeperdising its stability.
This service Not only inlcudes Free domain hosting but sub domain hosting as well.
So now that you know a little background on what im doing heres the question
We use Client Exec as our billing and Auto Account Creation and we know its possible to Add multiple server to Client Exec and we can tell it to creat new accounts on anouther server But what hapends when someone wants a subdomain?
Its my understanding that subdomains can only reside on the server that the actual domain is being hosted. Is this right ? or is there a way to creat subdomains of a .com on anouther server where is not located...
Also i was wondering if it was possible to join servers together in one whm?
So under Ip Adresses we could just specify a new Ip & server would this work ?
I really need help fast since i get an average of 90 sighnups a day. and im sorry if theres a simple solution to this.. Im just new to actually owning my own hardware instead of using someone elses.
to me it just doesnt make any sence and i know it needs to be possible somehow ..
View 2 Replies
View Related
Feb 25, 2015
I use plesk 11, I was creat sub directory: domain.com/test. but I access via test.domain.com is ok, but domain.com/test is error " page not found" how to I access via domain.com/test ?
View 2 Replies
View Related
Oct 4, 2012
I have 2 domain names, lets say domain1.com and domain2.com.
domain1 is the main domain and it has a subdomain, lets say sub.domain1.com.
What i want to do is to forward domain2 to domain1 without loosing its name. I used frame forwarding at plesk panel. The domain2 is correctly forwarded to domain1 without loosing its name. The problem is that the sub.domain2.com displays the domain1.com and not the sub.domain1.com
Below are my dns settings at domain2.com:
xx.xx.xx.xx / 24 PTR domain2.com.
sub.domain2.com. A xx.xx.xx.xx
ftp.domain2.com. CNAME domain2.com.
ipv4.domain2.com. A xx.xx.xx.xx
[Code] .....
where xx.xx.xx.xx is my ip.
The funny thing is that webmail.domain2.com works fine.
View 1 Replies
View Related
Apr 7, 2014
I need to make it so that all possible subdomains will go to my main site
How do I do that?
View 4 Replies
View Related
Feb 19, 2013
I've got a plesk 11 server and I've created a subdomain for a client but I need to have this as a full domain for the SSL certificate. Is there a way to convert a subdomain to a full domain without deleting the subdomain and creating a new hosting subscription?
View 2 Replies
View Related
Sep 18, 2012
I have a client that has a subdomain shop.xxxx.com. This subdomain needs its own SSL and own IP address for it. Right now its listed as a subdomain under xxxx.com. Also, the xxxx.com has another SSL and IP.
Since there doesnt seem to be any way to do this in plesk, I had to create the subdomain as a regular subdomain and then manually manipulate IIS to change the IP and add the ssl mapping.
If I try to add a new domain, it automatically tags it with the WWW.
Is there any way to just create a new domain without the www infront of it, so I can move shop.xxxx.com from a subdomain to a primary domain that stands alone...
I haven't played around much with the new iis 7+, but in older iis, you needed a dedicated IP for each SSL certificate.
View 3 Replies
View Related
Aug 1, 2012
How can I set dedicated IIS Application Pool for each domain/subdomain? I only can found the setting assign one application pool for each subscription. But my subscription have two subdomain (one subdomain have virtual directory to share to other subdomain) and would like have two application pools.
View 7 Replies
View Related
Jun 21, 2014
I have a problem with my server. I am trying to make a subdomain, and it isn't working. I create it like how in all tutorials says here( click here ) . I completed all fields, but when i try to open the subdomain in a browser page, it's telling me, page not found / page doesn't exist. I have a dedicated server on window server 2008 for my website with a dedicated IP.
View 5 Replies
View Related
Jun 24, 2009
I am trying to create a subdomain on my dedicated server myself without paying 20 bucks to get it done through the host. I've been able to create the directory through IIS Manager and have it setup to point to a specific IP.
I'm not entirely sure what to do from this point on....When I type in the subdomain on the browser, it says it can't find it, so I'm guessing I have to do something through the DNS but not sure on how to do this.
It's IIS 6 on a Windows 2003 Server.
View 8 Replies
View Related
May 4, 2014
In my computer (Windows 7 Ultimate) I host my sites with Apache 2.2.25 - mod_fcgid-2.3.6-win32-x86 and PHP 5.4.28. In "httpd-vhosts.conf" file from Apache I have my domain set as follows and work fine (http://www.example.com or http://example.com):
Code:
<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot "D:/Apache22/vhosts/Example"
ServerName example.com
ServerAlias www.example.com *.example.com
[Code] ....
And I set up a subdomain as follows:
Code:
<VirtualHost *:80>
ServerAdmin director@example.com
DocumentRoot "D:/Apache22/vhosts/DirectorExample"
ServerName director.example.com
ServerAlias www.director.example.com *.director.example.com
[Code] .....
But when I tried to access the page: http://www.director.example.com or http://director.example.com, I was redirected to the page http://www.example.com.
I have DNS configured for "example.com" and "director.example.com". This sites is live in another server.
Error.log files for "director.example.com" and Apache is empty. How can I configure the subdomain to work?
View 2 Replies
View Related
Oct 6, 2007
i own a smal lVPS and am offering some people reseller hosting. My VPS runs plesk and unfortunately i have only had experience with cpanel. How can i make the users be able to create other accs like a reseller?
View 5 Replies
View Related
May 18, 2015
I have two servers, a plesk 11 installation and a plesk 12. Running Centos.
On the plesk 11, set up by others, I have a nameserver running NS1.xxxx.net & ns2.xxxx.net point to the IP of the server.
I want to create a nameserver on the plesk 12 -- can't see how to do this. Is there a nameserver setup function in plesk 12?
More advanced question:
The domain name xxx.net is hosted at 1&1 where I have put the IP of the plesk 11 server in the A records for ns1.xxxx.net and ns2.xxxx.net. I have pointed ns3.xxxx.net and ns4.xxx.net at the IP of the Plesk 12 server -- as I would like to use these addresses for consistency. If necessary, I'll use ns1/ns2.yyyy.net.
View 1 Replies
View Related
May 25, 2014
I'm looking for a way to create DNS records on a Plesk Panel account at the 'customer' level.
View 5 Replies
View Related