Plesk 12.x / Linux :: Default Site For Disabled Subscriptions
Jul 9, 2015
If you would disable a subscription and reloaded that domain name. You would be redirected to a default subscription. How can i change this default landing page?
I have Plesk 11.5 installed on my server. There are about 30 sites on the same shared IP address. I need to set up a site to be accessible via https://<ip-address-of-the-server> . According to the documentation I went to Setting -> IP Addresses and selected the desired site from the drop down. Now http://<ip-address-of-the-server> (note, 80th port) works like a charm. Unfortunately https:// displays only the first page of the selected site; all CSS, JS and other files are not found (404).
I did some research and found that Nginx forwards the requests to Apache for all the PHP files and tries to handle all the static files by itself (what is expected and correct). But it looks like that there is no special configuration for nginx which would specify where to get these static files for the IP address, and Nginx just uses the first loaded config (started from b in my case).
I temporary resolved this issue by modifying the last_nginx.conf for the desired domain this way: listen XX.XX.XX.XX:443 default_server ssl;
Note I added "default_server" directive. Of course it would be erased on each reconfiguration of the config files, but as for now I do not see how I can put it in custom nginx.conf or on the server servel level. I reckon Plesk should include the directive in the file the same way as it produces last_httpd_ip_default.conf Apache config for the selected domain. It looks to be an easy fix on the template level, may be I will do it later, but for now this is just the bug report.
I upgraded from 10.4.4 to 11.0.9 and saw no errors in the process, everything was fine. However when I checked the sites after, all of them (including sub-domains) were showing the default domain page. All the files are still there no problem, and as a test I deleted a subdomain a recreated it and it worked fine.
I have a feeling it's something to do with IP addresses (I currently have two set up - most sites use one and about only 5 use the other) as going to the subscription and changing the IP address over to the other one then back to the original seems to make the site show up for most sites. I can't do this on all sites though - any commands to reconfigure everything and get it all back in to place?
When I create a CNAME record for domain, and then trying to load it, it goes to default website. It was working fine before, all old CNAME records are working fine.
Tried reconfigure-all but it doesn't fix the problem. I'm using 11.5.30 Update #44
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.
Starting point: a working site using a shared IPv4, dedicated IPv6, and SSL. HTTP and HTTPS work, the latter only using SNI of course.
The good news: If I simply allocate an IP resource of 1 to a subscription it is pulled from the pool, assigned to the service node, assigned to the web site, DNS is updated, and the site is automatically changed to using a Dedicated IPv4 and Dedicated IPv6.
The bad news: visitors land on the default web site of the service node, with the default SSL certificate.
Other info: I can't ping the new IP, even though it shows in "ip a l" and /etc/sysconfig/network-scripts/ifcfg-eth0:0. [edited]
After the IP assignment, it is still installed, and /etc/httpd/conf/plesk.conf.d/ip_default/domainname.conf shows the new certificate is being used.
However, a second set of VirtualHost entries is created in server.conf for this IP for ports 80 and 443, with NameVirtualHost enabled on the new IP. The port 443 entry uses the default certificate. Apache's setup this default VirtualHost entry will override the web site configuration because Apache is listening on port 443 with the wrong cert.
If I go to "Change webspace settings" and toggle to Shared IPv4, Dedicated IPv6 the site works again via HTTPS, and Dedicated IPv4 and Dedicated IPv6 breaks it again. Setting the SSL cert to None and back again does not work.
Setting the SSL cert to None, changing to a dedicated IP, and enabling SSL results in the server being inexplicably inaccessible...browsers no longer connect to either the default site or the correct site, and I don't see any entries in the vhosts's logs.
I want to be able to copy 1000's of files from one subscription to another or rather from one domain to another on the server without having to FTP them each time. Is there a way which this can be done directly in Plesk and avoid the need to ftp the same 1000's of files into each subscription ? FTPing on my connection is really slow and takes 2-3 for each subscription / domain, whereas if I could just FTP to the server once and then copy&paste the files between subscriptions then this would save me a huge amount of time...
After upgrading (i know, i should not do this) from Squeeze to Wheezy i have got a problem with subscriptions.Plesk seems to work, but whein i want do manage a domain/hosting. i just see 502 Bad Gateway nginxClick to expand...
I can access 4 out of 5 domains in my subscritions, but one domain dosn't appear in the list.
The 4 working domains are "Default Domain", the one i can't access is "unlimited".
In the list of packages i can click on the number of subscriptions and see the domains, but if click on the 1 unlimited subscription nothing gets listed / no elements found.
The domains is online, but i can't access it with plesk.
Can't add new subscriptions or domains/ subdomain after upgrade. Upgraded to 12.0.18 today and can no longer add domains or subdomains. When I try create a new subscription I get the following error:
New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: No data. file: /usr/local/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Variable_Exception: No data. file: /usr/local/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0.
Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.
Trying to generate all configuration files OR generate broken configuration files doesnt work. Still get the same error.
When I try can create a subdomain I get the error:
............. Error: proftpd-config failed: mktemp: failed to create file via template `/etc/proftpd.d/50-plesk.conf.XXXXXX': No such file or directory Can not create temporary file ...........
This solution [URL] ..... doesnt work that just says 'ls: cannot access /etc/proftpd.d/: No such file or directory'
I tried yum update proftpd to see if that would do anything but get this...
Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * atomic: mir01.syntis.net 193 packages excluded due to repository priority protections Setting up Update Process No Match for argument: proftpd No package proftpd available. No Packages marked for Update
In plesk, ProFTPD ftpserver is showing as installed.
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.
I've been happily copy databases between subscriptions in Plesk 11.5xx for years but having updated to 12 the feature no longer works.
In the copy database screen when the 'local MySQL server' option is selected in the drop down the 'Copy to existing database' radio button is disabled.
My service provider tells me this is a feature change.
After a migration I did this weekend I mis a couple of the migrated domains in the subscription list. The domains are working great, but I cannot find them in Plesk.
I got this errors in the migration manager:
Info: The password was generated for user 'Domain Administrator (domain.com)'. New password is 'GA66QgQ'
Warning: Execution of /opt/psa/admin/plib/api-cli/user.php --create domain.com -owner admin -guid cfa43606-e8b0-444c-a005-660984840498 -cname Domain Administrator (domain.com) -passwd '' -status disabled -domain-admin true -email '' -external-email true -role Domain Administrator (domain.com) -country NL -legacy-user false -subscription-name domain.com -ignore-nonexistent-options failed with return code 1. Stderr is Error during user creation: Owner with id 1 has not subscription with id 69
Warning: domain "domain.com" Execution of /opt/psa/admin/bin/backup_restore_helper --restore-legacy-dlu domain.com -dlu-info /opt/psa/PMM/tmp/deployer_legacy_dluIrjcWa -ignore-nonexistent-options failed with return code 1. Stderr is Unable to create Account object: Account: unable to select: no such row in the tableClick to expand...
I got a new Server with Plesk 12.0.8 (old one has 11.5.30). Now I have to migrate all Subscriptions of the old System into the new one.
I tested it with one item and all time I get this warning:
Warning:SSL certificate "default certificate" Execution of /opt/psa/admin/plib/api-cli/certificate.php --create default certificate -cert-file /opt/psa/PMM/tmp/pmm-cert-GzVcei -key-file /opt/psa/PMM/tmp/pmm-privkey-PgXbaU -print-signature -admin -ignore-nonexistent-options failed with return code 1. Stderr is Unable to create certificate "default certificate": Unable to set the private key: Probably, the private key format is invalid.
I have a 'Service Plan' which has 270 subscriptions associated with it. When I navigate to 'Service Plans' page, underneath my plan it reads "Unable to sync subscriptions with the service plan" along with a yellow exclamation mark.
If I go into the plan there is another message near the "Update & Sync" button stating that syncing will take time and therefore be run in the background. When I click the "Update & Sync" button nothing appears to happen. If I then click on the plan again, as if to edit the settings I get the following "Warning: Subscriptions are currently syncing with the service plan. Please wait until the sync process is finished." and it prevents me from accessing the plan settings.
If I wait a while, I can eventually get into the plan settings again, which should mean that the Update & Sync has completed. However the "Unable to sync subscriptions with the service plan" warning is still present under my custom plan on the 'Service Plans' page and if I navigate to a subscription to check if it has been updated it hasn't.
If I change the subscription plan to another plan and then change it back to my original plan again, then the changes are reflected. But this is obviously a workaround.
Why doesn't the "Update & Sync" button do as it should?
Why is my plan "Unable to sync subscriptions with the service plan"?
Recently I've tested the usage of domain keys on my plesk 12 server. The feature works without problems. I'm wondering however if it's possible to activate the domain keys by a service plan or subscription model. If not, for all my domains (65) I've to activate them manually and for each domain iIll create in the future I have to activate it too.
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:
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.
Error: Unable to reconfigure web server. websrvmng failed: Site MailEnable WebMail does not exist at IIS7WebSites::get() In IIS7NativeProvider module Exception type: System.Exception at IIS7WebSites.get(IIS7WebSites* , auto_ptr* , Int64 id, basic_string,std::allocator >* idnName) Windows Server 2012 Plesk 11.0.9 Update #62 Note: Recently migrated from Plesk 9.2
Trying to set Default Site for a Dedicated IP Address.
I go to Subscription, then to domain > Change Hosting Settings, select dedicated IP address and OK, works fine. Site goes to Default Plesk Page.
Go to Tools & Settings, IP Addresses > Select the dedicated IP address I set above. Change Default Site to site above. Click Ok.
I get the error message above and nothing changes.
I looked on my IIS Server and MailEnable's Webmail is installed under the Default Website.
I have another Dedicated IP on this server and it has a default site on it working properly, but it was set up on the old site and it was configured as part of the Migration using Migration Manager.
I tried deleting the IP address and adding it back in. That didn't change anything. I also tried running: "%plesk_bin%websrvmng.exe" –reconfigure-webmail since that came up under someone else's issue when searching the web and that .exe is what's throwing the error.
Impossible to find a way to show, by default, all domains and websites...
When I log on the Plesk Admin, I come first on a list of websites and domains, but they are not «all» listed. I have to go to the full bottom of the page to click on «Show all».
I didn't find a preference or anything else to change that, and I don't understand why all domains are not listed.
I am replacing the default certificate in Plesk so that customers do not get a certificate warning when visiting the panel login page.
I've created the certificate in the "SSL Certificates" section made it default and used it to secure Plesk. However I've still got all the existing domains using the old default certificate, how can I do a mass changeover so that all existing domains are now using the new certificate?
I've updated the IP's to use the new certificate. When I go to "SSL Certificates" in "Tools and Settings", it seems that there are some domains now using the new certificate but quite a lot of the other are still not, how can I get these over too?