Plesk 11.x / Linux :: Permission Correctly In Vhost?

Nov 25, 2014

I have domainA and domainB. domainA hosting files, for security ALL browser access should denied.. EXCEPT domainB make in php call with readfile() to a file on domainA. This should allowed.

domainB => readfile(http://domainA/myfile) => allowed ... all other access should denied.

So I set in vhost of domainA this:

<DirectoryMatch "^/var/www/vhosts/domainA/httpdocs/folder/">
Order deny,allow
Deny from all
Allow from 127
Allow from server-ipv4
Allow from server-ipv6/128
Allow from ::1/128
</DirectoryMatch>Click to expand...

View 3 Replies


ADVERTISEMENT

Plesk 11.x / Linux :: PHP Not Loading For One Vhost

Feb 19, 2015

We have strange problem with our plesk 11.0.9 Update #62.

Have only 10 domains hosted and all except 1 is working fine.... This particular domain doesn't run PHP scripts at all and when we try to browse a php script from browser, the file starts downloading. I have tried to compare the php settings from other working vhosts but and found no change at all... tried with

/usr/local/psa/admin/bin/httpdmng --reconfigure-domain domainname-tld

/usr/local/psa/admin/bin/httpdmng --reconfigure-al

Also tried to create the vhost but no gain...

Also I tried to change the PHP setting from control panel so that the php file would be generated , but every time I reset the value, it reverts back and no value is preserved.

View 1 Replies View Related

Plesk 12.x / Linux :: CLI Vhost Setup Example?

Nov 22, 2014

I have to move a lot of customers from old home-grown server setup to a plesk panel powered server.I want to use the CLI to do this and wondered if there was a tutorial showing how to setup the customer and add the subscription/hosting plan for that customer?

I looked over the docs and tested them, but the service plan never shows that hosting is added.

# ./customer --create JDoe -name "John Doe" -passwd sample -country US -notify false
# ./subscription --create example.com -owner admin -service-plan "Default Domain" -ip 192.168.1.100 -login JDoe -passwd "user pass"

I get the email saying that the do moan was setup, but the domain does not show that hosting is affiliated with it.

View 5 Replies View Related

Plesk 12.x / Linux :: Host Template Only For One Vhost

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

Plesk 12.x / Linux :: Reconfigure Vhost Failed

May 22, 2015

I getting this error after I run the command: ~# /usr/local/psa/admin/bin/httpdmng --reconfigure-all

Code:

PHP Deprecated: Comments starting with '#' are deprecated in /opt/psa/admin/conf/php.ini on line 25 in Unknown on line 0
Error occured while sending feedback. HTTP code returned: 502
Error occured while sending feedback. HTTP code returned: 502
Execution failed.
Command: httpdmng
Arguments: Array

[Code] ....

3 sites on this server hosted with different subscriptions and conditions. So the host work yet but I getting a red banner on the Subscription menu.

About my system:

os: debian 7.8 64bit
plesk: 12.0.18 Update #47

View 1 Replies View Related

Plesk 11.x / Linux :: How To Partition SSD To HDD Correctly

Dec 6, 2014

I am running a CentOS 6.6 (Final) with Plesk 12.0.18 Update #27 on my dedicated server. I was advised to upgrade my server to one that has a SSD due to better performance. What they failed to tell me was that I would need to perform additional configurations so that Plesk stores the subscription files in the /HDD-var/ directory and NOT the /SDD-var/ directory. Current server

Here are my questions:

1. How difficult would it be (I am a quick learner and can follow exact steps or directions very well) to make Plesk store the files on the HDD rather than the SDD?
2. Is this something I should undertake or is this very difficult to do?
3. If I perform these changes, will they revert to the old way if I perform Plesk updates? Or will the changes I make become permanent?

SSH: df -h

Filesystem Size Used Avail Use% Mounted on
/dev/md1 4.0G 916M 3.1G 23% /
/dev/mapper/ssd-usr 3.9G 1.9G 1.8G 51% /usr
/dev/mapper/ssd-var 3.9G 3.7G 2.7M 100% /var (Plesk is storing data here)
/dev/mapper/ssd-home 3.9G 792M 2.9G 22% /home (Would also like this data to be on the HDD)

[Code] ....

View 3 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 11.x / Linux :: Recreate Vhost System Directory?

Jul 13, 2015

My /var/www/vhosts/system directory was accidentally deleted. The actual vhost directories are unharmed, e.g. /var/www/vhosts/example.com. Is there a non-destructive script I can run to re-initialize the system directory? I am on Plesk 11.5.30.

View 2 Replies View Related

Plesk 12.x / Linux :: PSA-Firewall Not Working Correctly?

Aug 23, 2014

When I modify rules using the firewall panel it is not generating rules correctly when selecting allow from selected sources deny from others.

View 2 Replies View Related

Plesk 12.x / Linux :: Moved Vhost Location - Some Sites Not Working

Nov 14, 2014

I have a new DS with Plesk 12. I needed to change the default /var/www/vhosts location to a different physical drive, with more capacity.The larger disk is mounted as /disk1, so I created a folder here called vhosts, moved everything from the existing /var/www/vhosts directory, then I mounted /disk1/vhosts as /var/www/vhosts. See my fstab output below.

I then edited /etc/psa/psa.conf to update the VHOSTS location as per [URL] ...., and restarted Apache, MySQL and reconfigured domains.I thought all was OK, and that Plesk would just see /var/www/vhosts as normal, but I proceeded to migrate domains from another server to this box, and found that whilst some sites were working OK, many were not.

I was finding that existing config directives that used <Directory> were being ignored or seemed to disappear.All sites with .htaccess files stopped workingWe would get Apache / PHP errors saying that files could not be accessed as they were not in the allowed path for the domain. Plesk seems to be logging, reporting, and handling files as if they were in /disk1/vhosts, not the usual location. I have got sites working by adding /var/www/vhosts/ domain and /disk1/vhosts/domain to the PHP Settings page as allowed paths.

I have checked in the httpd.conf for each domain, and they all list the site document root as /disk1/vhosts/domain, not /var/www/vhosts/domain.It's as if Plesk is ignoring the change in /etc/psa/psa.conf.

All I want is for Plesk to think that /var/www/vhosts is the document root for all domains, and not do anything with /disk1/vhosts. I have many sites with hard coded links to included files in /var/www/vhosts/domain, and I dont want to have to rewrite them all to use /disk1/vhosts.

I have had to stick HTTP configuration directives on nearly every site, and add these entries to the allowed paths box, which obviously I should not have to do. Can any Plesk / Linux gurus tell me what I need to do to fix my problem, get sites working in /var/www/vhosts, and have Plesk allow .htaccess files to work without me having to add "AllowOverride All" to every domains??

# /etc/fstab
# Created by anaconda on Tue Oct 14 05:22:57 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#

[code]....

View 2 Replies View Related

Plesk 12.x / Linux :: Advanced NginX Directives For Vhost (memcached)

Sep 19, 2014

You can edit the nginx directives for the desired vhost at the webserver config. However, it seems like that you can only add basic directives, but not something like that:

Code:

http {
# memcached servers
upstream memcached-servers {
server 127.0.0.1:11211;
}

[Code] ....

How can I do that?

View 4 Replies View Related

Plesk 12.x / Linux :: Firewall Not Generating Rules Correctly

Aug 17, 2014

I am using the plesk firewall and trying to set up SSH rule which only allows from my IP but deny from everywhere else. In previous versions this worked fine by adding an ip selecting Allow from selected sources, deny from others and the icon in the rules would be orange with the lines

allow incoming from xxx.xxx.xxx.xx
Deny incoming from all others

However this no longer works as the deny from all others is not appearing and is not being generated in the iptables by plesk.

View 1 Replies View Related

Plesk 11.x / Linux :: MySQL Crashing / Not Loading Correctly

May 14, 2014

I have a Centos 6 server with Heart Internet, who yesterday had an issue with the issue and once back online have been struggling til now getting the mysql service working correctly again and have now refused to provide any further support and redirected me here.

I was following this article here: [URL] ....

I've gotten to point 4. "~# mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` -A | sed '1iSET FOREIGN_KEY_CHECKS = 0;' > /root/dumpall.sql" however it's saying "got error: 145: table './avenue141_dabs/av_options' is marked as crashed and should be repaired when using LOCK TABLES and any attempts made to get into the DB to repair is giving me "error: 1045: Access denied for user 'root'@'localhost' (using password: NO)

This issue is urgent as we have a few websites on this server which use mysql databases for their website.

View 9 Replies View Related

Plesk 12.x / Linux :: Request For Instruction On Correctly Installing APC

Oct 6, 2014

I would like to install APCu (Alternative PHP Cache) & ZendOptimizer on plesk v12, I just wanted to know if there is any instructions for installing it correctly in a manner that will not cause issues with plesk updates.

View 5 Replies View Related

Plesk 12.x / Linux :: Website Not Working Correctly - URL Rewrite

Sep 2, 2014

Latest Plex installed on a fresh machine. Have tried both Ubuntu 12.04 and 14.04 and cannot seem to have my website work correctly regarding URL rewrites. Its enabled in apache...

View 1 Replies View Related

Plesk 12.x / Linux :: Activating WebDAV In Specific Domain - No Vhost Directory

Jul 14, 2014

Want to activate webDAV in a specific domain with a v_host conf file, but do not have a /conf directory in the domain path. How can I manage the this?

View 2 Replies View Related

Plesk 12.x / Linux :: System Policy For Incoming Traffic - Firewall Not Working Correctly

Jun 25, 2015

When I deny all other traffic for the "System policy for incoming traffic" to secure the server by only allowing the explicit ports I've requested to open, my server stops operating correctly.

It appears when I set the "System policy for incoming traffic" to deny, it appears to be disrupting various functions such as web traffic over ports 80/443, FTP, SSH, they either work extremely slow or don't work at all.

I brought this up with my Plesk license provider and they stated that the Plesk firewall doesn't add any tracking for ephemeral ports, therefore if you set the policy to drop for incoming/outgoing, it's not going to allow proper TCP communication since the return socket can't be opened. Also that the firewall is an explicit deny system rather than explicit allow based system.

Am I doing something wrong? All I want to do is to block all ports other than the ones I've set to allow. Is this how it is supposed to work?

View 1 Replies View Related

Plesk 12.x / Linux :: Word Available Without Permission

Sep 1, 2014

So far my upgrade to 12 has been very smooth but one items that I can't seem to find an answer on is I do not have any applications (including Wordpress) available to users to install. I want this only set and allowed and installed by me (the Admin). If I log in as a user only I can install WP and don't want my customers doing this without talking to me first.

Am I missing a place to shut this down or uncheck to allow this to be installed?

View 1 Replies View Related

Plesk 12.x / Linux :: Session Permission Error

Jul 20, 2015

Some of my websites show the following error when trying to use _any_ of the Plesk-supplied PHP packages instead of the default PHP CentOS/atomic package:

Code:
Unknown: open(/var/lib/php/session/sess_xxxxxxxxxxxx, O_RDWR) failed: Permission denied (13) in Unknown on line 0
This is a fresh install of Plesk 12 MU55 on CentOS 6.6.
Same thing happens with Plesk 12.5 Preview on CentOS 7.1

...as soon as I select any of the Plesk-supplied packages (PHP 5.4 - 5.6) with FastCGI, the error appears.

View 3 Replies View Related

Plesk 12.x / Linux :: Cannot Sign In With Any FTP Account - Permission Denied

Feb 15, 2015

SOCentOS 6.6 (Final)
Plesk12.0.18 ActualizaciĆ³n #35

I can not sign with any FTP account.

/var/log/messages:

FTP session opened.
unable to open TransferLog '/usr/local/psa/var/log/xferlog': Too many levels of symbolic links
chroot to '/var/www/vhosts/domain.com' failed for user 'user': Permission denied
error: unable to set DefaultRoot directory
FTP session closed.

View 5 Replies View Related

Plesk 12.x / Linux :: Postfix - Qmail Permission Denied

Feb 12, 2015

Mail isn't leaving the queue, it's returning this error

Feb 12 23:12:01 XXXX postfix-local[64360]: System error .qmail: Permission denied
Feb 12 23:12:01 XXXX postfix-local[64360]: Wrong permissions for .qmail

All the files within /var/qmail/ are set to the user and group "popuser", and have the nessacery rwx permissions for the user/group.

The OS is CentOS.

View 5 Replies View Related

Plesk 12.x / Linux :: File Permission And Backup Manager

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

Plesk 12.x / Linux :: Postfix - Fatal Error Permission Denied

Jan 5, 2015

This is a fresh plesk12 installation on a kvm vps on centos 6.6

We used the migration and transfer tool to copy data from another server. After the full migration without changing any setting from the configuration files, any mail account hosted on this server cannot receive emails.

Here is the error from the log file:

Jan 5 14:58:16 postfix/pipe[10082]: 9B1651C296D: to=<user@mydomain.com>, relay=plesk_virtual, delay=312, delays=312/0.03/0/0.16, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /usr/lib64/plesk-9.0/postfix-local: Permission denied )

Same error using either webmail or mail client. I have also tried to change from postfix to qmail and vice versa but without any success...

View 2 Replies View Related

Plesk 12.x / Linux :: Permission Denied When Accessing Mail Settings

Feb 17, 2015

Since the plesk installation by my hoster did not include a mail server, I installed postfix and dovecot from the upgrades menu, followed the steps at [URL] .... and ran mchk to add the mail settings option to my domain. However, when I click on it, I receive the error "Warning: Permission denied." and stay on the domain overview. There is no error logged in var/log/sw-cp-server/error_log, /var/log/sw-cp-server/sw-engine.log or /usr/local/psa/admin/logs/panel.log.

I also tried "plesk bin mail --create foo@my.tld -mbox_quota 1M", but then I receive the error

Code:
ERR [util_exec] proc_close() failed
mailmng-outgoing failed: ERROR:outgoing:mails.domain_id may not be NULL

System: OpenSuse 13.1 (x64)
Plesk version: 12.0.18 Update #35

View 4 Replies View Related

Plesk 12.x / Linux :: API Create Subscription Failed - Permission Denied 1006

Sep 8, 2014

We have a little issue with the API, when we want to add an subscription, then we became "Error: Permission denied. (1006)" - but the subscription was added. The status Icon of the Subscription is a "!" and they say (tooltip), that the Plan wasn't correctly synchronized, but we don't use a Plan for this. The Reseller has all rights, there are now limits.

I have test this with the following Code:

Code:
<packet version="1.6.3.0"><webspace><add><gen_setup><name>plesk-test.de</name><owner-login>123login!</owner-login><htype>vrt_hst</htype><ip_address>127.0.0.1</ip_address></gen_setup><hosting><vrt_hst><property><name>ftp_login</name><value>blubb</value></property><property><name>ftp_password</name><value>blubb123</value></property><ip_address>127.0.0.1</ip_address></vrt_hst></hosting><limits><limit><name>disk_space</name><value>1000</value></limit></limits></add></webspace></packet>

For the execution is used the SDK from [URL] ....

I don't know when we had this problem the first time, but i know that if had worked in Plesk 12 correctly - i think the problem came up with the last 4 - 6 MU.

We actually have Plesk 12.0.18 Update #16 and running it on Debian 6.0.9.

View 4 Replies View Related

Plesk 12.x / Linux :: Php-fpm Support For Nginx Not Starting / Working - Permission Denied

Mar 20, 2015

Centos 7, Plesk 12

Problem:

PHP-FPM support for nginx will not start when attempted in Tools & Settings > Services Management

Check error log:

#tail /var/log/php-fpm/error.log

ERROR: unable to bind listening socket for address '/var/www/vhosts/system/domain.tld/php-fpm.sock': Permission denied (13)

Possible problem:

SELinux may be preventing it. To test this do:

#setenforce 0

Now try and start PHP-FPM support again in Tools & Settings > Services Management

If that now starts you know what the problem is. Go to "Fix" below
If it didnt work, you have a different issue. Turn SELinux back on while you figure it out:

#setenforce 1

Fix:

The following worked for me but i know very little about SELinux - corrections welcome:

## Turn SELinux to permissive
# setenforce 0
## In Plesk panel start PHP-FPM support in Tools & Settings > Services Management

[Code]....

View 9 Replies View Related

Plesk 12.x / Linux :: Default Path Changed - Permission Denied Error

May 5, 2015

Not sure what is going on with Plesk.. I've modified and saved a specific service plan with the session.save_path to have a location by default to be /tmp/ and for some reason it isn't changing all customers accounts with the modified settings of the location to be /tmp/. In order to resolve the issue, I'd have to manually change the "default" option on each websites php settings session.save_path to /tmp/ instead of Plesk syncing the correct settings based on the modification. Because of so, I am receiving the following error below on a customers website below:

Warning: Unknown: open(/var/lib/php/session/sess_f9bffgv0ddrjo9geb6frhut5d7, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

After making changes, I've tried the following in command line:

service php-fpm restart
service httpd restart
service psa restart

None which have resolved the issue.

View 1 Replies View Related

Plesk 12.x / Linux :: Internal Error - Filemng Failed / Permission Denied

Jun 24, 2015

Recently we had to rollback the Plesk database and Plesk version files to their pre-upgrade state, and rerun the upgrade procedure as it is described in the knowledge base [URL] ..... The update process then worked smoothly and we are now using the newest version 12.0.18 on CentOS 6 with the newest microupdates 1200150615.10.

But right after this update procedure we are not able to access some domains with the filemanager anymore. The browser shows the following error message:

Internal error: filemng: opendir failed: Permission denied System error 13: Permission denied
Message filemng: opendir failed: Permission denied System error 13: Permission denied
File Agent.php
Line 243
Type PleskUtilExceptio

The logfile: /usr/local/psa/admin/logs/panel.log is a bit more detailed

[URL] ....

What I did so far was the following:

1.) I checked out the knowledge base, specifically this entry was worth looking at. But /usr/local/psa/bin/repair --restore-vhosts-permissions didn't solve the problem.
2.) I found a similar problem in the discussion board but the approaches they took weren't successful in my case.

