Plesk Automation :: Apply DNS Template
Feb 3, 2015I try to apply my dns template to all dns but it can't work.
I try on the interface and on the command line.
/usr/local/psa/bin/dns --reset [domain_name] -ip [ip]
I try to apply my dns template to all dns but it can't work.
I try on the interface and on the command line.
/usr/local/psa/bin/dns --reset [domain_name] -ip [ip]
I am currently in the process of migrating a few hundred domains from one server to another using Plesk's Migration & Transfer Manager. The servers have the following name servers allocated:
Server 1: ns9.example.com & ns2.example.com
Server 2: ns1.example.com & ns2.example.com
In the DNS Zone Template in Tools & Settings on Server 2, can I just click Apply DNS Template Changes and change all migrated domains NS records to ns1/ns2? Will this affect custom DNS entries as a lot of the domains have DNS changes that need to remain. I'm just hoping that this might be a quicker way than going into each domains DNS zone and manually changing ns9 to ns1.
I just really don't want all the domains DNS zones to reset to the standard template on Server 2 ...
Is there a way to set default PHP settings so they apply by default to all websites' custom php.ini file, or even server-wide or system-wide? For example, the timezone? I am using custom builds of PHP 5.5 and 5.6, per the PPA docs, but I found that, contrary to some Plesk (not PPA) documentation, /etc/php.ini is not used. It looks like a set of PHP settings are generated into a php.ini for the vhost, and I can set "Additional Directives" for each website but would prefer to set a system default. For instance, on recent PHP versions not having a timezone set generates a warning in the logs on every PHP execution. I'd also like to enable opcache since we're using FastCGI. So from where does PHP generate the vhost's php.ini?
As an aside, adding an "Additional Directives" entry with this unquoted generated an error and no directives were saved:
date.timezone=America/Chicago
Instead, I had to quote it:
date.timezone="America/Chicago"
We have a PPA environment with 7 service nodes (one management node, two web-, two database- and two e-mail servers). We also have 2 variants of hosting, a consumer and business variant.
We want separate the consumers from the business variants on the service nodes.
I want to use webserver1, databaseserver1 and emailserver1 for consumer hosting and webserver2, databaseserver2 and emailserver2 for business hosting
I want to make two service templates, one consumer and one business template.
Is it possible to configure ppa : When we subscript a consumer template, everything must provision only on the consumer service nodes automatically (web01, db01 and email01) and not on the business services nodes.
Running Plesk 11.0.9 Windows 2008 R2 ...We host several sites. One customer in particular has a locked default hosting package (for custom scripting needs under their website setttings) and we have applied an add-on of 10GB of bandwidth. The system does not show that it has increased their allowance still showing 19.9 of 10 Available (when it should be 19.9 of 20 available)
Also, we have not been getting overage notices for this customer....when normally we do. Maybe it's related to some automated task that's not running?
Ubuntu 12.04
Upgraded Plesk from 11.5 to 12.0.18 from panel.
I have installed PHP 5.3.29 (make from sources)
All smooth, added handler:
Code:
/usr/local/psa/bin/php_handler --add -displayname 5.3.29 -path /usr/local/php5329/bin/php-cgi -phpini /usr/local/php5329/etc/php.ini -type fastcgi -id php5329
App work ok after change to new php with hosting settings(change php handler Fast Cgi)
But php info shows that: Loaded Configuration File is /etc/php5/cgi/php.ini
This is not good as I checked should be for certain vhost cutsom php ini which is generated by PHP settings.
For example I changed in Plesk memory_limit to 333MB applied changes panel show successully, but still there is 128MB default value in phpinfo().
Am I missing sth ? Is there additional task needed expect adding handler? Or is there a known bug?
ps. after change handler back to 5.3.10, (default installation) there also custom PHP settings file seems not to be processed.
I did not tested earlier maybe upgrade Plesk to v12 broked sth? What should I check?
I have tried to delete (and let psa recreate) php.ini from vhost/system/mydomain.com/ but also did not worked...
im suddenly seeing this in my error log not sure what i need to change
mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
I am trying to install Automation, and I keep getting an error after the "Getting SELinux" step, here is a log of the process so far:
Code:
[INFO]: Checking current user privileges...
[INFO]: Checking critical environment requirements...
[INFO]: Determining OS parameters...
[INFO]: Detected OS: CentOS-5-x86_64
[INFO]: Getting SELinux state...
[ERROR]: Unexpected error: ''
[Code] ....
I have tried running the installation on a different server and the same issue came up...
I am installing plesk automation on centos 6.5 using this command on a fresh system
./ppa_installer --password some_password --admin_email some_email
and get the following error.
[LOGTEE]: Error Downloading Packages:
[LOGTEE]:
[LOGTEE]: libuuid-2.17.2-12.18.el6.i686: failure: Packages/libuuid-2.17.2-12.18.el6.i686.rpm from base: [Errno 256] No more mirrors to try.
Looks like some lib is not found in the mirrors.
On a clean install of CentOS 6.6 (Final) I did the following:
1. updated the /etc/hosts file to point my ip to the hostname
2. Open the ports in the iptables file.
3. ran the ppa_installer per the instructions on [URL] ....
The ppa_installer log says installed Successfully. However the following occurs:
1. Cannot browse to the url:8443, or any of the other variations (8080, 8880, https/http)
2. Yum installer is now broken (I replicated this twice). Yum will not run at all with the following error:
There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: /usr/lib64/libcurl.so.4: file too short
Please install a package which provides this module, or verify that the module is installed correctly.It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
I am now going to try Cent OS 6.4.. will report back.
I have a strange issue on a Plesk 12 VPS. Sometimes the sites result in a "502 Bad Gateway (nginx)". This happens 1 or 2 times a day on different times.
In the httpd log I see a record "can't apply process slot" and in nginx log I see "connect() failed (111: Connection refused) while connecting to upstream" but restarting apache and/or nginx will not always result in a working site.
When I restart iptables everything is working fine again.
It seems to me that the panel is not DNS Template for any domain.
Plesk v. 12.0.18
I've been messing about a lot recently and I've had to rebuild my VPS template a lot in the past month. For some reason, Plesk is finding user data from a bunch of previous instances, so I've got to a point now where it's saying users exist when they can't be found in the panel interface.
I don't know how my VPS provider's infrastructure works but I'd presume that when I rebuild the server it's a total new instance and no data should carry over.
Is the the user data stored locally, and how would I go about clearing out the obsolete data?
With the standard-DNS-Layout every customer has an MX-entry like MX 10 mail.customerdomainexample.com
The problem is, that inbound mailservers get a TLS warning, because the mailhostname does not match mail.companydomainexample.com, which is the domain with a valid SSL-Certificate pointing to the same server.
Wouldn't it make sense to change the default template to mail.companydomainexample.com since it is the same machine anyway?
Is there a chance to change the default nameserver name for customers created by a reseller.
Example:
System wide default
ns.provider.de
ns2.prodiver.de
ns3.provider.de
Now the reseller wants:
ns.reseller.de
ns2.reseller.de
ns3.reseller.de
The NS-Entries of the reseller may be the same physical nameserver, but it should be anonymized. How can I achieve that?
I disabled the reverse proxy and i got following error:
Code:
Fehler: Aufgrund von Fehlern in den Konfigurations-Templates konnten keine neuen Konfigurationsdateien für den Apache Webserver erstellt werden: Template processing failed: file = /opt/psa/admin/conf/templates/default/server.php, error = Template_Exception: syntax error, unexpected '=>' (T_DOUBLE_ARROW)
file: /opt/psa/admin/plib/Template/Processor.php
[Code] ....
Now I got the problem that i can't create the /etc/apache2/plesk.conf.d/server.conf
edited /usr/local/psa/admin/conf/templates/custom/domain/nginxDomainVirtualHost.php and add this include hhvm.conf; and work but it's possible to edit this setting only for one vhosts? I must enable only for one vhost because i have some php script not work with hhvm
View 3 Replies View RelatedI am now encountered the problem, in which a user wanted to create an FTP account that is already in use by another user.
Is there a kind of template / mask in which you can optionally specify the user name style.
If the user is set up, but it creates the system user name, you could not let this might Automatically set before that?
We have a problem with our plesk servers. I executed "/usr/local/psa/admin/sbin/httpdmng --reconfigure-all" and now the plesk interface shows an error message:
Template processing failed: file = /opt/psa/admin/conf/templates/custom/server.php,
error = Template_Exception: Incomplete metainfo, domainId undefined.
file: /opt/psa/admin/plib/Template/Processor.php line: 27 code: 0
[Code] ......
I found out that all domain configs were generated correctly, but the psa database shows an error (select * from Configurations where status = 'error'; ) for file /etc/apache2/plesk.conf.d/server.conf.
I installed wordpress on a website space of my customer using the plesk install-wordpress function.
I bought a wordpress template to templatemonster.com .
I followed instructions to install it [URL] .....
After the cherryframework upload, when I click on "activate", the server returns a 500 error.
I contacted the templatemonster.com technical support, and they say that it is a plesk issue ( [URL]
I'm using this script as a cron to generate DKIM keys for the domains I have. It's an easy script. And it does it's job just OK. I have the necessary software installed and configured.
The way it works is:
The script check if the domain in queue has a record for it. If it doesn't, OpenDKIM generates a one time DKIM record for mail._domainkey that I am entering to my dns records for all the domains I have.
After creating the DKIM record, it checks and deletes mail._domainkey records if there's any. Then adds the generated DKIM to plesk dns zones and disables/enables greylisting to create the appropriate dns entry.
If it does have a DKIM recors on the hdd already, then it removes
mail._domainkeyand
TXT o=-entries.
After that it basically adds the already generated DKIM record and it disables/enables the greylisting for each domain in order to recreate "TXT o=-"
Up till here, it works fine. I can see these entries when I check the DNS Settings. They are there.
But whenever I run this script either via cron or manually, I get an error message on my panel: (You can check the screenshot as well)
Code:
Warning: The DNS zone was modified. If you would like to apply DNS template changes to this zone, either click the 'Apply DNS Template Changes' button on this page or choose the 'Apply the changes to all zones' option in Server Administration Panel > Tools & Settings > DNS Template Settings > Apply DNS Template Changes.
And unless I manually click "Apply DNS Template Changes" for EVERY SITE it doesn't go away.
So, I was wondering, is there a way to scriptize that command? Or how to prevent it?
This is the command I use to generate DKIM and add it to Plesk database, also if any such record exists, delete and re-write it:
Code:
#!/bin/sh
ADMIN_PASS=`cat /etc/psa/.psa.shadow`
MYSQL_BIN_D=`grep MYSQL_BIN_D /etc/psa/psa.conf | awk '{print $2}'`
mysql="${MYSQL_BIN_D}/mysql -N -uadmin -p${ADMIN_PASS} psa"
query="select name from domains;"
domains=`echo $query | $mysql `
for i in ${domains}; do
echo "Processing $i"
[Code] ....
Plesk Applications Installer. I wish to create my own WordPress template (with preinstalled plugins/themes) for my customers.
Is there an easy way to do this (or anyway to do this)?
I want to use the Panel as a Master DNS Server.
1: Obtain two Nameservers. ns1.maindomain.com, ns2.maindomain.com. (Completed)
2: Glue the Nameservers to the server's IP addresses. 1.1.1.1 -> ns1.maindomain.com / 2.2.2.2 -> ns2.maindomain.com (Completed)
3: Successfully register domain and make sure it's pointing to the correct server. (Completed)
4: Register new domain (client.com) to server using ns1.maindomain.com & ns2.maindomain.com as it's nameservers. (Problem)
Reason: Can't edit the template correctly due to a suffix .<domain> that I cannot get rid of.
In order for me to use (ns1.maindomain.com) and (ns2.maindomain.com) as the namerservers for client.com, I'll need to be able to edit those fields entirely. I don't want Plesk to append the client's domain name to the NS record.
This may be a very simple thing to remove, but I give up.
I created a New Client Default Domain by copying plesk's original Default Domain.This template is for clients we move from older versions of plesk up to servers with plesk 12.x. Under resources for that "Service Plan Name"
I have Sites published with Presence Builder set to 0 and.Allow customer to create trial Presence Builder websites. Not checked.When I log in as the client I still see Presence Builder with edit Website.I also confirmed the correct plan was picked for that subscription by picking the new "New Client Default Domain" and under add-on plans I picked "remove"
But when I log in as the "client" to see what they would see I see Presence Builder and Edit Website available.How do I get rid of that selection?I can see a client clicking on it and basically over writing their current website.
When you click on "Forgot your password?" in Plesk for Linux 11, you'll get an email like this: Dear <firstname>Your password could not be sent because it is stored in the encrypted form.To set up a new password, please follow the link: <link to reset password>
How can I change that? It's a bit sparse and it doesn't even include a email signature with the company name.
I would like to create VMM template with installed plesk panel 12.0.18
But after I executed sysprep plesk panel didn't work.
All services, application pool work, but when I try to connect https://localhost:8443 I get an error "The page can't be displayed"...
The IP addresses assigned to our servers have changed so it's time to update the default SPF information contained in the DNS records for ALL of the domains hosted on our servers:
OLD
Code:
v=spf1 +ip4:173.236.23.185 +ip4:173.236.23.188/30 +a +mx -all
NEW
Code:
v=spf1 +ip4:69.160.255.188/30 +ip4:69.160.255.192 +a +mx -all
However, when we update the resource record in the DNS template and then "Apply the changes to all zones...",
Panel will apply changes from the template to all DNS zones including the customized ones. Note that user-modified records always remain intact. For example, if the template contains a new record that was already added by a customer, Panel will keep the customer's record.Click to expand...
I'm migrating from Plesk 9.5 to 11 and I'm getting the following on my Transfer Pre-Check from within the Migration Manager."The destination DNS server does not support networks in the Transfer Restrictions Template, but some subscriptions have networks in DNS transfer restrictions. The records with network IP addresses in the DNS transfer restrictions will not be restored."
I've gone to Server, DNS Settings, Transfer Restriction Template and added the new server's IP to the list of allowed networks to no avail. I also couldn't find any documentation on what the cause might be.
Is it possible to get the .htaccess file to apply to only one folder? As in if we stick it in the public_html/ folder, how can we prevent those rules from being applied to all the folders in public_html/ folder?
View 3 Replies View RelatedI have recently deployed PPA with on nodes with hostnames on the serverroom.net.au domain, so management.serverroom.net.au, mail.serverroom.net.au etc. The DNS is currently hosted on a plesk server which will soon be migrated to PPA.
When I add the serverroom.net.au domain to PPA, I it fails at the sync task with an error saying that there are no A or AAA records for ns1.serverroom.net.au, even when these records exist in the external DNS. The same error occurs when I try to add the domain as a dns entry and switch to internal...
i have installed a Win2008R2 server with IIS and Coldfusion. I want to allow customer to set DSN, i know that older "Plesk Panel" versions that can do but i missing this now in PPA in the customer view. In the subscription is OBDC and Coldfusion connections allowed and unlimited. Must i do anything to activate this ?
View 2 Replies View Related