Warning: Incorrect file.php
File Permissions
This warning appears in your admin dashboard when AbanteCart’s System Check is enabled.
To disable the check:
Go to Admin > System > Settings > System, then turn off System Check.
Solution
Every file and directory on your server has permission settings that control who can read, write, or execute them. These permissions apply to:
-
The owner of the file
-
The group
-
Others (public/world)
Proper file permissions are important to:
-
Allow AbanteCart to perform necessary functions (e.g., writing logs, saving settings)
-
Prevent unauthorized access or editing by public users
Important Notes
-
If you installed AbanteCart manually, you likely need to adjust file permissions.
-
Sensitive files like
/system/config.php
and/index.php
should be hardened (more restricted). -
Recommended permissions for these files:
-
644
or640
-
On stricter systems:
444
,440
, or even400
-
How to Change Permissions
You can update file and folder permissions using either of the following:
1. cPanel File Manager
-
Login to your hosting control panel.
-
Navigate to the file.
-
Right-click and choose Change Permissions.
2. FTP Client (e.g., FileZilla)
-
Connect to your server via FTP.
-
Locate the file or folder.
-
Right-click and select File Permissions or CHMOD.
-
Enter the desired numeric permission (e.g.,
644
,755
).
Note: Permissions can vary by host and server setup, so always follow best practices and consult your host if unsure.