The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
please help me
hi to all
i have this problem in Upload File from a URL HTML Code:
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 |
#2
|
||||
|
||||
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/" |
#3
|
|||
|
|||
sr this line 275 i cant fixed this please fixed this for me thanku
Code:
$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'); |
#4
|
|||
|
|||
set openbasedir none in vhost.conf
|
#5
|
|||
|
|||
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. |
#6
|
|||
|
|||
Quote:
plz help me :erm: |
#7
|
|||
|
|||
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. |
#8
|
|||
|
|||
Quote:
i love u tnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:up::up::up ::up::up::up: thankuuuuuuuuuuuuuuuu sr:up::up::up: |
#9
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|