我有一個簡單的cms,它是在Codeigniter框架中編寫的。 它在許多項目中工作得很好,在我的本地機器上仍能正常工作。 但是當我把我最近的網站在線(服務器PHP版本5.5.17),我嘗試上傳圖片,我得到這個錯誤:Codeigniter - 圖片上傳 - open_basedir限制生效
Message: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.:/var/www/vhosts/web-test-host.tk:/tmp:/usr/share/php:/usr/share/pear:/var/lib/php/session) Filename: libraries/Image_lib.php
我已經嘗試了一切,權限都設置了,我甚至將open_basedir值設置爲none,但它仍然不想上傳圖像,也不會獲取圖像的名稱。
服務器php版本是5.5.17。