fopen(): SAFE MODE Restriction in effect
- ricco24
- Člen | 141
Mám jeden problém. Na produkčnom servery som vymazal adresar cache a odvtedy mi pri development nastavený a zapnutom strict mode hádže nasledovnú chybu.
fopen(): SAFE MODE Restriction in effect.
fopen(): SAFE MODE Restriction in effect. The script whose uid is 10050 is not allowed to access /xxx/cache/_Nette.Configurator owned by uid 33
ako by sa to dalo vyriešit ?
- ricco24
- Člen | 141
- pridani flagu do .htaccess nepomohlo
- priečinky _nette.configurator a _nette.filletemplate sa mi v priečinku cache vytvoria sami po reloadnuti stranky, problém je ale ten že sa vytvoria len priečinky a žiadne súbory …
Ak nastavim strict mode na false stránka sa normálne načíta ale hádže mi to nasledujúce warningy –
1× PHP Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 10050 is not allowed to access /var/xxx/httpdocs/temp/cache/_Nette.Configurator owned owned by uid 33 in .../httpdocs/libs/Nette/Caching/Storages/FileStorage.php:184
1× PHP Warning: fopen(/var/xxx/temp/httpdocs/cache/_Nette.Configurator/_-aabf96bf9c18a8293a193e1dfcf55e63.php): failed to open stream: No such file or directory in .../httpdocs/libs/Nette/Caching/Storages/FileStorage.php:184
5× PHP Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 10050 is not allowed to access /var/xxx/httpdocs/temp/cache/_Nette.FileTemplate owned by uid 33 in .../httpdocs/libs/Nette/Caching/Storages/FileStorage.php:184
1× PHP Warning: fopen(/var/xxx/httpdocs/temp/cache/_Nette.FileTemplate/_Default.default.latte-1a16484b41d0855d7cfc1350618b24df.php): failed to open stream: No such file or directory in .../httpdocs/libs/Nette/Caching/Storages/FileStorage.php:184
1× PHP Warning: fopen(/var/xxx/httpdocs/temp/cache/_Nette.FileTemplate/_templates._layout.latte-2074b4c120a5155487da6330deae28be.php): failed to open stream: No such file or directory in .../httpdocs/libs/Nette/Caching/Storages/FileStorage.php:184
1× PHP Warning: fopen(/var/xxx/httpdocs/temp/cache/_Nette.FileTemplate/_Navigation.menu.phtml-467cad305468f39d583f4c49b7770794.php): failed to open stream: No such file or directory in .../httpdocs/libs/Nette/Caching/Storages/FileStorage.php:184
1× PHP Warning: fopen(/var/xxx/httpdocs/temp/cache/_Nette.FileTemplate/_PollControl.LinkPollControl.phtml-aa86c1da64117045c68da0f2a5de4ee6.php): failed to open stream: No such file or directory in .../httpdocs/libs/Nette/Caching/Storages/FileStorage.php:184
1× PHP Warning: fopen(/var/xxx/httpdocs/temp/cache/_Nette.FileTemplate/_VisualPaginator.template.phtml-ddc3fd916ce4a312d9a0bee58414ffd3.php): failed to open stream: No such file or directory in .../httpdocs/libs/Nette/Caching/Storages/FileStorage.php:184
Jednoducho nechápem prečo sa tieto chyby objavili po tom ako som premazal cache ktorá by sa mala automaticky vygenerovať pri ďalšom načítaní stránky.
Podla tých warningov sa mi zdá ako by sa nette snažilo načítať súbory z cache ktoré tam niesu. Pri tom ak ich tam nenájde mal by si ich nanovo vytvoriť, čo však nespravý, stále mi zostávajú len prázdne priečinky _nette.configurator, _nette.filletemplate a _nette.robotloader…
- ViPEr*CZ*
- Člen | 817
The script whose uid is 10050 is not allowed to access /xxx/cache/_Nette.Configurator owned by uid 33
Tady je to napsané… fopen spouští uid 10050, ale /xxx/cache/_Nette.Configurator vlastní uid 33 … co takhle nastavit si správná oprávnění, aby se to safe_modu líbilo???
Editoval ViPEr*CZ* (1. 8. 2011 12:23)