I would like my Plesk users to each have access to the mail folder for their domain. cPanel appears to do this by default by creating a folder named /home/user/mail which contains a subfolder for each domain name. Plesk, however, places all email folders together in the /var/qmail/mailnames folder. I would like to end up with a structure similar to how cPanel does it, but it looks like there are at least a couple of ways to accomplish that and I'm not sure what would be the most safe, reliable way to do it.
One way I can think to do it would be to override the Plesk dovecot config by adding a new config file to /etc/dovecot/conf.d. I think changing the values for mail_home and mail_location as follows would possibly work.
Old values: mail_home = /var/qmail/mailnames/%Ld/%Ln mail_location = maildir:/var/qmail/mailnames/%Ld/%Ln/Maildir
New values: mail_home = /var/www/vhosts/%Ld/mail/%Ld/%Ln mail_location = maildir:/var/www/vhosts/%Ld/mail/%Ld/%LnMaildir
I see a potential issue with this solution; the %Ld for an add-on domain will probably be the add-on domain, and there will not be a folder within /vhosts/ with that name. Perhaps there is another variable for the primary domain that I could use there.
A second way I can think to do it would be to add a symlink in /var/www/vhosts/domain/ named "mail" that points to the actual mail folder for a domain. Again, issues would probably occur here with add-on domains, and I also can't see a way to automate this. I also predict permissions issues with this solution.
How can i restrict my user that always taking high CPU usages..i have linux server with shared hosting and most of the time i suffer that some user takes 10% of our server CPU so that i want to restrict those take high cpu usages..
I thought I knew enough about my .htaccess stuff to do this, but I can't seem to work it out. What I want to do is if a user visits domain.com/folder, we check to see if the folder exists. If so, show as normal (IE domain.com/support)
If a user visits domain.com/dynamicusername (dynamicusername is not a physical folder), redirect to dynamicusername.domain.com
So yesterday I tried to follow along with http://www.eth0.us/tmp to secure m /tmp folder. It broke. I have since fixed the issues (chmod 1777 and not 0777) but I still have a second tmp mount point that I can't get rid of.
/dev/tmpMnt on /tmp type ext2 (rw,noexec,nosuid,loop=/dev/loop0) tmpfs on /dev/shm type tmpfs (rw,noexec,nosuid,nodev) /tmp on /tmp type none (rw,noexec,nosuid,nodev,bind)
My Plesk Panel 11.0.9 Update #26 is running on a dedicated Debian 6.0.6 server and works all fine, but I'm having some issues with the backups. I'm doing backups using the standard build in GUI backup manager. Everything works fine, even the cron job which copies the backup files every night to a second location. The problem I'm having is, that I can't specify folders to exclude from the backup. The reason why I need this is, that I have a 24TB RAID mounted in the /var/www/vhosts/mydomain.com folder and this will be a problem once the RAID is filling up.
I'm trying to copy a backup from the FTP server to the production server but I don't have enough space in the tmp folder.
There is a way to change where the backups are temporary until the hole backup is on the server? In case the only thing to do is to change where the tmp folder is mounted. This is a production server, I won't like to do it without knowing all the steps.
the problem is very big since backup procedure not backup all files and folder. I have a lot of Wordpress installations (some of that made with App Installer and others made by hand).
Into all the above installations, files and folder created by Wordpress, like plugin installed or image, uploaded are not backup!
I have seen that all this files come with www-data:www-data user and group but with read permissions for owner, group and others, so i not able to understand why they are not inside my backups. If i change user and group all works fine.
Check your Wordpress backup and verify the presence of plugin and images (miniature of images are still present since they are created with different user and group)...
I'm having a problem when copying folders into another folder using the same name.e.g. there's a folder called css in httpdocs/backup/css and also httpdocs/css. However, I'm trying to restore the backup and actually copy the /css dir from httpdocs/backup to httpdocs. Plesk should overwrite the existing target css dir (and its content/files) in httpdocs/css. However, Plesk creates a new css dir inside httpdocs/css so I have the "original" httpdocs/css dir content intact and also the css dir (from httpdocs/backup/css) copied into httpdocs/css so the full path is httpdocs/css/css
I'm highlighting the httpdocs (not /css dir) in the File manager - Copy Files window. I've tried that on a few installs and experiencing issue on each of them. Please see the attached screenshots.
Step 1. Select (check) the css dir and click copy (or move, result is the same)
Step 2. Mark the httpdocs dir (it doesn't matter if you click the Replace existing files checkbox)
Step 3. Final result, css dir from httpdocs/backup copied into httpdocs/css/
I've compared the dir content several times and definitely the css dir from httpdocs/backup is copied to httpdocs/css so the full path would be: http docs/css/css and the original "old" files from css will remain there.
* 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">
I have a problem where every folder I ftp onto the server gets given a 700 permission and every file gets a Zero permission. Most of the sites I am adding to this server will be WordPress sites and most of the folders I want to have a permission of 755 and for the files a permission of 644 so my question is how do I change the settings so that any new files ftp'd onto the server get the permission 755 and files get the permission of 644 ?
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 ) ?
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 "?"!"
I'm trying to create a network connection from Windows (8.1) to my Plesk filesharing folder, which should be straight forward. For some strange reason my Windows desktop PC doesn't establish the connection but shows me an error message, saying that the provided folder is invalid (see attached images).
I am running CentOS Linux 7.0.1406 (Core) with Plesk Version 12.0.18 Update #19.
Customers who use Outlook or Mozilla Thunderbird cannot send Emails through IMAP (Courier) because their mailclients say "Cannot write to sent Folder" even when there is a "Sent" Folder in the IMAP Structure existing. It is also subscribed by the Client.
Outlook Users have to go to: file - account settings > account settungs > Change > more Settings > advanced > root Folder path and enter the word inbox
Mozilla Users have to enter "INBOX." under advanced IMAP Settings in Thunderbird.
So my question is: Why is that ? And cant i Change something as admin on the Server side so all customers dont have to Panic and set an inbox Folder path in their mailclients ?
For customers it has to work without Client-side configuration...
When I set up spamassassin to store spam in the spam folder of my mailbox, it doesn't add any X-Sapm headers nor tags the subject. All I found so far was an old thread where a plesk employee stated that it will be fixed in 'a' future version.
The Plesk panel indicates that the Spam folder can be retrieved using an email client. We are using Outlook 2013 and can not figure out a way to make this happen. We can see the Spam folder using Webmail, but the contents never shows up in Outlook...
I migrated domains from another server and they had separate http and https folders. Now I need to make them use same httpdocs for both http/https. How do I do it for a single domain? How do I batch do it for all domains?