Plesk 12.x / Linux :: Chroot -> Too Many Levels Of Symbolic Links
Aug 27, 2014
I am testing out Plesk control panel 12 - looks promising, but the moment I hit chroot-ed environment, many things go wrong.
Set up:
Virutal server, running linux (64 bit Ubuntu 14.04 Server LTS);
Plesk Control Panel 12.0.18, Update #14;
Currently running on a trial license;
Brand new installation on a dedicated server;
I have two disks, one is for system stuff, plus plesk; second disk is supposed to be dedicated to /var and /home
root@testthing:/var/log# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 40G 8.7G 29G 24% /
....
/dev/vdb1 493G 2.9G 465G 1% /disk2
[Code] .....
(to save place, I've removed the regular stuff that is everywhere and makes not difference for this case ... I think)
The plesk installation went just fine; update ran fine; I can register customers, their websites run fine ... as long as they get no shell at all, or regular shell to the server.
BUT: we need to jail all our customers under chroot. If that is not possible, we can't use Plesk.
I created a Service plan cloned form the Default domain plan and changed only to give the users ssh access to the server with a chroot env.
When I try to register a new client with this new service plan, it fails with lots of error messages (one per directory it tries to make), like this:
chrootmng: cannot set permissions for "/var/www/vhosts/demowh1.blah.blah/lib":Too many levels of symbolic links
...
Dropping the GUI and xperimenting in a shell, as root: If I run:
root@testthing:/usr/local/psa/admin/sbin# ./chrootmng --create --source=/var/www/vhosts/chroot/ --target=/var/www/vhosts/demowh1.blah.blah
open_basedir_with_nofollow: opeat failed: `var', Too many levels of symbolic links
[Code] ....
But, if I run it like this:
root@testthing:/usr/local/psa/admin/sbin# ./chrootmng --create --source=/var/www/vhosts/chroot/ --target=/disk2/var/www/vhosts/demowh1.blah.blah
It proceeds to make a copy of all directories where it should.
So, at this point I am pretty sure that the problem is my link between /var and /disk2.
Still, I want to keep the user data on a separate disk from the system/plesk data.
View 4 Replies
ADVERTISEMENT
Feb 17, 2015
Just went through a migration and everything appeared to go pretty smooth, but we figured out there was an issue with symbolic links.
A site on an old server running plesk 12 had symbolic links in it. When the site is Migrated through the plesk migration tool, the symbolic links aren't preserved on the new server.
View 1 Replies
View Related
Jul 23, 2007
I have a linux sserver. And I mount a drive from a windows server. The mount point is /mnt/winmirror.
I make 2 test folders, test1 and test2 under /mnt/winmirror. Then I create a symbolic link in test1 to test2. In -s /mnt/winmirror/test2 linktotest2.
But there is an error message:
ln: creating symbolic link `linktotest2' to `/mnt/winmirror/test2': Operation not permitted
Any body know why I can't create symbolic link in this situation?
View 1 Replies
View Related
Sep 30, 2014
I have customers that want the git program to be able to pull/push their github repos. I've copied all of the files in the git rpm into the site's chroot but whenever they try to pull down their repo via ssl they get this message:
error: while accessing https://github.com/USERNAME/PROJECT.git/info/refs
fatal: HTTP request failed
We have gotten ssh to work with git but the ssl issue still isn't working.
View 1 Replies
View Related
Sep 24, 2014
Where can I define the $PATH in chroot permanent ?
If i use "export PATH=$PATH:/usr/libexec" in the shell - its ok for this session, but in a new Session the modified $PATH-Variable ist reset to:
"echo $PATH"
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
View 1 Replies
View Related
Feb 23, 2015
Is there any way for a client to use command line mail in a script. Client has ssh access via chromed environment.
Wants their script to be able to send an email on completion.
plesk 12 on Centos6.6
View 6 Replies
View Related
Sep 30, 2014
After update of some system commands, there is now difference between the system-wide command and the equivalent that is located in the chroot template directory (and the command that is in the domain's bin dir).
Is there a command/utility that can update the commands (and all libraries that they depend on), that we have in our chroot template directory /var/www/vhosts/chroot?
View 2 Replies
View Related
Jun 20, 2014
We were using the mailserver on our linux install, but have since changed over to an ms exchange server. With that I removed the mailserver and installed MSMTP relay only mailserver (SMTP client) option.
I configured the External SMTP Server settings under Tools & Settings / Mail with a valid email address password host name and port of 587. When I save it says settings saved.
Since doing this I have been unable to use the email link option for share files in the file share portion of my domain. When I try to select a user from the list to send the email to or even type an external email all I get is the error "Unable to send email".
When I checked the maillog file in /usr/local/psa/var/log, I get this error "Jun 20 15:42:59 u16271698 msmtp: host=smtp.1and1.com tls=off auth=on user=to@email.ca from=psaadm recipients=to@email.ca errormsg='cannot use a secure authentication method' exitcode=EX_UNAVAILABLE"
Where I have proper emails configured where I placed "to@email.ca"
How can I get this working with the MSMTP relay only mailserver (SMTP client) option installed?
View 5 Replies
View Related
Apr 7, 2014
I've a problem with the chroot directories under /var/www/vhosts/domainxy.com. The options I've configured is "Access to the server over SSH -> Forbidden", After creating a webspace there are no chroot directories. But if I change the system user username under hosting settings, the directories will be created. But I don't want this, because the option I choosed is "Forbidden" and my customers are irritated about this directories. Can I prevent this behabiour?
View 1 Replies
View Related
Oct 1, 2014
I was asked by a user why he only saw a page with 'related links' when he went to the web site. I checked and saw the same thing if I typed www.domain.tld. If I just typed domain.tld, the page displayed fine. In trying different things tonite, I cleared my cache and now neither url works.
I am using Parallels Plesk Panel 11.5.3. If I click the 'Preview' button on the panel, everything looks great. If I click the 'Open' button, I get the 'related links' page.Today, the shcnf.com link seems to be working fine and the 'Open' button in Parallels Plesk Panel works, but the www.shcnf.com link is still showing a 'related links' page.
My DNS settings show:
shcnf.com record type: A value: 198.144.188.31
www.shcnf.com record type: CNAME value: shcnf.com
I do not currently have a preferred domain set in my hosting settings. I tried setting one the other night with no luck, though I was also playing with the DNS settings (I tried setting www.shcnf.com to an A value with the IP, hoping to force it to work).
View 1 Replies
View Related
Nov 3, 2013
I will have or not problems, (plesk compatibility) with this tool: URL....URL-Rewrite...I need install ModRewrite to use "Permanent Links" with some scripts like "Wordpress". I have try search on the web any alternative, and i found this.
I like know if this "URL-Rewrite" from Microsoft will cause me or not problems with my Plesk 11.5.Additional i like know, if i can create a file "web.config" and this file will accept all my custom configurations?.For example to activate the URL-Rewrite on a Wordpress Install:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
[code]....
View 2 Replies
View Related
Mar 16, 2007
cPanel interface and want to create friendly link to access phpmyadmin. So, here is my questions:
1- Is there a way directly in cPanel to do it?
2- What is the better way to do this: Symbolic link or simple redirection?
View 1 Replies
View Related
Apr 17, 2008
I’m moving my web server from the US to the UK.
Would I be roughly right in assuming that an American customer accessing a UK server will see similar speeds to what I have been getting as a UK customer accessing the same site on a US server?
View 1 Replies
View Related
Nov 30, 2007
I know of one (rapidvps) - are there others?
View 7 Replies
View Related
Mar 20, 2007
Say for example I have a wildcard ssl for *.foo.com this will cover bar.foo.com allright but will it cover zort.bar.foo.com or would i have to have a cert for *.bar.foo.com (or even *.*.foo.com)
View 3 Replies
View Related
Nov 16, 2007
I'm trying to find a tool that will thrash a site to the break point and report where that is. This is for testing sites before they go online so that they don't go online and then drop offline because they can't handle the load.
View 1 Replies
View Related
Jul 9, 2007
Today I found some cstomer on the servers make a link for named it file.txt and link it to other customer php file.
so that customer have the ability to show the other custoer file content when visiting the url because it is a text wile originally it is a php file.
the php file was a config file, so now he know the database password , and because he is in the same server he can use that databse.
the question , how to avoide this prolem in the future?
notes , the SuExec is rnning and the open_basedir protection is enabled, but the problem still exists.
View 12 Replies
View Related
Oct 12, 2009
It has been a long time since I setup named, and I need some help as I'm just not getting it this time around. I'm running named on CentOS under Chroot
IP Space is; 216.201.80.96/28
Gateway is 216.201.80.97
Netmask is 255.255.255.240
Useable IP Space is 216.201.80.100 - 110
named.conf
---
key "rndckey" {
algorithm hmac-md5;
// secret is xx'ed out for this posting
secret "xxxxxxxxxxxxxx";
};
controls {
inet 127.0.0.1 allow { 127.0.0.1; } keys { "rndckey"; };
inet 216.201.80.101 allow { 216.201.80.101; } keys { "rndckey"; };
};
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
recursion yes;
allow-recursion {
127.0.0.1;
216.201.80.101;
};
listen-on {
127.0.0.1;
216.201.80.101;
};
query-source address * port 53;
version "REFUSED";
allow-query {
127.0.0.1;
216.201.80.101;
};
};
server 216.201.80.101 {
keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "cheapdatamining.com" IN {
type master;
file "data/cheapdatamining.com.zone";
allow-update { none; };
};
cheapdatamining.com.zone
--------------------------
$TTL 38400
@ IN SOA ns1.cheapdatamining.com. admin.cheapdatamining.com (
2008090335 ; Serial
10800 ; Refresh after 3 hours
3600 ; Retry after 1 hour
604800 ; Expire after 1 week
86400 ) ; Minimum TTL 1 day
cheapdatamining.com.INNS ns1.cheapdatamining.com.
cheapdatamining.com.INNSns2.cheapdatamining.com.
ns1.cheapdatamining.com.IN A 216.201.80.101
ns2.cheapdatamining.com. IN A 216.201.80.102
resolv.conf on server.
--------------
search cheapdatamining.com
nameserver 216.201.80.101
nameserver 216.201.80.102
Got the domain sitting at godaddy with ns1 and ns2 pointing to 216.201.80.101/102
Everything looks good as far as I can see, local nslookup on the loopback is fine, and iptables are good.
View 0 Replies
View Related
Apr 29, 2007
Is anyone using a chroot apache to offer shared hosting, with CGI, PHP etc... all working fine?
View 2 Replies
View Related
Jan 6, 2009
I am trying to configure chroot for my Apache 2.2.8 + PHP 5.2.8 + MySQL 5.0.51 + CentOS 5.1 using the article at: [url]
I have moved most of the files that are required by Apache to run.
I want to move PHP, MySQL also into chroot jail along with Apache.
How can I know the list of files that are needed by my Apache? It is asking for some of the files in the /usr/bin, /lib, /usr/local/lib, /usr/lib folders.
Somehow, I moved most of the files that are required by Apache to the chroot jail and finally I got httpd: bad user name daemon error.
And in CentOS, I don't have the file /etc/passwords and the command pwd_mkdb.
View 0 Replies
View Related
Jan 23, 2009
I'm using Plesk on my server and its a pain in the @** to create FTP users. So I found this article on adding chrooted FTP users. I successfully added a user, but would like to change the path now, how can I do this?
View 2 Replies
View Related
Jan 2, 2008
When I go through my AWStats under "Links from an external page (other web sites except search engines)" I see several domains that have linked to me. When I visit these sites they are generally porn and drug sites that do not contain a link. Some of the sites redirect you to other sites. When you look up these domain names they are all from Russia.
These sites account for mulitple hits as high as +14.5%. These sites do not represent the content on my sites.
My questions are.
How do I stop this? I have found banning IP addresses does nothing.
How are they doing this?
Can this lead to your site being blacklisted?
View 11 Replies
View Related
Apr 27, 2007
My company hosts our primary website on a Linux box. We link to a third party for term life quotes. The quoting server is going down this weekend and I need to change the links to their page to one on our site. Unfortunately, our content management server is also down while we re-organized our network.
I have SSH access to the live server. Can someone tell me how to search for a specific href in files under the document root and automagically change them all? It would save me the time of finding each one and changing it by hand.
View 5 Replies
View Related
Sep 15, 2007
have a few different list of links in my link section for eg one page i give people links to about 20 or so games company where they can buy from. another has a small list of forums people can join eg, another list of places that i shop at.i do not have any reciprocal links with any of them and only included them cos i thought it would be handy for my readers. now can i leave the links or should i take it all off because all these external links would not help in my pr? there seems to be so many conflicting opinions
how many external links can you have in a page before it's bad for you.
idea to just use robots.txt on all these pages to be on the safe side?
View 2 Replies
View Related
Jun 18, 2009
I have an SSL cert installed to have a secure commerce area. Some of the pages have external links to non-secure sites like say [url]The padlock icon breaks and warns that there's unauthorized content. The hosting provider says it's because the external links need to be https links. Obviously that can't be done to a non-secure external site.
So the question is: do external http links break security on a secure https page? If so, is there a work around other than removing external links?
View 14 Replies
View Related
Jul 3, 2007
I'm creating a site similar to slickdeals & bensbargains and I'm trying to find a script that I can integrate into my text editor (tinymce.moxicode) that will create a tiny url as well as the redirect page automatically using php & mysql.
Looking at the following mouseover link from slickdeals:
slickdeals dot net/?pno=6999&lno=1&afscr=1
where it always starts with slickdeals dot net/
?pno=6999 each deal added gets a +1 to this number. The next deal would be 7000.
&lno=1 each link within a particular deal. Where the first link to the deal is lno=1, the next link (rebate) would be lno=2, etc.
&afscr=1 I'm not sure what this is for, I moused over a bunch of their links and they are all =1.
But the bottom line effect is that when you click on one of their links, it brings you momentarily to a blank page and then bestbuy dot com/etc/etc/etc comes up. The user never sees the funky affiliate link.
The best I've found so far is gentlesource dot com/short-url-script/
View 2 Replies
View Related
Mar 19, 2008
One of the machines we have at LW crashed 2 weeks ago.
we use relative links for pages and images throughout our site, but now in the new machine, every relative link request gets sent to HTTPS instead of a regular HTTP request.
View 1 Replies
View Related
Apr 28, 2008
I have to redirect all the links from http to https.
IS there some setting on IIS.
SSL is installed on server.
View 2 Replies
View Related
Aug 29, 2007
tried to download files from http links to my ftp server. i looked all over the forums but could not find any services. google spitted out this one. [url]Well, it really does help to upload http links to an ftp server and move files from one ftp server to another. does anyone know other services or free scripts that help to do this?
View 0 Replies
View Related
Aug 22, 2014
A dynamic php+mySQL site was converted to a static html by mirroring (wget). The result was that each page became an html file named some-page.html
View 4 Replies
View Related
Mar 16, 2013
In my personal website at URL.... I have the top like 'index.php?pg=profile', 'index.php?pg=home' or 'index.php' (without any querystring), 'index.php?pg=diary' etc. I am looking to see if I can have .htaccess file which can make me create links like
index.php/
index.php
index.php/home
index.php/profile
index.php/diary
write an .htaccess for the same?
View 1 Replies
View Related