[BlueOnyx:25498] Re: Open_basedir error

Michael Stauber mstauber at blueonyx.it
Wed Jul 6 21:36:41 -05 2022


Hi Colin,

> PHP Warning:  unlink(): open_basedir restriction in effect. File() is 
> not within the allowed path(s): 
> (/var/lib/php/session/:/usr/sausalito/configs/php/:/tmp/:/home/solarspeed/php-5.4/share/pear:/home/.sites/28/site1/) 
> in /home/.sites/28/site1/web/1/phserial/remove-record.php on line 23, 
> referer:
> 
> The file in question is a PDF that is written to the phserial folder 
> which it does correctly and is then supposed to delete it.
> 
> // DELETE PDF
> 
> unlink($row[file]);


Basically what Ken Marcus said: Find out where $row[file] points to. 
Most likely that is outside the allowed path.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list