Plesk 11.x / Linux :: Running Script From Event (Hosting Settings Created)

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


ADVERTISEMENT

Plesk 11.x / Windows :: Event New Subscription Created / Delete On Event Manager

Apr 17, 2014

How can I create new action when new subscription was created/deleted?

View 1 Replies View Related

Plesk 11.x / Linux :: Event Handler For Subscription Created

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

Plesk 11.x / Linux :: Change Default Settings For Running PHP

Nov 10, 2014

Is there a way to set the php-handle for all domais as "fastcgi".

At the moment when i create a domain, it will be run as "apache".

I like to change it to "fastcgi". I know there is way, to change it in the databases, but i forget where was it...

View 3 Replies View Related

Plesk 11.x / Linux :: Save Web Hosting Settings Takes Long Time

Mar 31, 2014

Panel-Version11.5.30 Update #38
BSDebian 7.4

Save Web Hosting Settings takes a long time. The Domains (Apache Server) are not reachable for 36 seconds.

View 12 Replies View Related

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 View Related

Plesk 11.x / Linux :: Configure Event To Monitor Email Queue?

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

Plesk 11.x / Linux :: New Mailbox Variable From (Mail Account Updated) Event

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

Plesk 11.x / Linux :: Event Handler To Change Default Permissions Of Skeleton Site

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

Plesk 11.x / Linux :: No Mailbox Created

May 24, 2014

$request = <<<EOF
<packet version="1.6.5.0">
<mail>
<create>
<filter>
<site-id>34</site-id>
<mailname>
<name>$username</name>
<mailbox>
<enabled>true</enabled>
<quota>1024000</quota>
</mailbox>

[code]....

I write this code for creating mail box, but I get "No mailbox" message in plesk panel. I need to create mailbox.

View 2 Replies View Related

Plesk 12.x / Linux :: New Created Domain Does Not Appear At Panel

Jul 11, 2014

I just created a new Domain "bernhardlinz.de" at the

Plesk Panel -> Websites & Domains -> Add new Domain

After the Creation the new Domain does not appear under "Websites & Domains".

I check the domain with

Code:
/usr/local/psa/bin/domain -i bernhardlinz.de

And all looks fine like my other, older domains:

Code:
General
=============================
Domain name: bernhardlinz.de
Owner's contact name: Bernhard Linz (admin)
Domain status: OK

[Code] ....

I can see the domain under "Mails" and also create new mail accounts. There are no Errors for this under

Code:
/usr/local/psa/admin/logs/panel.log

As i try to add the domain first i got a

Code:
[11-Jul-2014 21:41:35 Europe/Berlin] PleskUtilException: mailmng-outgoing failed: ERROR:outgoing:database disk image is malformed

Which I removed with the

Code:
/usr/local/psa/admin/sbin/mchk

Command I found in the Plesk forum. After that i could add the domain.

I try a add another fantasy domain - also works but alos not displaying in Panel "Websites & Domains"

I take a look at the Plesk-Database "psa" with the Build-In "phpMyAdmin"

I take a look at the table "domains" and it looks like the other entries.

The Server was restored a few days before from a Backup. After the restore i had have the problem the "mysql" service did not start. I fixed the problem with the description from [URL] ... (Start mysql in recoverymode, export all data, delete the content of the whole mysql folder /var/lib/mysql folder, init new database and import the exported data). After that all looks fine.

View 2 Replies View Related

Plesk 12.x / Linux :: DNS Zones Not Created On Slave Servers

Jul 19, 2015

I am setting up slave DNS servers using bind 9.8 on CentOS 6. I have followed the procedure here successfully: [URL] ....

The problem is that even if I see something like the following in named.run on the slave server (which implies the rndc connection worked):

received control channel command 'addzone xxxxxxxx.com { type slave; file "xxxxxxxx.com"; masters { x.x.x.x; }; };'
received control channel command 'refresh xxxxxxxx.com'
received control channel command 'addzone xxxxxxxx.com { type slave; file "xxxxxxxx.com"; masters { x.x.x.x; }; };'

I still cannot query any entries for that zone from the slave DNS server:

$ dig @y.y.y.y xxxxxxxx.com
; <<>> DiG 9.8.3-P1 <<>> @y.y.y.y xxxxxxxx.com
; (1 server found)
;; global options: +cmd

[Code] .....

I also do not see any zone files created anywhere on the slave server.

View 12 Replies View Related

Plesk 11.x / Linux :: Each File / Folder Created By PHP Overridden By FTP

Jul 14, 2014

I got this Problem after install a New Plesk Server.

