Avviso: il configure.php è scrivibile

Questo errore scatta quando i permessi sul file sono settati su Read, Write e Execute (UNIX) oppure quando, su Windows, non sono stati selezionati attributi nelle proprietà del file.

Su UNIX: Aprire la cartella /includes/ e usando lo CHMOD, impostare i permessi a 444. (Alcuni sistemi possono preferire 644)

Su Windows: Aprire la cartella /includes/, cliccare con il tasto destro il file configure.php e selezionare lo stato “Read Only”.

Sometimes you have to do this via a File Manager tool provided by your webhosting provider. In cPanel, it’s called File Manager. In other tools it might be called something different. In the file manager, you can simply navigate to the file you want to alter permissions for, then click on the File Properties link/button and set permissions. The links could have varying names.

If your FTP program won’t let you set CHMOD 444 and 644 doesn’t work successfully, you’ll have to use the File Manager approach above. If that doesn’t work, then you must contact your hosting company’s tech support to ask them to do it for you. Sometimes, although rare, it’s necessary to set these files to 400 instead of the common 444 or 644. Any lower than 400 may cause you to lose access to the file.

Some hosts have security configured such that even when you “ask” the server to set the files to 444, they remain at 644 or even get changed again later by a server security or filesystem properties check. This is why on our support forum you’ll find folks asking you to check and double-check what the permissions “really” are set to.

If you don’t address this issue, then you leave your site vulnerable to security risks. The warning is telling you that if someone were to get past Zen Cart’s security systems, or if they were to hack into your server using some other less-secure program even on somebody else’s hosting account, they could possibly read or change those very important configuration files. Thus it’s important to find a way to prevent the warning message, rather than merely suppress it.

The message is saying that the webserver, using PHP, *is* able to write to the file, according to the access check that PHP does against the file. Zen Cart is simply reporting that there’s a risk. Please don’t ignore or bypass it. It’s for your own security.

Attenzione: manca la cartella sessions

Zen-Cart utilizza il cacheing delle queries sql per velocizzare la resa del codice, questo implica il definire e dare gli opportuni attributi ad una cartella ove storare le cached queries.

Per default questa viene settata in /cache.
Ma tale indirizzo può essere modificato in > configure.php

La directory deve esistere ed essere scrivibile (permessi a 755 o 777).
Quando ciò non avviene si produrranno errori anche SE il programma funziona MA ovviamente non vengono storate le queries.

Non volendo quindi utilizzare il sistema di sql cacheing, per non visualizzare più gli errori, conviene modificare i valori presenti nel file
> includes/init_includes/init_header.php

Verso inizio pagina trovare la riga:

define(‘WARN_SQL_CACHE_DIRECTORY_NOT_WRITEABLE’, ‘true’);

e sostituirne il valore definito in

define(‘WARN_SQL_CACHE_DIRECTORY_NOT_WRITEABLE’, ‘false’);

Avviso, cartella di istallazione esistente

Uno degli errori più ricorrenti è l’avviso secondo cui la cartella di istallazione è raggiungibile seguendo un determinato percorso, che viene indicato dal sistema. L’avviso segnala la necessità di intervenire per la sicurezza del sito cancellando o rinominado in maniera originale la cartella stessa.

Per aiutare gli amministratori a conseguire un corretto settaggio del negozio in rete Zen Cart esegue automaticamente diversi controlli. Se si desiderano ulteriori informazioni su come correggerre altri errori o su come interpretare i segnali di Avviso, si raccomanda di leggere le altre FAQ e di consultare la documentazione in distribuzione su questo sito.