mam taki błąd na stronie z lms: Warning: file(): open_basedir restriction in effect. File(/etc/lms/lms.ini) is not within the allowed path(s): ...... Warning: file(/etc/lms/lms.ini): failed to open stream: Operation not permitted in /var/xxxxxxxxxxxxxxxxxxxxxxxxxxx/index.php on line 40
W virtualhoscie ustawiasz ta linijke i restart apacha
php_admin_value open_basedir /etc/lms/
Niestety dalej mam to sam
Zapewne ustawione to masz w php.ini
Można w php.ini ale wtedy jest dla wszystkich virtualnych hostow dostep do tego katalogu. Ja podalem przykład jak robi się to dla pojedynczego virtualhosta. 1) wersja z php W php.ini ; open_basedir = zmieniamy na open_basedir = /etc/lms/ 2) wersja z konfigiem apache I virtualhostem <VirtualHost xx.xx.xx.xx:80> ServerName jakishost.pl:80 ServerAdmin webmaster@jakishost.pl DocumentRoot /var/www/host ..... php_admin_value open_basedir /etc/lms/ ... </VirtualHost> Prościej już chyba nie można. Pozdr. !DSPAM:48012fc19332037086813!