|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Alwin Smarty n00b
Joined: 13 May 2010 Posts: 2
|
Posted: Sun Feb 20, 2011 4:54 pm Post subject: "open_basedir restriction in effect" Configurer Sm |
|
|
Bonjour tout le monde,
Je rencontre actuellement un souci avec Smarty. J'ai développé un petit CMS et j'ai cherché à l'installer sur mon serveur afin d'en faire une démonstration.
Le CMS intègre une procédure d'installation automatisée qui s'est déroulée sans anicroche, mais malheureusement, le serveur semble ne pas apprécier SMARTY.
Je me retrouve avec les erreurs :
Code: | Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home:/usr:/tmp) in /home/creatweb/public_html/demo/admin/smarty/sysplugins/smarty_internal_write_file.php on line 26
Warning: mkdir() [function.mkdir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home:/usr:/tmp) in /home/creatweb/public_html/demo/admin/smarty/sysplugins/smarty_internal_write_file.php on line 27
Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home:/usr:/tmp) in /home/creatweb/public_html/demo/admin/smarty/sysplugins/smarty_internal_write_file.php on line 30
Warning: file_put_contents() [function.file-put-contents]: Filename cannot be empty in /home/creatweb/public_html/demo/admin/smarty/sysplugins/smarty_internal_write_file.php on line 32
Fatal error: Uncaught exception 'Exception' with message 'unable to write file ' in /home/creatweb/public_html/demo/admin/smarty/sysplugins/smarty_internal_write_file.php:34 Stack trace: #0 /home/creatweb/public_html/demo/admin/smarty/sysplugins/smarty_internal_template.php(278): Smarty_Internal_Write_File::writeFile('/9e733d9a33f04f...', '<?php /* Smarty...', Object(Admin)) #1 /home/creatweb/public_html/demo/admin/smarty/sysplugins/smarty_internal_template.php(408): Smarty_Internal_Template->compileTemplateSource() #2 /home/creatweb/public_html/demo/admin/smarty/sysplugins/smarty_internal_template.php(535): Smarty_Internal_Template->renderTemplate() #3 /home/creatweb/public_html/demo/admin/smarty/Smarty.class.php(336): Smarty_Internal_Template->getRenderedTemplate() #4 /home/creatweb/public_html/demo/admin/smarty/Smarty.class.php(380): Smarty->fetch('design/1colonne...', NULL, NULL, NULL, true) #5 /home/creatweb/public_html/demo/admin/includes/admin.class.php(148): Smarty->display('design/1colonne...') #6 /home/creatweb/ in /home/creatweb/public_html/demo/admin/smarty/sysplugins/smarty_internal_write_file.php on line 34
|
Je ne suis un spécialiste de l'administration serveur, d'autant que je suis sur un serveur mutualisé, mais il me semble au vu des erreurs que Smarty tente d'écrire dans le dossier tmp (/home:/usr:/tmp) mais que l'accès lui ai refusé. J'ai tenté de modifier les droits sur ce dossier mais rien a faire, ça ne marche pas.
Le plus étrange dans cette histoire, c'est que le problème ne ce situe pas à tout les niveaux.
Pour vous expliquer un peu plus la structure de mon cms :
2 classes qui héritent chacune de Smarty, l'une pour la partie admin et et l'autre le site Deux répertoires. le site à la racine, l'administration dans un dossier "admin" Smarty est contenu dans un dossier "smarty", dans le répertoire "admin". Enfin, seule la partie dans le dossier admin est touchée par le bug, pas le site
Le site : http://www.creatweb.fr/demo/
L'administration avec le bug : http://www.creatweb.fr/demo/admin/
Auriez vous une idée sur la façon dont je pourrais me débarasser de ce problème ?
Merci d'avance |
|
Back to top |
|
Alwin Smarty n00b
Joined: 13 May 2010 Posts: 2
|
Posted: Thu Feb 24, 2011 6:07 pm Post subject: |
|
|
Pas d'idée ?
Edit :
Après quelques recherches complémentaires, je pense avoir isolé un problème, surement celui qui me dérange en fait.
Il semblerais que la partie "admin" du site crée des fichiers caches à la racine de mon arborescence ce qui ne pose pas de problème sur mon ordi mais qui sur un serveur mutualisé pose problème.
Ma question est donc : Comment modifie ton l'adresse des fichiers caches pour éviter ce désagrément ?
Merci =) |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|