Current: CentOS 6.5, Plesk 11.5.30, PHP 5.3.3 (Default install), PHP as FastCGI (I Tried also with Plesk 12.x).

What I did: in IP Tables i set al Ports for Plesk; I set in /etc/proftpd.conf the Ports "PassivePorts 65000 65200"

Problem: Each file ore folder created by an php Application i cant see ore override by ftp.

Example: I Upload a new installation of Joomla 2.5 (CMS) by ftp with a User created by plesk. Then I start the Installation by using the Webbrowser. In this process Joomla change some files and create also an configuration.php. All done by php Scripts. Now I check the configuration.php on the FTP -> Cant see it. -> I check by SSH and the file exists. If I Check the Permissions it seams, that all file have same permissions, owner and group.

-> Configuration.php can not see by ftp ore be overwritten
-> htaccess.txt I see by ftp and i can manage
->> Permissions seams to be the same "?"!"

View 1 Replies View Related

Plesk 12.x / Linux :: Dovecot Mail Subscription File Not Created?

Dec 16, 2014

if i create a new mailaccount in the power-user panel and i dont log in into the webmailer, so the "subscription" file is not created.

that means there is no way to sent emails with the new created account with external mail clients (Thunderbird), because there is no "sent" or "drafts" folder.

the problem disappears, if i log into the webmailer after creating a new mailaccount.

is there any other way to fix this bug? i want plesk 12 to create the "standard" folders (Trash, Drafts, Sent, Spam) automatically.

something to the used system:

- Ubuntu 14.04 Server
- Plesk 12.0.18
- IMAP/POP3 Server: dovecot
- SMTP Server: postfix

(logfiles are not showing anything..)

View 8 Replies View Related

Plesk 12.x / Linux :: No Backups Are Created Or Loaded On FTP Backup Server

Oct 7, 2014

We use Plesk 12 with ubuntu 12.04.5 LTS ......

Plesk 12 does not create backups for Customers.

If we restarts the server, Plesk created again for 2 days backups and then again not. There are no errors present.

The backup should be loaded on a FTP backup server after the Create

This makes Plesk but only if you restarts the server. Otherwise, no backups are created or loaded on the FTP backup server.....

View 1 Replies View Related

Plesk 12.x / Linux :: New Configuration Files For Apache Web Server Not Created Due To Errors In Templates

Dec 17, 2014

I tried to add ac new subscription and this failed.No I have an inconsistent subscription and 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 = /opt/psa/admin/ conf/ templates/ default/domainVhost.php,
error = Template_Exception: No data. file: /opt/psa/admin/plib/Template/Processor.php line: 28 code: 0
Previous error: Template_Variable_Exception: No data. file: /opt/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0.
Detailed error descriptions were sent to you by email.click here to generate broken configuration files once again or here to generate all configuration files.

I have Plesk 12.0.18 on Ubuntu

View 1 Replies View Related

Plesk 12.x / Linux :: PHP Settings Are Not Applied

Sep 29, 2014

situation:
- compiled and installed php 5.5 and 5.6
- both versions work fine and are registered in plesk
- base configuration for php is set for each version in a custom.ini

issue:
- plesk php-settings are not applied: not matter what I change in Plesk php-settings, the values from my custom.ini file are used

What did I do wrong? How do I re-enable plesk php-settings?

Addendum: The php-settings apply esspecially to post_max_size and execution_time

View 3 Replies View Related

Plesk 12.x / Linux :: PHP Settings Under Domain?

Jul 14, 2015

I am trying to change the default php settings under domain (upload_max_filesize & post_max_size) but nothing happens. I am running PHP 5.5 in FastCGI. I also changed it to Centos default PHP (5.4.16) but nothing happens again. It only works when PHP runs as Apache module. The problem is on FastCGI Application.

My server: Centos 7, Plesk 12 Check the screenshot for installed components.

View 18 Replies View Related

Plesk 12.x / Linux :: Email DNS Settings?

Dec 5, 2014

so my website is working perfectly fine for a few months now, and im looking to use Roundcube instead of Google Apps.What are the DNS settings i need to change to for my domain registrar?Currently i have the following records, and it can only send email, and not receive.

A Records @ IP Address
A Records webmail IP Address

View 2 Replies View Related

Plesk 12.x / Linux :: DNS Settings Hidden

Jan 13, 2015

I cannot find the DNS Setting in Websites&Domain TheWebsite/Show More

I tried changing:

Tools&Settings
Plesk
Custom View setting (DNS template settings checked)​
Also:

Tools&Settings
Plesk Appearance
Interface Management
-Power user View
(with & without) Use Custom View​-Service Provider View
(with & without) Open hosting operations in Server Administration Panel​
However when I go to

