Jump to content

open_basedir seems to block /tmp


Shocker

Recommended Posts

Hi,

 

I get this error message, when trying to execute ftp_nlist():

 

Warning: ftp_nlist() [function.ftp-nlist]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/kunden/webs/nfsp/:/tmp/) in /var/kunden/webs/nfsp/ftpbrowser.class.php on line 47

 

Warning: ftp_nlist() [function.ftp-nlist]: Unable to create temporary file. Check permissions in temporary files directory. in /var/kunden/webs/nfsp/ftpbrowser.class.php on line 47

 

This is strange, because open_basedir is set with the following at the vhost in Apache, so /tmp should be allowed...

 

  php_admin_value open_basedir "/var/kunden/webs/nfsp/:/tmp/"
  php_admin_flag safe_mode On 

 

Does anyone know why this doesn't work?

Link to comment
https://forums.phpfreaks.com/topic/44623-open_basedir-seems-to-block-tmp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.