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.
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.
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] ....
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.
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.
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.
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 "?"!"
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.
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.
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
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.
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
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?
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...
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.
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"
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??
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?
* 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">