Plesk und open_basedir trotz Anleitung funktioniert es nicht?

Plesk, Confixx, Froxlor, SysCP, SeCoTo, IspCP, etc.
Post Reply
mcfly
Posts: 92
Joined: 2005-09-20 17:10
Contact:
 

Plesk und open_basedir trotz Anleitung funktioniert es nicht?

Post by mcfly »

Hi an alle,

ich bin mittlerweile echt am verzweifeln. Nun versuche ich schon seid zwei Tagen mit open_basedir einzustellen aber es klappt einfach nicht.

Also eigentlich habe ich alles nach http://enarion.net/web/plesk/subdomains ... r/?lang=de gemacht nur klappts einfach nicht.

Über die phpinfo bekomme ich diese Zeile
open_basedir /srv/www/vhosts/domain.de/httpdocs:/srv/www/vhosts/domain.de/subdomains/statics/httpdocs:/tmp no value
Die scripte die ich nutze zeigen leider ein paar Fehlermeldungen
Warning: include(): open_basedir restriction in effect. File(/srv/www/vhosts/domain.de/subdomains/statics/httpdocs/php/globalvars/globalvars.class.php) is not within the allowed path(s): (/srv/www/vhosts/domain.de/subdomains/demos/httpdocs:/tmp) in /srv/www/vhosts/domain.de/subdomains/demos/httpdocs/rsuploader/index.php on line 13 Warning: include(/srv/www/vhosts/domain.de/subdomains/statics/httpdocs/php/globalvars/globalvars.class.php): failed to open stream: Operation not permitted in /srv/www/vhosts/domain.de/subdomains/demos/httpdocs/rsuploader/index.php on line 13 Warning: include(): open_basedir restriction in effect. File(/srv/www/vhosts/domain.de/subdomains/statics/httpdocs/php/globalvars/globalvars.class.php) is not within the allowed path(s): (/srv/www/vhosts/domain.de/subdomains/demos/httpdocs:/tmp) in /srv/www/vhosts/domain.de/subdomains/demos/httpdocs/rsuploader/index.php on line 13 Warning: include(/srv/www/vhosts/domain.de/subdomains/statics/httpdocs/php/globalvars/globalvars.class.php): failed to open stream: Operation not permitted in /srv/www/vhosts/domain.de/subdomains/demos/httpdocs/rsuploader/index.php on line 13 Warning: include(): Failed opening '/srv/www/vhosts/domain.de/subdomains/statics/httpdocs/php/globalvars/globalvars.class.php' for inclusion (include_path='.:.:.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/vhosts/domain.de/subdomains/demos/httpdocs/rsuploader/index.php on line 13 Fatal error: Class 'globalVars' not found in /srv/www/vhosts/domain.de/subdomains/demos/httpdocs/rsuploader/index.php on line 15
Ich nutze Suse 11 und Plesk 8.6 mit php5 auf dem Server



Ich hoffe ihr könnt mir weiterhelfen denn ich weiß keinen Rat mehr
mcfly
Posts: 92
Joined: 2005-09-20 17:10
Contact:
 

Re: Plesk und open_basedir trotz Anleitung funktioniert es nicht?

Post by mcfly »

Also ich dachte wenn der ordner httpdocs frei ist sind auch die unterordner frei. War das eine falsche Annahme?

Es passiert an den Fehlermeldungen leider nichts.

In der php.ini würde ich nix ändern das weiß ich auch mit den vhosts
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Plesk und open_basedir trotz Anleitung funktioniert es nicht?

Post by Joe User »

subdomains/statics != subdomains/demos
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
mcfly
Posts: 92
Joined: 2005-09-20 17:10
Contact:
 

Re: Plesk und open_basedir trotz Anleitung funktioniert es nicht?

Post by mcfly »

ich wollte von der subdomain demos und von der hauptdomain auf die statics drauf zugreifen können und das geschieht doch per open_basedir oder bin ich da nun auf dem falschen Wege?
mcfly
Posts: 92
Joined: 2005-09-20 17:10
Contact:
 

Re: Plesk und open_basedir trotz Anleitung funktioniert es nicht?

Post by mcfly »

Achso ich muß nen ordner im dokumentroot der domain erstellen für jede subdomain

bespielsweise subdomain/demos/httpdocs und subdomain/statics/httpdocs

und dann in der vhost über dokumentroot die subdomain auf den ordner in der hauptdomain ändern.

DocumentRoot /srv/www/vhosts/domain.de/httpdocs/subdomains/demos/httpdocs

und

DocumentRoot /srv/www/vhosts/domain.de/httpdocs/subdomains/statics/httpdocs

Stimmt das so?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Plesk und open_basedir trotz Anleitung funktioniert es nicht?

Post by Joe User »

charlymcfly wrote:ich wollte von der subdomain demos und von der hauptdomain auf die statics drauf zugreifen können und das geschieht doch per open_basedir oder bin ich da nun auf dem falschen Wege?
Dann musst Du open_basedir entweder vollständig deaktivieren oder entsprechend erweitern. Die PHP-Doku hilft...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Plesk und open_basedir trotz Anleitung funktioniert es nicht?

Post by Joe User »

matzewe01 wrote:
charlymcfly wrote:ich wollte von der subdomain demos und von der hauptdomain auf die statics drauf zugreifen können und das geschieht doch per open_basedir oder bin ich da nun auf dem falschen Wege?
Das ist falsch, DocumentRoot heisst hierbei das Zauberwort.
Mit dem DocumentRoot hat es nichts zu tun...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
mcfly
Posts: 92
Joined: 2005-09-20 17:10
Contact:
 

Re: Plesk und open_basedir trotz Anleitung funktioniert es nicht?

Post by mcfly »

ja ich möchte von der hauptdomain und der subdomain auf die statics subdomain mit php drauf zugreifen
mcfly
Posts: 92
Joined: 2005-09-20 17:10
Contact:
 

Re: Plesk und open_basedir trotz Anleitung funktioniert es nicht?

Post by mcfly »

Würde es denn nicht einfacher sein das Dokumentroot in den httpsordner der hauptdomain zu legen? Das würde doch auch mein Problem beheben oder etwa nicht?

mittlerweile weiß ich nun garnicht mehr weiter mit open_basedir und was daran falsch ist
Post Reply