Plesk 12.x / Linux :: Event Manager Commands - Where Does STDOUT Go
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
ADVERTISEMENT
Apr 17, 2014
How can I create new action when new subscription was created/deleted?
View 1 Replies
View Related
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
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
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
Sep 30, 2014
After update of some system commands, there is now difference between the system-wide command and the equivalent that is located in the chroot template directory (and the command that is in the domain's bin dir).
Is there a command/utility that can update the commands (and all libraries that they depend on), that we have in our chroot template directory /var/www/vhosts/chroot?
View 2 Replies
View Related
Jul 26, 2014
I have a problem with my linux server using plesk 12x, I am using postfix as the email service, all emails are working from the webmail (horde) and from any email client using smtp.However the service is not working from the website (contact form on Wordpress) nor through the ssh commands. I have searched for few days but I still seem to have an issue.
Code:
ls -la /etc/alternatives/mta
the output is "nothing found".
and
Code:
ls -la /usr/sbin/sendmail
output: lrwxrwxrwx 1 root root 21 nov 4 2011 /usr/sbin/sendmail -> /etc/alternatives/mta
View 3 Replies
View Related
May 27, 2014
I need a command way of backing up my website files and Mysql databases. I no longer have access to the static ip to access the panel.
View 1 Replies
View Related
Aug 12, 2014
I have a problem with my Plesk Backup Manager... When I'm doing server backup (sending to FTP) I get this message...
Error:
Runtime error: Export dump to FTP failed at /usr/local/psa/admin/bin/plesk_agent_manager line 727.
at /usr/local/psa/admin/bin/plesk_agent_manager line 727
main:erform('verbose', 4, 'owner-type', 'server', 'split-size', undef, 'session-path', '/usr/local/psa/PMM/sessions/2014-08-12-094353.297', 'description', ...) called at /usr/local/psa/admin/bin/plesk_agent_manager line 1319
[code]....
The dump have been made successfully but can not be imported to FTP due to errors. The dump 'test_info_1408120943.xml' have been leaved at repository. Please export it manually
Error:Can't upload file '/usr/local/psa/PMM/tmp/backup5DrNQ9/test_info_1408120943.xml.tar' to ftp. Error code: 1
View 2 Replies
View Related
Apr 25, 2015
I've got a Plesk 12 server with the "Slave DNS Manager" extension installed.I've also got a CentOS 7 server that I would like to set up as a slave DNS server.I've installed BIND on the slave server and opened ports 53 and 953.I've followed the instructions on this page but I can't seem to get a link between the two servers: URL....
I've also tried the config that the Plesk panel provides like the case in this thread, I get the same results: URL....
View 2 Replies
View Related
Mar 1, 2015
I have setup Backup Manager to backup Files and Configurations every week for every subscription. This worked really good however we are now considering changing this to daily basis.
As the free space on server will decrease. I was wondering i there is any way with cronjobs how to remove the backup older than 24 weeks. How to make such an cronjob script?
If possible i also would like to know where the Backup Manager physically stores its backups?
View 5 Replies
View Related
Apr 8, 2015
I am setting up a new server and started to migrate domains from an 11.x plesk server to this new server with plesk 12.x on it. Everything works fine, domains, users, mailboxes, everything is migrated - except the horde settings inside the webmail. I recognized this after my first login into webmail, normally the inbox is shown (I configured my webmaoil this way) but after the migration this setting is lost - including all other settings. How to migrate this settings?
View 1 Replies
View Related
Jan 24, 2015
I've got a problem to migrate A user from one server to another.
I tried to use the migration manager, but if I start the migration manager the migration will be started but after 2 seconds it has finished and no migration has be doen.
or should I moove the data manually?
View 1 Replies
View Related
Jan 12, 2015
I've setup Bind 9.10.1 on a windows server as a slave DNS server. I've installed the Slave DNS Manager on Plesk 12 for Linux and setup configuration.
New zones are added ok so authentication en communication is working perfectly. But when I delete a zone in Plesk, the zoneconfig file doesn't get deleted on the windows server. I can see the windows eventlog saying "received control channel command 'delzone <domain>'" where <domain> is the zone I deleted. But after that noting. And I see errors after a while because of bind trying to transfer the deleted zone again. The zonefile isn't deleted from c: amedzones...
View 1 Replies
View Related
Jan 13, 2015
CentOS 7 64bit + Plesk 12
How can i reset the owner state of the files in file manager. right now some files have the ROOT as owner. I know with DirectAdmin there is a Reset owner feature. But this is cant find in Plesk.
View 3 Replies
View Related
Sep 19, 2014
I would like to have the Backup Manger run a full server backup but exclude one domain that has tons of material which does not need to be backed up as often.
Years ago, Plesk did have the option to choose the domains to backup (Admin login). However, It was a problem at times because I would forget to include new domains.
I do not know of any similar option present now to exclude a domain from the full Scheduled Backup.
I am thinking that I could set up a reseller (myself), put all of the sites I would like to backup more often in that account and run backup from that level.
The Problem with including all of the sites is that the SUPER LARGE site, bogs downs the backup process and I really do not knew it included as often.
View 1 Replies
View Related
Jan 23, 2015
I have migrated User from Confixx 3.3.9 to Plesk and now it works fine.
In the Subscriptions i have disable the Feature Backup for the Costumers, but it dosent take an effect.
So i Turn it on and off again. But there was also no effect.
View 1 Replies
View Related
May 27, 2015
I lately decide to change my server provided and I decided to go for pre-installed Plesk12 service , plesk installed with os installation and in the beginning was looking ok , till I faced two problems .
The first problem I found is on Backup manager , I set a daily backup with maximum of 5 but every day I receive the error :The backup backup_website.com_info_1505272137.xml and backup_website.com_info_1505262137.xml was not created , I check the current backup task and the two task shows fails.(picture attached)
The second problem I found It may be related , is concerning the File permission , the user root and on group root are not able to change any file permission but the user pinco on group root is able to change it as well as the user Pinco on group psacln/psaserv , I updated the plesk12 to latest release to see if maybe was some changes but unfortunately nothing
Not migration for domains and was fresh install for os and plesk12
Plesk version:12.0.18 Update #48
OS: CentOS 6.2 (Final)
View 7 Replies
View Related
Mar 10, 2015
I use centos 7 , atomic repo, plesk 12 12.0.18 Update #37 php fpm not work.
[root@vmi36735 ~]# systemctl status php-fpm.service
php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled)
Active: failed (Result: resources)
[Code] ....
View 5 Replies
View Related
Aug 1, 2014
I have setup bind in centos 6.5 and then edited /etc/named.conf and added the lines
The extension produced but I am getting the following error when restarting the bind service
Error in named configuration:
/etc/named.conf:2: unknown option '...'
/etc/named.conf:14: unknown option '*'
/etc/named.conf:21: 'options' redefined near 'options'
The following code suggested by plesk slave dns manager extension
Code:
options {
...
allow-new-zones yes;
};
key "rndc-key-mainserver ip" {
[Code] .....
After I removed ... from the options now I get the following error :
/etc/named.conf:51: unknown key 'rndc-key'
View 1 Replies
View Related
Jul 8, 2015
When I start the process in Migration & Transfer Manager i have this error: Error: Connection timeout. I see in the log file:
[2015-07-08 19:39:55.977|22820] INFO: Launchpad started : /usr/local/psa/admin/bin/launchpad --send-scout --host=... ... .... --port=22 --login=root --session-path=/usr/local/psa/PMM/msessions....
[2015-07-08 19:39:56.021|22820] DEBG: Connecting to ....:22
[2015-07-08 19:39:56.021|22820] DEBG: Resolving ..... .....
[2015-07-08 19:42:03.344|22820] ERR : Unable to open socket to ......:22: Connection timed out
[2015-07-08 19:42:03.398|22820] INFO: ConnectionTimedOut[....]: Timeout while attempting connection to host ........ [./../commons/socket.h:65]
plesk::Socket::Socket(const string&, short unsigned int)
[2015-07-08 19:42:03.399|22820] INFO: Launchpad finished. Exit code: 12
In two servers the configuration is identical: CENTOS 7 and PLESK 12
View 5 Replies
View Related
May 18, 2015
I have a new Server (CentOS Linux 7.1.1503) and will migrate the Data from my old Server (Ubuntu 14.04 LTS) with the Migration Manager. Both Servers running with Plesk 12.0.18
After i entered the Server-IP and the Login-Data for the old Server i became this Error on the new Server:
Fehler: launchpad error (Error code = 2):
== STDERR ====================
Cannot request remote agent status using command line /var/cache/20150518173107557/PleskX.pl: UNIVERSAL->import is deprecated and will be removed in a future perl at (eval 25) line 3.
UNIVERSAL->import is deprecated and will be removed in a future perl at IPC/Run.pm line 1060.
UNIVERSAL->import is deprecated and will be removed in a future perl at IPC/Run/IO.pm line 78.
UNIVERSAL->import is deprecated and will be removed in a future perl at IPC/Run/Timer.pm line 161.
Died at AgentConfig.pm line 23.
==============================Click to expand...
View 2 Replies
View Related
May 5, 2015
I have recently started using the slave DNS manager in the Plesk extension library. I've found that even for DNS zones that are switched off in Plesk, failed sync/transfers still try to take place between the slave and master. Why is this so?
Shouldn't turning the DNS functionality off in Plesk remove the zone from the slave DNS server?
When a domains DNS functionality is turned off, it removed the zone info from the master, but no command is issued to remove it from the slave??
Domain that is trying to sync/transfer: example.com
Plesk/Master server: 111.11.11.111
Slave DNS: 222.222.22.222
Code:
May 6 08:51:39 ns2 named[1178]: zone example.com/IN: refresh: unexpected rcode (REFUSED) from master 111.11.11.111#53 (source 0.0.0.0#0)
May 6 08:51:39 ns2 named[1178]: zone example.com/IN: Transfer started.
May 6 08:51:40 ns2 named[1178]: transfer of 'example.com/IN' from 111.11.11.111#53: connected using 222.222.22.222#53166
[Code] ...
View 3 Replies
View Related
Aug 23, 2014
I have many server with Plesk 12...in this server I have single nameserver...example server number 1 have ns1.domain.com and ns2.domain.com - server number 2 have ns1.tldnames.com ns2.tldnames.com etc etc...
Now I want manage all server with single nameserver example all server working with ns1.newnameserver.com and ns2.newnameserver.com ....
I have licenses for my server of Plesk no limits...how check if PPA is installed in my server ? Otherwise how to install PPA or other software for DNS Manager?
View 8 Replies
View Related
Sep 29, 2014
I've been running a Plesk server with around 100 domains for years and years now. I've always used a backup service provided by the server vendor, but with a new server, I wanted to consider some of the backup options built into Plesk.
1. It looks like Plesk/Acronis is dead or only for Windows. Is that right?
2. If I add a backup drive to the server, can I setup Plesk Backup Manager to store the backups there (instead of on the main RAID array)?
3. Are there any other 3rd party extensions that I should consider?
View 8 Replies
View Related
Feb 15, 2014
I want to migrate a Plesk 9 tot a Plesk 11.5 server. The new server runs CentOs 6.5, but everyone talks about a checkbox with Rsync option and I also see this at pictures at the internet. But in my Plesk panel this option is missing.
where my Rsync checkbox is?
View 5 Replies
View Related
Aug 19, 2014
i have setup fresh Centos 6.5 with Plesk Pannel 12.0.18. When i execute the attached command from the console, i get it work, some posts are auto created within wordpress. When i enter the attached command within Plesk (Tools / Settings - Taskmanager - root New Task, the command is not executed...
/usr/bin/wget --post-data='id=4&minposts=1&maxposts=3' -O /dev/null http://www.mydomain.com/wp/wp-content/plugins/WPRobot3/cron.php?code=UNIQUEID
I tried also without /usr/bin at the beginning, but its not working with cron automatic
View 3 Replies
View Related
Jul 11, 2014
After a successful upgrade from 11.5.30 to 12.0.8 the Backup Manager cannot be accessed anymore. The system replies with:
Internal error: Failed to parse response. Reason: Failed to read data from stream Process output:
MessageFailed to parse response. Reason: Failed to read data from stream Process output:
File PMMConnector.php
Line708
TypePleskPMMResponseException
Apparently the backups are not saved anymore either.
View 3 Replies
View Related