Plesk 12.x / Linux :: Define Path In Chroot
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
ADVERTISEMENT
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
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
Jan 20, 2015
I define expiration date for my package in my domain and after that date my domain still active. I think this problem related to statistic. When I run this command manullay i'v got the error.
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=mydomain.com
And the error
WARNING during statistics_collector execution: : statistics[12391]: Executing logs preparation...
PHP Notice: Zend_Db_Adapter_Pdo_Abstract::closeConnection(): send of 5 bytes failed with errno=32 Broken pipe; File: /usr/local/psa/admin/externals/Zend/Db/Adapter/Pdo/Abstract.php, Line: 166
View 5 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
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
View Related
Jul 11, 2014
After the upgrade of our Plesk installation from 9.5x to 11.5.30Everything works ok (sites,sites with databases, Plesk etc)but when I go to Home>Tools & Settings> Backup Manager.I see errors on every daily backup I have on schedule:
The backup Plesk_Daily_Full_Backup_1407060112.tar has completed with warnings. (View the details) Close this message
Error:mysql "myuser_drupal"
Unable to define superuser password for mysql server on localhost
Error:mysql "myuser_drupal"
Unable to get list of db servers (ErrorCode: 1, STDOUT.
Error:mysql "myuser_wp_eng"
Unable to define superuser password for mysql server on localhost
View 1 Replies
View Related
Nov 5, 2014
I have installed the Wordpress application. The wordpress url is "server.com/wordpress", but I want to change it to something like "server.com/myblog".
In Plesk, the installation path cannot be changed (at least, it is not under "Change Settings").
Changing the Wordpress installation itself is not that difficult (renaming the folder in httpdocs and changing the siteurl and home parameter in the database), however, in Plesk still the old installation path is shown, and the Plesk interface to Wordpress obviously does not work any more.
How can I change the Wordpress installation path in Plesk?
Version Parallels Plesk v12.0.18_build1200140606.15 os_Ubuntu 12.04
OS Ubuntu 12.04.5 LTS
View 1 Replies
View Related
Jul 17, 2014
On server are many Wordpress installations after scan all these were added however about 90% have this tool-tip message "A WordPress installation was previously detected at this path, but it is not operating properly now." How to correct and manage these installations
View 4 Replies
View Related
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
Feb 18, 2015
When a PHP script is sending a mail, there is added an return path in mail header. How to change that mail address in return path?
We are using Postfix and CentOS 6.5
Plesk is setting the mail address of the owner of the hosting account. When changing the owners mail address in Plesk, the return path is still the same and is not updated...
View 3 Replies
View Related
Mar 3, 2015
I am having problems with two accounts, I get the following errors:
Code:
Failed to copy files storage to destination path. stderr: filemng: Cannot open destination file '/var/www/vhosts/domain.tld/httpdocs/index.html.Chn3rn' System error 122: Disk quota exceeded stdout: filemng: Cannot open destination file '/var/www/vhosts/domain.tld/httpdocs/index.html.Chn3rn' System error 122: Disk quota exceeded
I have run the command
Code:
quotacheck -avugfm
And the output from the command
Code:
df -i
is:
Code:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vzfs 20000000 1542375 18457625 8% /
/dev/simfs 20000000 1542375 18457625 8% /tmp
/dev/simfs 20000000 1542375 18457625 8% /var/tmp
none 1415577 113 1415464 1% /dev
I am at a loss, I don't know what else to try.
View 1 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
Jun 8, 2007
What would be the full path to the user's directory?
Cpanel's is:
/home/user/public_html
View 3 Replies
View Related
Jul 20, 2007
What is the path for DNS zone files located in plesk system?
View 4 Replies
View Related
Jul 9, 2015
Have the following error message:
ProtDir_IIS::update() failed: Add Protected Directory failed: columns siteId, path are not unique (Error code 1)
View 1 Replies
View Related
May 27, 2009
what do you consider unlimited? Is unlimited simply a marketing term? I've seen a few host go from offer 1000mb to just listing it as unlimited.
I could understand that after some time a person may become confused once they start using too many resources but was the "unlimited" just a trend other hosting companies have followed? or do you congregate somewhere and decided, hey we should do unlimited, lol.
I'm curious because I see these "unlimited" plans a lot, as a consumer I'm really starting to focus more on plans that do listed in numbers what you get as appose to just seeing the word unlimited.
View 14 Replies
View Related
Oct 25, 2009
I saw some sample in iptables like 124.228.0.0/16. I'd like to know what means about '/16' here?
View 1 Replies
View Related
Mar 18, 2015
I changed Machine Name but myLittleAdmin Object Path shows my old machine name.How can update this name?
View 3 Replies
View Related
May 21, 2008
I have apache set up and it works fine from the DocumentRoot when I access the server via the IP. I've set up the following virtualhost
<VirtualHost *:80> .....
View 4 Replies
View Related
Mar 21, 2007
I'm currently running Pootle on www.example.com:8000 and I'd like to be able to access it from pootle.example.com but Pootle has its own python server. I use Apache. How could I do that?
View 4 Replies
View Related
Mar 28, 2014
I am writing a rewrite rules using mod_rewrite module. I have the same data repeating all over the rules that I would like to replace with variable and set variable once at the top of rules then use variable in the rest of rules. Then if I need to add another IP address I would just add additional IP address to the variable instead like now need to change several rules.
For example I have IP addresses that I would like to set as a variable.
Now rules are the following (simplified) in httpd.conf:
RewriteEngine Off
RewriteCond %{REMOTE_ADDR} (192.168.5.20|192.168.7.15|10.10.20.50
View 1 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
Jul 31, 2008
As my clients' needs expand, they're asking for chroot ssh/sftp setup. I'm currently on a dedicated Linux setup but don't really have the time to set up a whole new box with full virtualization or investigate a full chroot solution (baby on the way), and to be honest it would be less hassle to move to a new provider than worry about down time with sites.
What I'm looking for:
- linux hosting
- hosting for 30+ accounts, some with several domains
- at least 6 IP addresses for SSL certs
- each account in a full chroot environment (ssh/sftp/ftp) so they can't poke around each others' files, or each account set up in a virtual machine setup (ie: openvz)
- maildir
- spamassassin
- php 5, mysql, perl 5.8.8
- suexec apache would be nice
View 3 Replies
View Related
Jan 30, 2007
SSH language, just know the commands that i use often.
my hoster, as he said did upgrade 2 days ago, [had an upgrade to apache 2], and some SSH command that i use before this, now don't work
for example, i had php script, which i run from ssh
[php go.php]
which don't work now ... got an error:
Code:
-bash: php: command not found
so my question is how to find php right path ?
Code:
$ whereis php
output:
Code:
Code:
php: /usr/src/php-5.2.0/php5.spec /usr/src/php-5.2.0/php.ini-dist /usr/src/php-5.2.0/php.ini-recommended /usr/src/php-5.2.0/php.gif /usr/local/bin/php /usr/local/lib/php.ini /usr/local/lib/php
as i understand, path is /usr/local/lib/php
after this try to type
Code:
/usr/local/lib/php go.php
output
Code:
/usr/local/lib/php: is a directory
btw
when i type
echo $PATH
get
Code:
/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/home/MYUSERNAME/bin
View 6 Replies
View Related
Nov 13, 2008
I'm trying to transfer a cms from 1 site to another and I don't know the full ftp path.. I'm looking for the "/public_html/username/blank/blank/sitefolder" or something similar.. How do I figure this out?
View 2 Replies
View Related
Jan 13, 2007
how can i find out my site physical path
i tried following but blank page
[url]
View 2 Replies
View Related
Jul 10, 2007
I'm installing a script that's suppose to act as a payment gateway/store. The script requires the virtual path to the secured directory holding the products and everything I've tried doesn't work! It should be something like /home/username/public_html/secured where username is replaced with my username. I'm hosting with godaddy and have tried just about everything on this page: help.godaddyDOTCOM/article.php?article_id=1360 without any luck. Any ideas or experience with this? I'm on the economy plan with godaddy.
View 0 Replies
View Related