Sometimes installation window appears when trying to get into the admin panel of the Opencart store. The reason is most likely about /admin/config.php file. The one either has wrong permissions or contains no data. The following steps should be performed to resolve the issue:
config.php
’ file in the admin folder. Change its permissions to be 644 or 666.config.php
’ file in the admin folder and open the file with any code editor to view its content. <?php
// HTTP
define('HTTP_SERVER', 'http://your_website_url/admin/');
define('HTTP_CATALOG', 'http://your_website_url/');
// HTTPS
define('HTTPS_SERVER', 'http://your_website_url/admin/');
define('HTTPS_CATALOG', 'http://your_website_url/');
// DIR
define('DIR_APPLICATION', '/server_files_directory/admin/');
define('DIR_SYSTEM', '/server_files_directory/system/');
define('DIR_IMAGE', '/server_files_directory/image/');
define('DIR_LANGUAGE', '/server_files_directory/admin/language/');
define('DIR_TEMPLATE', '/server_files_directory/admin/view/template/');
define('DIR_CONFIG', '/server_files_directory/system/config/');
define('DIR_CACHE', '/server_files_directory/system/storage/cache/');
define('DIR_DOWNLOAD', '/server_files_directory/system/storage/download/');
define('DIR_LOGS', '/server_files_directory/system/storage/logs/');
define('DIR_MODIFICATION', '/server_files_directory/system/storage/modification/');
define('DIR_UPLOAD', '/server_files_directory/system/storage/upload/');
define('DIR_CATALOG', '/server_files_directory/catalog/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'hostname');
define('DB_USERNAME', 'database_username');
define('DB_PASSWORD', 'database_password');
define('DB_DATABASE', 'database_name');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');
your_website_url
with the actual URL of your website (without www).server_files_directory
should be replaced with the actual path to your site files in the server. Open the "config.php
" file in the root to copy valid path.config.php
" file in the root./admin/config.php
file once all updates are completed.Install
’ folder there. This should be renamed/ or removed to prevent reinstallation.If you check the admin directory now, you should get it working properly. If you face any problems or need our professional services, please email us at [email protected]
Never miss the latest offers, voucher codes and useful articles delivered weekly in your inbox.