Jump to content
php.lv forumi

open_basedir restriction in effect


capsx

Recommended Posts

laba nakts :)

 

man te interesanta kļūda lec vislaik ārā, un es nevar saprast kāda vella pēc ...

 

failā xml.php 14 rindiņa ir:

include('/srv/www/v.hosts/xxx/yyy.lv/asd/db.php');

 

setots ir:

php_admin_value open_basedir /tmp/:/srv/www/v.hosts/xxx/yyy.lv/

 

un errors bļaun par to include rindiņu:

PHP Warning: include(): open_basedir restriction in effect. File() is not within the allowed path(s): (/tmp/:/srv/www/v.host/xxx/yyy.lv/) in /srv/www/v.hosts/xxx/yyy.lv/asd/xml.php on line 14

 

tas jau ka File() vietā bijā jāuzrādās reālam failam ...

un pamanīju arī ka pilns php errors logs ir ar šitādiem File() is not within the allowed path(s): neskaitot šo gadījumu

 

distro ir OpenSuSe 12.1 (kaut kā ar šito 12.1 visādi gļuki uzpeld) ar Apache/2.2.21 PHP 5.3.8 (cli)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...