Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-26-2008, 07:08 AM
sjb sjb is offline
 
Join Date: Feb 2007
Location: IRAN
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 10-26-2008, 10:00 AM
Angel-Wings's Avatar
Angel-Wings Angel-Wings is offline
 
Join Date: Sep 2007
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/"
Reply With Quote
  #3  
Old 10-26-2008, 12:35 PM
sjb sjb is offline
 
Join Date: Feb 2007
Location: IRAN
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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');
Reply With Quote
  #4  
Old 10-26-2008, 02:00 PM
punchbowl punchbowl is offline
 
Join Date: Nov 2006
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

set openbasedir none in vhost.conf
Reply With Quote
  #5  
Old 10-26-2008, 02:22 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by punchbowl View Post
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.
Reply With Quote
  #6  
Old 10-27-2008, 03:50 AM
sjb sjb is offline
 
Join Date: Feb 2007
Location: IRAN
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
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:
Reply With Quote
  #7  
Old 10-27-2008, 08:27 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 10-27-2008, 11:44 AM
sjb sjb is offline
 
Join Date: Feb 2007
Location: IRAN
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
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:
Reply With Quote
  #9  
Old 10-27-2008, 11:50 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04772 seconds
  • Memory Usage 2,245KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete