View previous topic :: View next topic |
Author |
Message |
Stevi-O Smarty n00b
Joined: 03 Jan 2004 Posts: 4 Location: Wiesbaden, Hesse, Germany
|
Posted: Sat Jan 03, 2004 6:57 pm Post subject: Problems concerning root directory |
|
|
Hi!
I have problems installing my smarty-driven website. If a put the scripts into my root directory I get the following error:
Quote: | Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../plugins/modifier.stripslashes.php) is not within the allowed path(s): (/www/htdocs/stevan/) in /www/htdocs/stevan/smarty/core/core.get_include_path.php on line 34 |
After moving them into a folder, e.g. "website", everything works fine.
I've the following structure:
+---smarty
| +---core
| \---plugins
+---templates
\---templates_c
...
scripts
I didn't change the configuration of Smarty. What do I have to do in order to get my scripts working in root directory? Seems to be a problem concerning the plugin-folder... (There were some other problems with a similar error message... but they disappeared after some experimenting)
EDIT: Now there are even more "open_basedir restriction"... it seems as fi all plugins are concerned... |
|
Back to top |
|
Stevi-O Smarty n00b
Joined: 03 Jan 2004 Posts: 4 Location: Wiesbaden, Hesse, Germany
|
Posted: Mon Jan 05, 2004 9:04 pm Post subject: |
|
|
No ideas? _________________ Best regards,
Stevi-O |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Jan 05, 2004 9:43 pm Post subject: |
|
|
do you use the latest smarty? |
|
Back to top |
|
Stevi-O Smarty n00b
Joined: 03 Jan 2004 Posts: 4 Location: Wiesbaden, Hesse, Germany
|
Posted: Tue Jan 06, 2004 12:15 am Post subject: |
|
|
Yes, I do. Smarty 2.6.0. I want to stress, that I didn't change the paths in Smarty - but it works. The errors occure only, if the scripts are in root directory. So, what shall I do. _________________ Best regards,
Stevi-O |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
|
Back to top |
|
Stevi-O Smarty n00b
Joined: 03 Jan 2004 Posts: 4 Location: Wiesbaden, Hesse, Germany
|
Posted: Tue Jan 06, 2004 1:24 pm Post subject: |
|
|
I think of the home directory, in my case www.stevanlutz.de/ (/www/htdocs/stevan/). I wonder, because if i put the scripts into a folder on a lower level, e.g. www.stevanlutz.de/website/ (/www/htdocs/stevan/website/) everything works fine...
Auf deutsch: Es funktioniert nur ohne die angesprochenen Fehlermeldungen, wenn sich die Skripte und Verzeichnisse (exkl. dem smarty-Ordner) in einem Unterordner befinden. Nicht aber im Stammverzeichnis.
Also folgende Hierarchie:
Ordner "smarty"
Ordner "website"
|- Unterordner (templates, templates_c etc.)
|- Skripte _________________ Best regards,
Stevi-O |
|
Back to top |
|
DJ-Smooth Smarty Rookie
Joined: 03 Apr 2004 Posts: 9
|
Posted: Sat Apr 03, 2004 5:12 pm Post subject: |
|
|
yes the same thing on my website... maybe a bug? |
|
Back to top |
|
bill91750 Smarty n00b
Joined: 07 May 2004 Posts: 1
|
Posted: Mon May 10, 2004 3:21 am Post subject: |
|
|
I am having the same problem. I thought for sure I had found the thread that would solve it when I read this post. But, alas not so. Any other ideas? |
|
Back to top |
|
|