vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   please help me (https://vborg.vbsupport.ru/showthread.php?t=194603)

sjb 10-26-2008 07:08 AM

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
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/"

sjb 10-26-2008 12:35 PM

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');

punchbowl 10-26-2008 02:00 PM

set openbasedir none in vhost.conf

snakes1100 10-26-2008 02:22 PM

Quote:

Originally Posted by punchbowl (Post 1653094)
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.

sjb 10-27-2008 03:50 AM

Quote:

Originally Posted by snakes1100 (Post 1653109)
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.

sjb 10-27-2008 11:44 AM

Quote:

Originally Posted by snakes1100 (Post 1653600)
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.


All times are GMT. The time now is 07:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00998 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete