vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   welcome/login panel on non-vB page (https://vborg.vbsupport.ru/showthread.php?t=37134)

Airwork 10-21-2003 08:19 PM

This is really the script I've been looking for, it looks just great.
Unfortunately, I can't get it to work. Tried everything, looked everywhere and am now desperate. Hope someone knows a brilliant solution to this:

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/lib/php/webwelcome.php) is not within the allowed path(s): (/www/htdocs/airwork) in /www/htdocs/airwork/test.php on line 17

Warning: main(/usr/local/lib/php/webwelcome.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/airwork/test.php on line 17

Warning: main() [function.main]: Failed opening '/usr/local/lib/php/webwelcome.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/htdocs/airwork/test.php on line 17

You can find it at http://www.airwork.nl/test.php

I contacted my host, but they say it has to do with my path, which I should set to usr/local/lip/php. I did as instructed, but still get the same error.

Anyone???

danchuee 10-21-2003 11:59 PM

Quote:

Originally Posted by Airwork
This is really the script I've been looking for, it looks just great.
Unfortunately, I can't get it to work. Tried everything, looked everywhere and am now desperate. Hope someone knows a brilliant solution to this:

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/lib/php/webwelcome.php) is not within the allowed path(s): (/www/htdocs/airwork) in /www/htdocs/airwork/test.php on line 17

Warning: main(/usr/local/lib/php/webwelcome.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/airwork/test.php on line 17

Warning: main() [function.main]: Failed opening '/usr/local/lib/php/webwelcome.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/htdocs/airwork/test.php on line 17

You can find it at http://www.airwork.nl/test.php

I contacted my host, but they say it has to do with my path, which I should set to usr/local/lip/php. I did as instructed, but still get the same error.

Anyone???

You may want to contact your host again. It is a server issue. The admistrator is restricting access to specific directories. Usually in a hosting environment, they only allow you to access your directories. This is a security issue. Try placing the file within a directory you know works. Then try it.

Also you can call them to make sure that you can create more folders within that dir and that the config of the server os allows it.

Below is some info about what open_basedir is all about.

Quote:

open_basedir string
Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.

When a script tries to open a file with, for example, fopen() or gzopen(), the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it's not possible to avoid this restriction with a symlink.

The special value . indicates that the directory in which the script is stored will be used as base-directory.

Under Windows, separate the directories with a semicolon. On all other systems, separate the directories with a colon. As an Apache module, open_basedir paths from parent directories are now automatically inherited.

The restriction specified with open_basedir is actually a prefix, not a directory name. This means that "open_basedir = /dir/incl" also allows access to "/dir/include" and "/dir/incls" if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: "open_basedir = /dir/incl/"

Airwork 10-22-2003 06:15 PM

Quote:

Originally Posted by danchuee
You may want to contact your host again. It is a server issue. The admistrator is restricting access to specific directories. Usually in a hosting environment, they only allow you to access your directories. This is a security issue. Try placing the file within a directory you know works. Then try it.

Also you can call them to make sure that you can create more folders within that dir and that the config of the server os allows it.

Thank you danchuee. I have mailed my host your reply, but they still say it's the paths, because when a file is included in PHP it should state the whole path. As a service, they altered the paths for me in webwelcome.php and in the testpage (http://www.airwork.nl/test.php). So these should be allright this way.
On the upside the result is that I don't get errormessages anymore, on the downside it doesn't show anything at all...
Does that mean that the PHP problem is solved but that I did something wrong in other pages, perhaps the templates or somewhere else?

Airwork 10-23-2003 08:03 PM

Anyone please help? I really would like this feature on my website, I tried to find something like this for a long time. It's pretty frustrating that I can't get it to work.

Diana

Airwork 11-15-2003 09:53 PM

Guess not...

Darren Lewis 11-15-2003 10:04 PM

Airwork, the page http://www.airwork.nl/test.php is showing the login box. What's the problem you're having?

Airwork 11-15-2003 10:09 PM

Sorry Darren, just minutes after my previous message I worked through the templates again and now it works. I am very, very happy and a quite embaressed that the solution was so simple in the end...

Thanks for this great hack!

Darren Lewis 11-15-2003 10:12 PM

Great. Glad it's working OK for you :)

Pikok 11-23-2003 04:07 PM

Hi, i'm getting this error on the bottom of my main page after fully installing and configuring this hack:
Warning: mysql_query(): 17 is not a valid MySQL-Link resource in /home/hosting/host1009/forum/admin/db_mysql.php on line 93



There seems to have been a slight problem with the FFIntelligence headquarters database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

i don't understand why i'm getting this error,...
could it be becos i use vbb 2.3.2?
the login box works perfect...i just need to get that error out of the way on my main page
any thoughts?

Darren Lewis 11-23-2003 04:12 PM

What other scripts are you running on your page? Are they all using the same database? Have you got a link to the page causing the problem?


All times are GMT. The time now is 12:19 AM.

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.01196 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete