PDA

View Full Version : How can i enable NIX Load with Plesk


Tom Dooley
Sun 16th Dec '01, 12:19am
Hi,
how can i enable in Plesk that it let read me loadavg, that i can use Nix Load in Vbulletin ?

I get this errors when i enable it
Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/.....

Warning: fopen("/proc/loadavg","r") - Operation not permitted in /usr/local/psa/home/vhosts/.....

Warning: Supplied argument is not a valid File-Handle resource in /usr/local/psa/home/vhosts/.......

JamesUS
Sun 16th Dec '01, 3:38am
You would need to edit your php.ini file manually and change the open_basedir setting to off. I'm not sure if Plesk would let you do that though.

Tom Dooley
Sun 16th Dec '01, 10:19am
there is no open_basedir in php.ini, even in an other server from me without plesk, but there Nix Load runs fine. Should i just add in php.ini open_basedir=off ?

I tried to add open_basedir=off in php.ini but it did not help still the same error, any other help ?

Thanks

JamesUS
Sun 16th Dec '01, 4:44pm
try

open_basedir = /

I'm no expert at this sort of stuff so if that doesn't work then I would wait for one of our resident experts Chris or George to come along.

Make sure you restart apache after adding that line.

eva2000
Sun 16th Dec '01, 4:50pm
don't know much about plesk but i read from the plesk forums that

'open_basedir' variable is set in the httpd.include file. i.e.

<IfModule mod_php4.c>
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/DOMAIN.com/httpdocs"
</IfModule>

not sure how to correct it.. might try http://forum.plesk.com

eva2000
Sun 16th Dec '01, 4:56pm
found solution i think last 2 posts

http://forum.plesk.com/showthread.php?s=&threadid=1157&highlight=openbasedir


by PaulC

Create a file

/usr/local/psa/home/vhosts/domain.com/conf/vhost.conf

In it, put this

<Directory /usr/local/psa/home/vhosts/domain.com/httpdocs>
php_admin_value open_basedir ".:/usr/local/psa/home/vhosts/domain.com/httpdocs:/proc
</Directory>

Then run

/usr/local/psa/admin/bin/my_apci_rst

domain.com = yourdomain

Tom Dooley
Mon 17th Dec '01, 2:56pm
get mad with plesk :( this did not work either, after i made this apache did not restart, plesk is nice when ou do not need to change anything, maybe other idea´s

eva2000
Mon 17th Dec '01, 2:58pm
Originally posted by Tom Dooley
get mad with plesk :( this did not work either, after i made this apache did not restart, plesk is nice when ou do not need to change anything, maybe other idea´s hmm tried asking at plesk forum ?

Tom Dooley
Mon 17th Dec '01, 3:31pm
shure, http://forum.plesk.com/showthread.php?s=&threadid=1157&highlight=openbasedir i´m the topic starter over there, but i think here are more expirience people

Dave#
Tue 18th Dec '01, 6:32pm
Plesk is evil

Tom Dooley
Sun 23rd Dec '01, 3:32pm
Hi,
i found out how it easily works i edited the httpd.include and removed the php_admin_value open_basedir line now it works :)

eva2000
Sun 23rd Dec '01, 11:48pm
Originally posted by Tom Dooley
Hi,
i found out how it easily works i edited the httpd.include and removed the php_admin_value open_basedir line now it works :) wow easy enough although it can be a security risk if you allow others ftp access to that site and upload scripts which look beyond your site's root i.e. into /etc