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


ADVERTISEMENT

Plesk Automation :: Change Default Website Skeleton PPA 11.5

Apr 10, 2014

I uploaded the default skeleton files into the management ppa server at /var/www/vhosts/.skel/0/

But when I am creating a new subscription the skeleton is still the default plesk skeleton, something changed from ppa 11 to 11.5 ??

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 :: Redo Default Templates - Skeleton Command Not Working?

May 27, 2014

We're attempting to redo all of the Plesk default templates. I created my skel file (.zip), uploaded it and run the command as noted here [URL] ....

The CLI sites for a moment and then I am dropped back to command line. It seems to have worked...but, is not.

View 5 Replies View Related

Plesk 12.x / Windows :: Creating Event Handler - Domain Name

Dec 18, 2014

I am trying to create plesk event handler

I have created the event

"C:Program Files (x86)ParallelsPleskbinsubscription_settings.exe" -u "${NEW_DOMAIN_NAME}" -disk_space 15G
for domain updated / domain created

But it doesn't run.

If I add hardcode the domain name for example mytest.com

"C:Program Files (x86)ParallelsPleskbinsubscription_settings.exe" -u mytest.com -disk_space 15G

the event works.

View 7 Replies View Related

Plesk 12.x / Linux :: Site Isolation Settings For PHP Handler Type Ignored

Dec 23, 2014