Due to the fact that the file manager worked before the rollback of the database and the major upgrade, I think there might be a connection.

From my point of view the permission settings should be right. Other domains using exactly the same permissions and they are working fine.

# ll /var/www/vhosts/system/domain.com/
total 20K
drwxr-x--- 2 root psaserv 4,0K 24. Jun 02:13 conf
drwxr-xr-x 2 root root 4,0K 8. Jan 2014 etc
drwx------ 2 psaadm root 4,0K 24. Jun 03:43 logs

[Code] ....

View 1 Replies View Related

Plesk 12.x / Linux :: Zend Controller Exception - Permission Denied When Trying To Restore Backup

Jun 8, 2015

System
12.0.18 CentOS 6 1200150126.15
micro update - 48

trying to restore a backup from a different plesk 12 server but it keeps giving me this error

Internal error.
ERROR: Zend_Controller_Exception: Permission denied.#0 /usr/local/psa/admin/plib/CommonPanel/Controller/Action/Abstract.php(191): CommonPanel_Controller_Action_Abstract->_checkForgeryProtectionToken()
#1 /usr/local/psa/admin/externals/Zend/Controller/Action.php(502): CommonPanel_Controller_Action_Abstract->preDispatch()
#2 /usr/local/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('errorAction')
#3 /usr/local/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#4 /usr/local/psa/admin/plib/Application/Web.php(38): Zend_Controller_Front->dispatch(NULL)
#5 /usr/local/psa/admin/htdocs/application.php(15): PleskApplication_Web->run()
#6 {main} (Broker.php:336)

The backup was saved on a personal ftp repository ...

View 2 Replies View Related

Plesk 11.x / Windows :: Reconfigure Vhost -> Missing Required Parameter

Jul 25, 2013

When i try to call websrvmng.exe --reconfigure-vhost --vhost-name=domain.com (like here: [URL] .....),

I get this message: "Missing required parameter --vhost-config."

Version: Plesk 11.5.30 Update#5

View 8 Replies View Related







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