viewtopic.php?p=842235#p842235
Recently moved the storage folder outside public_html and updated config.php files, htaccess, refreshed cache from admin, etc, but still seeing 500 errors / blank pages. For example, the admin page loads and orders are visible, but when I click on the order it shows a 500 error / blank page. All the folders are set to 0755 and files to 0644. For testing, I tried setting these to 777 (I know it's a security no-no, it was just for testing), but it made no difference. Any ideas?
Errors:
Code: Select all
Warning: fopen(/home/adminuser/storage/logs/openbay.log): failed to open stream:
Permission denied in /home/adminuser/storage/modification/system/library/log.php on line 22
Warning: fopen(/home/adminuser/storage/logs/openbay.log): failed to open stream: Permission denied in /home/adminuser/storage/modification/system/library/log.php on line 22
Warning: fclose() expects parameter 1 to be resource, bool given in /home/adminuser/storage/modification/system/library/log.php on line 39
Warning: fopen(/home/adminuser/storage/logs/error.log): failed to open stream:
Permission denied in /home/adminuser/storage/modification/system/library/log.php on line 22
Warning: fwrite()expects parameter 1 to be resource, bool given in /home/adminuser/storage/modification/system/library/log.php on line 31
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://mydomain.com/admin/');
define('HTTP_CATALOG', 'http://mydomain.com/');
// HTTPS
define('HTTPS_SERVER', 'https://mydomain.com/admin/');
define('HTTPS_CATALOG', 'https://mydomain.com/');
// DIR
define('DIR_APPLICATION', '/home/adminuser/public_html/admin/');
define('DIR_SYSTEM', '/home/adminuser/public_html/system/');
define('DIR_IMAGE', '/home/adminuser/public_html/image/');
define('DIR_STORAGE', '/home/adminuser/storage/');
define('DIR_CATALOG', '/home/adminuser/public_html/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxx');
define('DB_PASSWORD', 'xxx');
define('DB_DATABASE', 'xxx');
define('DB_PORT', '3306');
define('DB_PREFIX', '');
// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://bumperplugs.com/');
// HTTPS
define('HTTPS_SERVER', 'https://bumperplugs.com/');
// DIR
define('DIR_APPLICATION', '/home/adminuser/public_html/catalog/');
define('DIR_SYSTEM', '/home/adminuser/public_html/system/');
define('DIR_IMAGE', '/home/adminuser/public_html/image/');
define('DIR_STORAGE', '/home/adminuser/storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxx');
define('DB_PASSWORD', 'xxx');
define('DB_DATABASE', 'xxx');
define('DB_PORT', '3306');
define('DB_PREFIX', '');
PHP 7.4
PHP Handler suPHP
Apache 2.4