Plesk 12.x / Linux :: Command Line CLI DNS Template Changes Warning
Jul 23, 2015
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] ....
View 4 Replies
ADVERTISEMENT
Apr 9, 2015
I'm looking to set up a schedulled backup from command line.
I haven't found the correct command, could you tell me if it's possible and how ?
Additional question: I'm looking too, to set for the server the max number backup file to save, do you know how to do it from cli ?
View 8 Replies
View Related
Jan 17, 2015
Is there a command line way of removing Plesk backups?
I'm looking for the command line equivalent of these steps: Log into Plesk as the server admin > "Tools & Settings" > "Tools & Resources" > "Backup Manager" > check a backup and click "Remove".
We have a script that copies the contents of "/var/lib/psa/dumps/" to Amazon S3 for long-term storage of backups. It runs nightly after a scheduled Plesk backup. Once that script completes successfully, we'd like to delete the Plesk backup to free up disk space. We have Plesk's "Maximum number of backups in the repository" set to 1.
But Plesk appears to keep that backup around while creating a new backup (which makes some sense). This is causing us trouble because the server does not have enough disk space for two backups. As a temporary solution, I'm manually deleting the backup each day through the Plesk admin, but would like to automate it if possible. If automation is overly complex/risky, we'll look at upping our disk space instead.
View 4 Replies
View Related
Feb 23, 2015
Is there any way for a client to use command line mail in a script. Client has ssh access via chromed environment.
Wants their script to be able to send an email on completion.
plesk 12 on Centos6.6
View 6 Replies
View Related
Dec 9, 2014
I have a subscription and I'm able to switch the subscription to a given service-plan, but I'm unable to sync the subscription with the plan, using the CLI. These are my commands:
/usr/local/psa/bin/subscription --switch-subscription <domain.com> -service-plan Hosting
result => The subscription <domain.com> is now associated with the service plan Hosting..When watching the webinterface in Plesk, I see the domain is "connected" to the service plan, so far so good. However, I notice that the subscription is not synced.
Back to the CLI, I've tried some combinations, but I can't get the subscription synced. The webbased interface keeps telling me that the subscription is unsynced. Here is what I've tried:
/usr/local/psa/bin/subscription --sync-subscription <domain.com>
And I also unlocked it (just in case it was locked) like so: /usr/local/psa/bin/subscription --unlock-subscription <domain.com>
The funny part is that the CLI tells me: "Subscription <domain.com> was synchronized with the associated service plans." but unfortenately it's not if I look through the GUI. Only if I click the sync-option webbased the subscription get synced. we have to transfer over 1000 domains and need to sync these domains with a given service-plan.
View 1 Replies
View Related
Apr 7, 2015
Although running
>>
/usr/local/psa/bin/dns --info dev.sname.c002.aname.domain.com
>>
shows the 'ecz1' TXT record exists for "dev.sname.c002.aname.domain.com" :
...
ecz1.dev.sname.c002.aname.domain.com. TXT ecz1
[Code] ....
The issue can be caused by extra spaces in the TXT record:
Code:
[root@a10-52-143-28 ~]# /usr/local/psa/bin/dns --add dev.sname.c002.aname.domain.com -txt 'ecz1 ' -domain ecz1
SUCCESS: Creation of DNS record in Domain 'dev.sname.c002.aname.domain.com' complete.
[root@a10-52-143-28 ~]# /usr/local/psa/bin/dns --del dev.sname.c002.aname.domain.com -txt 'ecz1' -domain ecz1
Unable to del record in DNS server: unable to find DNS record
In the following example I have 3 such TXT records with 3, 5, 7 extra spaces and remove record with 3 spaces:
Code:
[root@a10-52-143-28 ~]# mysql -u admin -p`cat /etc/psa/.psa.shadow` psa -e "select host, val, (length(val) - length(rtrim(val))) as extraspaces from dns_recs where host='ecz1.dev.sname.c002.aname.domain.com.' and val like 'ecz1%'"
+---------------------------------------+-------------+-------------+
| host | val | extraspaces |
+---------------------------------------+-------------+-------------+
| ecz1.dev.sname.c002.aname.domain.com. | ecz1 | 5 |
| ecz1.dev.sname.c002.aname.domain.com. | ecz1 | 3 |
[Code] ...
Click to expand...
Click for original message
View 12 Replies
View Related
Mar 11, 2015
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 ...
View 7 Replies
View Related
Jul 2, 2014
It seems to me that the panel is not DNS Template for any domain.
Plesk v. 12.0.18
View 1 Replies
View Related
Feb 10, 2015
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?
View 1 Replies
View Related
Jul 17, 2014
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?
View 2 Replies
View Related
Apr 2, 2015
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?
View 1 Replies
View Related
Sep 3, 2014
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
View 1 Replies
View Related
Aug 13, 2014
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 Related
Feb 7, 2015
I 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?
View 1 Replies
View Related
Apr 23, 2015
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.
View 7 Replies
View Related
Jun 16, 2008
[16-Jun-2008 17:13:17] PHP Warning: Module 'SQLite' already loaded in Unknown on line 0
[16-Jun-2008 17:13:17] PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0
I'm getting this a lot lately on some of my websites with DB in use
Using a cpanel/centos box with mysql 5 and php 5
View 2 Replies
View Related
Feb 15, 2009
Im trying to zip up an sqlite database backup.
I execute this command
Code:
zip ../d/db/backup.zip ../d/db/09-02-15.sqlite
backup.zip never appears. Instead, I get some random filename in the directory. Like ziOHokOw
If I try to zip a smaller file(last weeks backup) everything runs fine?
Code:
zip ../d/db/backup.zip ../d/db/09-02-08.sqlite
So the 134mb file zips fine, but the 200mb one seems like its failing and im left with some type of temporary file. I tried downloading the weird filename and unzipping it. It has partial info like directory structure, the filename but the actual file inside is corrupt.
View 1 Replies
View Related
May 10, 2008
What is the Command Line, hoe do I get to it, when I do how do I update Perl to 5.88
View 5 Replies
View Related
Jun 23, 2015
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)?
View 3 Replies
View Related
Aug 19, 2014
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.
View 3 Replies
View Related
Feb 9, 2008
Got a centos / cpanel box. Had to change the block of IP's with an entirely new block of 8. Problem is I cannot access cpanel/whm due to this, but only via ssh. If I run the below, it shows the old IP's
/etc/init.d/ipaliases start
How do I replace the old block with the new? I've never done it via command line before.
View 1 Replies
View Related
Apr 30, 2015
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.
View 1 Replies
View Related
Sep 15, 2014
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.
View 3 Replies
View Related
Oct 3, 2009
how i can install SVN by command line on centos OS
View 1 Replies
View Related
Jul 9, 2008
is KVMoIP like Remote Desktop or is it just command lines?
View 5 Replies
View Related
Sep 25, 2008
I have been looking around for a new shared host, I am currently with GoDaddy =( And it would be helpful to have command line access for some things I am trying to do.
Particularly with Zend Gdata API (which GoDaddy has trouble with anyway) Is this reasonable to ask for? I also need at least 150GB/month bandwidth for some relatively high quality streaming video.
View 13 Replies
View Related
Nov 7, 2008
We have a dedicated server, with chroot access enabled.
We are wanting to backup each site on this server, as well as all mysql dbs on a weekly basis.
Is it possible for us to run a cron job to do this? If so, what commands would we want to use?
We have a local FTP server here, so would like to ftp these backups this machine.
I know it all sounds a little vague, but I just need to know where to get started.
View 3 Replies
View Related
Jul 9, 2014
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...
View 1 Replies
View Related
Nov 30, 2008
Back in the day, there was a commandline version of 'ntop' allowing a view of live traffic stats in the format of 'top'.
Does a similar tool exist today effectively allowing us to figure our which VPS or IP address is under DDoS attack?
The only way I could fix this was via KVM access to netstat -an | grep etc... Not too
View 7 Replies
View Related
Mar 6, 2007
I got our server staff to install BackupPC on our dedicated server and run daily backups. All is well (from what I can tell) but i've come to a point where I want to actually use an archived file.
So I jump into my ftp client, navigate to the backup folder, and download the file. The problem is, the file reads as jibberish. I'm assuming that BackupPC has compressed it.
So the question is two-fold:
1. How do I decompress it on windows (command line stuff is well beyond me)
2. Is there any browser/windows apps that I can use to manage the backups?
View 1 Replies
View Related