Websites&Domain TheWebsite/Show More, the DNS settings are still missing.

Is there any other setting I can try to show the dns settings?

Centos 6.6
Plesk 12.0.18 Update #30

View 5 Replies View Related

Plesk 12.x / Linux :: PHP Custom Settings Does Not Apply

Sep 15, 2014

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...

View 15 Replies View Related

Plesk 11.x / Linux :: DNS Settings - Show Www In Browser

Dec 12, 2014

I want to know what settings to make in the Dns of my Server so always to show the www. in the browser, before the domain name.

For example, in the url to be www.mydomain.com and not mydomain.com

View 1 Replies View Related

Plesk 11.x / Linux :: IP Settings - How To Associate Different IPs In 1 Subscription

Oct 9, 2014

I manage 1 server with 5 domains. I use the panel as power user (unique user)

I want to assign a new IP to a domain. In the hosting setting there is no IP to choose and in the IP tab if I click on the IP there is no domains to choose becouse all the domains are assigned to the primary IP...

I'd like to set IP in the hosting setting of the domain...

View 1 Replies View Related

Plesk 12.x / Linux :: Site Preview Settings

Oct 26, 2014

I'm trying to view my sites using the "Quick Preview on a domain name in Plesk" setting. I notice that it modifies that domain's DNS records to include the IP with dashes, however when I attempt to preview any of the sites hosted, I get "server not found" from my browser. The URL is the correct syntax, but cannot seem to access the site.

I've tried turning DNS off and on for each hosted site, but this doesn't seem to make any difference.

View 6 Replies View Related

Plesk 11.x / Linux :: Settings To Change DNS Records?

Sep 26, 2014

where do I find the setting to change dns records in plesk 11.5 ver ? I do not see it, it is missing in settings of domain under tab: "Websites and Domain"

View 1 Replies View Related

Plesk 12.x / Linux :: SOA Records Not Saving In DNS Settings

Apr 10, 2015

I want to change SOA Settings from defaults to these: When I press OK button shows that is saved but when I test with [URL] .... and [URL] .... shows that settings still is defaults.How to change these settings??

View 1 Replies View Related

Plesk 12.x / Linux :: How To Get Old Settings / Configurations After Reinstallation

Mar 8, 2015

I recently reinstalled my Plesk Panel 12.0.18 after several failures, which I wasn't able to repair (not even bootstrapper.sh would work). All of my websites weren't accessible, the connection between websites and the Database server didn't work and the Plesk backend was unavailable, too. I used the autoinstaller via command line to make a new Plesk installation.

Now I have a clean panel, the websites are available again, the MySQL database works again, but I don't have all my settings and websites in the Plesk backend anymore.

My question is: How can I get the old settings/configurations, which are still on the server, back in to Plesk?

View 5 Replies View Related

Plesk 12.x / Linux :: Modifying Php-fpm Settings For All Domains And New Ones?

Oct 1, 2014

Some sites reach maximum children

so I need to change

pm.max_children = 5

for all new domains on a server

How can this be done?

I know i can change it manually on each new domain, is there some kind of template to modify?

View 2 Replies View Related

Plesk 12.x / Linux :: Where To Modify Nginx Fastcgi Settings

Dec 8, 2014

What exact file to modify in order to optimize fastcgi settings, then to set default for all websites. Sample code below:

# execute all .php files via php-fpm
location ~ .php$ {
# connect to a unix domain-socket:
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;

[Code] ....

View 4 Replies View Related

Plesk 11.x / Linux :: Web Server Settings Create New Folder

Oct 30, 2013

* Go to "Web Server Settings" add text to "Additional directives for HTTP" and press button "Ok".
* Go to "Document root" folder of your domain and now you have a new folder "/cgi-bin/test" with file "test.cgi":

Code:
#!/usr/bin/perl
print <<HTML;
Content-type: text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

[Code] ....

View 13 Replies View Related

Plesk 12.x / Linux :: Office 365 Lync Online SRV Settings In DNS

Nov 26, 2014

I am attempting to add Office 365 to a domain on my server. To verify my DNS settings they require me to add the following records:

Lync Online

Type Service Protocol Port Weight Priority TTL Name Target
SRV _sip _tls 443 1 100 1 Hour @ sipdir.online.lync.com
SRV _sipfederationtls _tcp 5061 1 100 1 Hour @ sipfed.online.lync.com

With Plesk 12 I cannot set a weight of 1 and a priority of 100 in DNS. What is the solution to allow this to verify?

OS: Ubuntu 12.04.5 LTS
Plesk version: 12.0.18 Update #25

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved