Jump to content

[Risolto] PHP Warning: tempnam() open_basedir restriction in effect


midimarcus

Recommended Posts

Durante un'installazione su di PS 1.6.0.9 (Nginx + ISPConfig) il log del server web mi dava continuamente l'errore seguente:

PHP message: PHP Warning:  tempnam(): open_basedir restriction in effect. File(/var/www/clients/client1/web44/webcache) is not within the allowed path(s)

L'errore era corretto perché la root path del sito sarebbe, nell'esempio

/var/www/clients/client1/web44/web/

e quindi la webcache dovrebbe essere in

/var/www/clients/client1/web44/web/webcache

Dal forum francese ho visto la soluzione e la riposto in italiano.

 

Aprire il file classes/PrestaShopAutoload.php alla linea 35 e modificare

const INDEX_FILE = 'cache/class_index.php';

in

const INDEX_FILE = '/cache/class_index.php';

aggiungendo lo / prima del percorso l'errore è risolto.

 

 

  • Like 2
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...