open_basedir restriction in effect

Pagina: 1
Acties:

  • Erhnam
  • Registratie: Januari 2000
  • Laatst online: 08-02 21:31

Erhnam

het Hardware-Hondje :]

Topicstarter
Op mijn plesk installatie wil ik cacti installeren om vervolgens de statistieken uit te lezen. Na een volledige installatie zie ik de volgende foutmelding:

Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/snmpget) is not within the allowed path(s): (/stats/httpdocs:/tmp) in /stats/httpdocs/lib/snmp.php on line 205

Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/snmpget) is not within the allowed path(s): (/stats/httpdocs:/tmp) in /stats/httpdocs/lib/snmp.php on line 205

Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/snmpget) is not within the allowed path(s): (/stats/httpdocs:/tmp) in /stats/httpdocs/lib/snmp.php on line 205


Na wat gezocht te hebben lijkt het probleem duidelijk. De directory /stats/httpdocs/ heeft geen rechten tot de verschillende locaties. Nu zou ik graag een uitzondering willen maken voor deze directory, namelijk dat hij wel de rechten heeft tot /usr/bin/snmpget , /usr/bin/snmpget , etc. Weet iemand hoe je dit configureerd?

http://www.xbmcfreak.nl/


  • DR
  • Registratie: December 2000
  • Niet online

DR

code:
1
php_admin_value open_basedir  "/stat/httpdocs:/usr/bin"


Zou moeten werken afaik ;)

  • Erhnam
  • Registratie: Januari 2000
  • Laatst online: 08-02 21:31

Erhnam

het Hardware-Hondje :]

Topicstarter
Nee helaas. Heb de regel toegevoegd aan het php.ini bestand, httpd gerestart maar helaas... Zou dit er ook nog wat mee te maken kunnen hebben:

File(/usr/bin/snmpget) is not within the allowed path(s):

http://www.xbmcfreak.nl/


  • Eijkb
  • Registratie: Februari 2003
  • Laatst online: 10-02 10:04

Eijkb

Zo.

Je kunt dat ook in de /conf.vhost.conf zetten van het domein waarop je die html pagina's gaat zetten. Echter, Plesk staat bekend om 1000den bugs en ik geloof dat het opnemen van paths in php_admin_value open_basedir er 1 van is :D Je kunt ook proberen om Safemode uit te zetten voor je domein, dat wil heel soms nog wel eens helpen.

.


  • BoXie
  • Registratie: Juni 2001
  • Laatst online: 30-03-2023
1000den bugs valt ook wel mee.

Plesk heeft per virtualhost een include bestand voor custom directives. Namelijk /home/httpd/vhosts/<domainnaam>/conf/vhost.conf en vhost_ssl.conf

Daarin kun je je eigen directives opnemen of die van Plesk herdefiniëren. Vergeet ook daarna niet dat commando uit te voeren !

Lees de manual :

http://download1.sw-soft....ns-guide-html/apas02.html

[ Voor 32% gewijzigd door BoXie op 09-08-2005 20:59 ]