On a server which was running for years now and was updated from plesk 10 to plesk 11 and also to plesk 12 (12.0.18 Update #29) there seems to be a bug.

Customers are able to change PHP handler while in site_isolation_settings.ini it is not allowed:
php_handler_type = fastcgi

PSA service was restarted too:
/etc/init.d/psa restart

This is a serious issue because customers should not be able to change PHP handler type.

Only abonnements created with older Plesk versions are affected. I cannot say which version exactly because server had installed Plesk 10, 11 and 12. What do we have to modify to disallow changing the PHP handler type for this abonnements created with Plesk versions befor Plesk 12?

View 4 Replies View Related

Plesk 12.x / Linux :: 12.0.18 - How To Set Permissions To 770 By Default When Create Vhost

Oct 5, 2014

When a customer use the wordpress auto installation tool, all work ok.

But, when the customer try to install wordpress manually (Uploading by FTP), it returns different permissions errors.

Example: "wp-config.php" cant write .

I compared the permissions of both vhosts (WP-Auto-install and WP-Manually-Install), and have totally different permissions.

WP-Auto-installed : /httpdocs = 770
WP-Manually : /httpdocs = 750

How I can set permissions to 770 by default when create a vhost? to avoid the customer having to do it manually.

View 4 Replies View Related

Plesk 12.x / Linux :: Resetting Default Permissions Per Domain

Dec 10, 2014

I have found through the KB the way to do it server wide but I was wondering if there was still a way to reset default domain permissions per domain.

/usr/local/psa/bin/repair --restore-vhosts-permissions - to restore all domain permissions.

View 1 Replies View Related

Plesk 12.x / Linux :: PHPMyAdmin Permissions Change

Jan 28, 2015

CentOS 6.6
Plesk 12.0.18
64-bit

At some point, not sure when, PHPMyAdmin's (as accessed through the admin panel by clicking on a customer, manage hosting, databases, etc) permissions have changed such that I cannot view, edit or add MySQL routines/procedures. This appears to have occurred system-wide, though I have not checked every database on the server.

Is there a fix to get the permissions set so that I can make these changes again?

View 3 Replies View Related

Plesk 12.x / Linux :: Wordpress Default Language Change

Sep 9, 2014

My server currently installed plesk 12 , I need to change wordpress default language ( default English )

Which aps table to edit language.

View 1 Replies View Related

Plesk 12.x / Linux :: Proftpd Default Folder Change?

Feb 11, 2015

I am noticing that several of my users are wiping out their user root folders ( logs, error docs, etc...) when they fail to use '/httpdocs/' as the root directory when publishing with FTP.

I fixed this by editing the proftpd.conf to use ~/httpdocs/ as the DefaultRoot folder ( instead of just ~/ ).Would it be safer(better) to go through all the ftp users and make the home directory '/httpdocs/' instead of '/' in the admin UI? If yes, what is the best way to do a mass update of this setting for multiple users ( multiple domains ) ?

View 2 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 :: Change Default Value Of Preferred Domain

Sep 16, 2013

Is there a way to change the default value of the "Preferred domain" option in the hosting settings of domains in Plesk 11.5? When ever i create a new subscription/domain it just defaults to the value of "domain.ltd" and i have to go into the hosting settings and manually change it to "None". Is there a way i can set it to use the "None" option every time i create new subscriptions or domains?

View 14 Replies View Related

Plesk 11.x / Linux :: Selected Site On Default IP Via HTTPS

Jun 16, 2014

I have Plesk 11.5 installed on my server. There are about 30 sites on the same shared IP address. I need to set up a site to be accessible via https://<ip-address-of-the-server> . According to the documentation I went to Setting -> IP Addresses and selected the desired site from the drop down. Now http://<ip-address-of-the-server> (note, 80th port) works like a charm. Unfortunately https:// displays only the first page of the selected site; all CSS, JS and other files are not found (404).

I did some research and found that Nginx forwards the requests to Apache for all the PHP files and tries to handle all the static files by itself (what is expected and correct). But it looks like that there is no special configuration for nginx which would specify where to get these static files for the IP address, and Nginx just uses the first loaded config (started from b in my case).

I temporary resolved this issue by modifying the last_nginx.conf for the desired domain this way: listen XX.XX.XX.XX:443 default_server ssl;

Note I added "default_server" directive. Of course it would be erased on each reconfiguration of the config files, but as for now I do not see how I can put it in custom nginx.conf or on the server servel level. I reckon Plesk should include the directive in the file the same way as it produces last_httpd_ip_default.conf Apache config for the selected domain. It looks to be an easy fix on the template level, may be I will do it later, but for now this is just the bug report.

View 2 Replies View Related

Plesk 12.x / Linux :: Default Site For Disabled Subscriptions

Jul 9, 2015

If you would disable a subscription and reloaded that domain name. You would be redirected to a default subscription. How can i change this default landing page?

View 2 Replies View Related

Plesk 11.x / Linux :: All Site Showing Default Page After Upgrading From 10.4.4 To 11.0.9

Jul 14, 2012

I upgraded from 10.4.4 to 11.0.9 and saw no errors in the process, everything was fine. However when I checked the sites after, all of them (including sub-domains) were showing the default domain page. All the files are still there no problem, and as a test I deleted a subdomain a recreated it and it worked fine.

I have a feeling it's something to do with IP addresses (I currently have two set up - most sites use one and about only 5 use the other) as going to the subscription and changing the IP address over to the other one then back to the original seems to make the site show up for most sites. I can't do this on all sites though - any commands to reconfigure everything and get it all back in to place?

View 19 Replies View Related

Plesk 11.x / Linux :: Changing Default Site When Domain Suspended?

Jul 24, 2014

where i can change the default plesk page when a domain has been suspended or disable? I like to change it to my custom page. Is there a way?

View 5 Replies View Related

Plesk 12.x / Linux :: Default Placeholder Page Redirects To Another Site?

Jan 13, 2015

I disabled a site, and instead of getting the default placeholder when visiting the domain, I get another web site that I host.

[URL]

View 2 Replies View Related

Plesk 11.x / Linux :: Domain CNAME Redirects To Default Site?

May 16, 2014

When I create a CNAME record for domain, and then trying to load it, it goes to default website. It was working fine before, all old CNAME records are working fine.

Tried reconfigure-all but it doesn't fix the problem. I'm using 11.5.30 Update #44

View 1 Replies View Related

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 / Windows :: Default Permissions For Domains

Mar 31, 2014

I've installed the Plesk Panel onto a windows 2008 server. It's all good, web sites are flowing and I'm really happy with the software. The issue I'm having is a customer has an asp site with an access database. After I uploaded their site, they couldn't write to the database, so I had to manually go and set the permission on the database for the "Plesk IIS Anonymous Account (IUSR_xxx)" user to have modify access on the file.

So my question is this, how can I set up the default hosting account to already allow this and so I don't have to go an waste time tweaking the folders manually trying to find the right permissions?

Also, why is it the Plesk IIS Anonymous account that needed to have it's permissions tweaked and not the "Default Plesk application pool user (IWAM_plesk(default))" which is the user who's configured on the application pool in IIS? I can't see where the Plesk IIS Anon user is being used.

View 1 Replies View Related

Plesk Automation :: Adding Dedicated IP Breaks Site (visitors Land On Default Site)

Apr 14, 2015

Starting point: a working site using a shared IPv4, dedicated IPv6, and SSL. HTTP and HTTPS work, the latter only using SNI of course.

The good news: If I simply allocate an IP resource of 1 to a subscription it is pulled from the pool, assigned to the service node, assigned to the web site, DNS is updated, and the site is automatically changed to using a Dedicated IPv4 and Dedicated IPv6.

The bad news: visitors land on the default web site of the service node, with the default SSL certificate.

Other info: I can't ping the new IP, even though it shows in "ip a l" and /etc/sysconfig/network-scripts/ifcfg-eth0:0. [edited]

After the IP assignment, it is still installed, and /etc/httpd/conf/plesk.conf.d/ip_default/domainname.conf shows the new certificate is being used.

However, a second set of VirtualHost entries is created in server.conf for this IP for ports 80 and 443, with NameVirtualHost enabled on the new IP. The port 443 entry uses the default certificate. Apache's setup this default VirtualHost entry will override the web site configuration because Apache is listening on port 443 with the wrong cert.

If I go to "Change webspace settings" and toggle to Shared IPv4, Dedicated IPv6 the site works again via HTTPS, and Dedicated IPv4 and Dedicated IPv6 breaks it again. Setting the SSL cert to None and back again does not work.

Setting the SSL cert to None, changing to a dedicated IP, and enabling SSL results in the server being inexplicably inaccessible...browsers no longer connect to either the default site or the correct site, and I don't see any entries in the vhosts's logs.

View 6 Replies View Related

Plesk Automation :: Reset Default Permissions In Virtual Host Directory

Jun 6, 2013

How do we reset default permissions in virtual host directory in PPA.

I see some KB articles for Plesk Panel - but not sure we can use those.

View 4 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 Automation :: Change Of Permissions For User

Jul 2, 2014

I believe the product we are using is Parallels Operations Automation.

We have a customer that we want to be able to give the right to unlock user accounts. The only way to do this seems to be to enable "Billing" as one of the privileges. Unfortunately this gives them more access than we really want to. Is there some trick we can use to give this user only these rights?

View 2 Replies View Related

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 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 / Windows :: How To Change Permissions For Multiple Files At Once

Sep 9, 2013

How can I change permissions of a lot of files through plesk file manager without selecting one by one?

View 2 Replies View Related







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