View Full Version : please help me
hi to all
i have this problem in Upload File from a URL
Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/forum3at:/usr/lib/php:/usr/local/lib/php:/tmp) in [path]/includes/class_upload.php on line 275
https://vborg.vbsupport.ru/external/2008/10/14.jpg
Angel-Wings
10-26-2008, 10:00 AM
Says everything already ;)
Check your phpinfo() screen for:
upload_tmp_dir
where temporary files are stored and if that directory is configured in "open_basedir"
If not - either change the upload_tmp_dir or set it to /tmp or maybe another directory where PHP can write files and change open_basedir as well to this directory while leaving the rest.
As example:
upload_tmp_dir = /var/db/apache/uploads
open_basedir = ".:/home/forum3at:/usr/lib/php:/usr/local/lib/php:/tmp:/var/db/apache/uploads/"
sr this line 275 i cant fixed this please fixed this for me thanku
$this->upload['location'] = $this->registry->userinfo['permissions']['adminpermissions'] & $this->registry->bf_ugp_adminpermissions['cancontrolpanel'] ? tempnam(ini_get('upload_tmp_dir'), 'vbupload') : @tempnam(ini_get('upload_tmp_dir'), 'vbupload');
punchbowl
10-26-2008, 02:00 PM
set openbasedir none in vhost.conf
snakes1100
10-26-2008, 02:22 PM
set openbasedir none in vhost.conf
Not all hosts have "vhost.conf", that dont apply to everyone.
@sjb
In your public_html/root directory, create a php.ini file and enter this into it, if your host allows over ride for php settings by a vhost customer, enter this in the file and resave.
open_basedir = Off
Then save the file to the server.
Not all hosts have "vhost.conf", that dont apply to everyone.
@sjb
In your public_html/root directory, create a php.ini file and enter this into it, if your host allows over ride for php settings by a vhost customer, enter this in the file and resave.
open_basedir = Off
Then save the file to the server.
sr i test this notworking :(
plz help me :erm::(
snakes1100
10-27-2008, 08:27 AM
1. If this is a dedicated/vps server, disable open_basdir in the main php.ini (Typically /etc/php.ini)file and restart apache.
2. If this is a vhosted account, the host will most liekly not turn it off for you.
3. Create a new folder in /home/forum3at named tmp (/home/forum3at/tmp)
4. chmod /home/forum3at/tmp and set it to 0777 or 1777
5. In your admincp --> vBulletin Options -> Server Settings and Optimization Options --> Safe Mode Upload Enabled to YES, in the box below that, put in the following:
/home/forum3at/tmp
6. Save and try a new upload.
1. If this is a dedicated/vps server, disable open_basdir in the main php.ini (Typically /etc/php.ini)file and restart apache.
2. If this is a vhosted account, the host will most liekly not turn it off for you.
3. Create a new folder in /home/forum3at named tmp (/home/forum3at/tmp)
4. chmod /home/forum3at/tmp and set it to 0777 or 1777
5. In your admincp --> vBulletin Options -> Server Settings and Optimization Options --> Safe Mode Upload Enabled to YES, in the box below that, put in the following:
/home/forum3at/tmp
6. Save and try a new upload.
workkkkkkkkkkkkkkkkkkkkkkkkkkkkk tnxxxxxxxxxxxxxxxxxxxxx
i love u tnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:up::up::up ::up::up::up:
thankuuuuuuuuuuuuuuuu sr;);):up::up::up:
snakes1100
10-27-2008, 11:50 AM
I appreciate the love, but i may not be your type, anyways your welcome.
Please post up what part worked, so others can have stuff to research with on the site to help them solve their problems as well.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.