conf.php is the core configuration file. You can find it inside core root folder.
Moving conf.php to another folder
conf.php is in the core root folder. If you want to store it in another folder:
1. Move conf.php file to another folder. For example, one level back from core root folder (../core.php).
2. Create conf.php file in the core root folder like this:
<?php
define('j_conf_file_place','../conf.php');
include __DIR__.'/'.j_conf_file_place;
?>
j_conf_file_place const is needed for update process. Do not just include conf.php file without defining it.
Using conf.php file inside core root folder is safe but sometimes you want to get ftp permission to a user and don't want to let him/her to have access to the configuration file. In that case, you can move conf.php file to one step back and only let the ftp user have access to the core root folder.
Error Reporting
We recommend to turn off server error reporting by setting error_reporting to 0. You shouldn't allow website visitors see errors and warnings.
Don't worry about errors and warnings when you are developing theme or extension. When you are in developer mode, It will show all errors and warnings.
Update
j_update_mode
You can set update mode. The value should be integer:
1: Check on all back-end pages.
2: Check only on Update page (Back-end should load faster).
3: Automatically Update core when new version is available (Not recommended).
4: Automatically Update core, Extensions and Themes when new version is available (Not recommended).
Please note that updating can cause problem. We strongly recommend to create a backup before any update.
j_update_domain
Update domain can only be used for paid extensions and themes that want to update from our repository.
We only use update domain to verify the paid version license. Write your domain without http://, https:// and www. For example:
define('j_update_domain','example.com');
Set j_update_domain as NULL, If you don't have paid extension or themes that need to be updated from our repository.
Update domain should be the same as your current domain.
Database
j_db_host
Database host address. For example:
define('j_db_host','127.0.0.1');
j_db_user
Database username. For example:
define('j_db_user','user_test');
j_db_pass
Database Password. For example:
define('j_db_pass','12Xksj9*s');
j_db_db
Database Name. For example:
define('j_db_db','my_database');
j_db_prfx
Database Prefix if you have already installed another 6A72 CMS in the same database. Can NOT starts with letter j and should ends with underscore. For example:
define('j_db_prfx','tableprfx1_');
j_db_tables_charset
Database table charset, using for creating tables. For example:
define('j_db_tables_charset','utf8mb4');
j_db_tables_collate
Database table collation, using for creating tables. For example:
define('j_db_tables_collate','utf8mb4_unicode_ci');
Developer
j_developer_mode
Integer of developer mode status. To enable developer mode set it to 1, 0 otherwise.
Do not enable developer mode when your site is live. It can affect the performance. Developer mode shows errors and warnings to the website visitors.
By enabling developer mode you are:
1. Disabling HTML output minifier on the front-end.
2. Enabling error reporting.
3. Writing all enabled extensions js and css files to the theme on each server request.
Validate
j_vld_user_max_length
Integer of username maximum length. Pick a number from 30 to 100.
j_vld_user_min_length
Integer of username minimum length. Pick a number from 2 to 10.
j_vld_pass_max_length
Integer of user password maximum length. Pick a number from 15 to 40.
j_vld_pass_min_length
Integer of user password minimum length. Pick a number from 6 to 15.
j_vld_name_max_length
Integer of name maximum length. Pick a number from 20 to 50.
j_vld_name_min_length
Integer of name minimum length. Pick a number from 1 to 4.
j_vld_userinfo_max_length
Integer of user info maximum length. Pick a number from 50 to 1200.
j_vld_string_max_length
Integer of string maximum length. Pick a number from 500 to 1000.
j_vld_string_max_length2
Integer of string maximum length in long mode. Pick a number from 1000 to 60000.
j_vld_title_max_length
Integer of title maximum length. Pick a number from 100 to 200.
j_vld_title_min_length
Integer of title minimum length. Pick a number from 2 to 10.
Upload
j_upload_size_max
Integer of maximum upload size in bytes. For example, 20MB:
define('j_upload_size_max',2097152);
Do not set the value more than server maximum upload size.
j_upload_image_width_max
Integer of maximum image width in pixels when user upload an image file. For example, 2000 pixels:
define('j_upload_image_width_max',2000);
j_upload_image_height_max
Integer of maximum image height in pixels when user upload an image file. For example, 2000 pixels:
define('j_upload_image_height_max',2000);
Browse
j_browse_multiple_max
Integer of maximum items inside file browser in each view. Pick a number from 1 to 50.
Edit Now Lock
When you are entering to the edit mode, For example, editing a post. The edit for that post will be locked for other users. We call it Edit Now Lock. When user is in edit mode, edit page sends edit now token to the core and core can refresh the edit now lock time.
j_edit_now_lock_timer
Integer of the time in seconds that user can lose Edit Now Lock if core do not receive the edit now token (user got disconnected or Closed the edit page). Pick a number from 30 to 120.
j_edit_now_lock_timer_session
Integer of the time in seconds that edit now lock timer session expires. Pick a number from 300 to 3600.
Folders
j_bin_folder
String of bin (static) folder name in core root folder. For example:
define('j_bin_folder','bin');
You can not use sub folder and should not have slash in the string.
j_filemanager_folder
String of file manager folder name in bin folder. For example:
define('j_filemanager_folder','assets');
You can not use sub folder and should not have slash in the string.
j_extension_folder
String of extensions folder name in core root folder. For example:
define('j_extension_folder','ext');
You can not use sub folder and should not have slash in the string.
j_theme_folder
String of themes folder name in core root folder. For example:
define('j_extension_folder','thm');
You can not use sub folder and should not have slash in the string.
j_lib_folder
String of library folder name in core root folder. For example:
define('j_lib_folder','lib');
You can not use sub folder and should not have slash in the string.
j_lib_external_folder
String of external library folder name in bin folder. For example:
define('j_lib_external_folder','lib-external');
You can not use sub folder and should not have slash in the string.
j_admin_folder
String of admin folder name in core root folder. For example:
define('j_admin_folder','admin');
You can not use sub folder and should not have slash in the string.
Changing j_admin_folder will change the back-end URL.
j_lang_folder
String of language folder name in core root folder. For example:
define('j_lang_folder','language');
You can not use sub folder and should not have slash in the string.
All .ini files for translate will be in language folder.
j_users_folder
String of users folder name in bin folder. For example:
define('j_users_folder','usrs');
You can not use sub folder and should not have slash in the string.
j_update_folder
String of update folder name in core root folder. For example:
define('j_users_folder','admin/update-folder');
We recommend to create update folder inside one level back from server root folder. like ../update-folder
You should create update folder before changing j_update_folder value.
j_sands_folder
Sands folder is a place for all generated CSS and JavaScript files.
String of sands folder name in bin folder. For example:
define('j_sands_folder','sands');
You can not use sub folder and should not have slash in the string.
j_favicon_folder
favicon folder is a place for all generated favorite icon files.
String of favicon folder name in bin folder. For example:
define('j_favicon_folder','favicon');
You can not use sub folder and should not have slash in the string.
Users
j_user_image_width
Integer of user profile image width in pixels. For example:
define('j_user_image_width','150');
j_user_image_height
Integer of user profile image height in pixels. For example:
define('j_user_image_height','150');
j_user_image_width_small
Integer of user profile small image width in pixels. For example:
define('j_user_image_width_small','80');
j_user_image_height_small
Integer of user profile small image height in pixels. For example:
define('j_user_image_height_small','80');
j_user_image_width_large
Integer of user profile large image width in pixels. For example:
define('j_user_image_width_large','250');
j_user_image_height_large
Integer of user profile large image height in pixels. For example:
define('j_user_image_height_large','250');
j_user_activation_time
Integer of user activation link expire time in hours. For example: 24 means the user activation link expires in 24 Hours.
define('j_user_activation_time',24);
Restriction
You can limit creating content.
j_restriction_lg_max
Integer of maximum language group items. Pick a number from 0.
define('j_restriction_lg_max',2);
False means unlimited:
define('j_restriction_lg_max',false);
j_restriction_l_max
Integer of maximum language items inside a language group. Pick a number from 0.
define('j_restriction_l_max',4);
False means unlimited:
define('j_restriction_l_max',false);
j_restriction_posts0_max
Integer of maximum normal post items. Pick a number from 0.
define('j_restriction_posts0_max',29);
False means unlimited:
define('j_restriction_posts0_max',false);
j_restriction_posts1_max
Integer of maximum posts items as page type. Pick a number from 0.
define('j_restriction_posts1_max',18);
False means unlimited:
define('j_restriction_posts1_max',false);
j_restriction_posts2_max
Integer of maximum posts items as image type. Pick a number from 0.
define('j_restriction_posts2_max',2);
False means unlimited:
define('j_restriction_posts2_max',false);
j_restriction_posts3_max
Integer of maximum posts items as video type. Pick a number from 0.
define('j_restriction_posts3_max',3);
False means unlimited:
define('j_restriction_posts3_max',false);
j_restriction_posts4_max
Integer of maximum posts items as audio type. Pick a number from 0.
define('j_restriction_posts4_max',9);
False means unlimited:
define('j_restriction_posts4_max',false);
j_restriction_category_max
Integer of maximum category items. Pick a number from 0.
define('j_restriction_category_max',42);
False means unlimited:
define('j_restriction_category_max',false);
Integer of maximum menu group items. Pick a number from 0.
define('j_restriction_menugroup_max',1);
False means unlimited:
define('j_restriction_menugroup_max',false);
Integer of maximum menu items. Pick a number from 0.
define('j_restriction_menu_max',22);
False means unlimited:
define('j_restriction_menu_max',false);
Responsive Image Size
Value of the responsive image size referring to the image width or height. Depends on bigger width or height of the image file.
j_ri_size_thumb
Integer of thumb image size in pixels. For example:
define('j_ri_size_thumb',350);
j_ri_size_small
Integer of small image size in pixels. For example:
define('j_ri_size_small',500);
j_ri_size_medium
Integer of medium image size in pixels. For example:
define('j_ri_size_medium',1024);
j_ri_size_large
Integer of large image size in pixels. For example:
define('j_ri_size_large',1300);
System
j_system_error_show
Boolean. True means show internal message errors in the front-end, false otherwise.
Internal message errors is core messages not server errors. For example, When you don't have default language and you visit the front-end, internal message error showing IM #1: There is no default language assigned.
j_system_sands_mode
Integer of sands file mode.
0: multiple (back-end), multiple (front-end)
1: multiple (back-end), single (front-end)
2: single (back-end), multiple (front-end)
3: single (back-end), single (front-end)
4: multiple (back-end), putcontent (front-end)
5: single (back-end), putcontent (front-end)
By default core use multiple mode and loads .js and .css files when the extension or theme need it.
You have the option to run back-end at single mode but it is better to use back-end at multiple mode.
putcontent mode loads content directly to the page.
Mail
j_mail_connection_mode
Integer of sending email connection type:
0: default php mail() function
j_mail_smtp_server
Integer of SMTP server name or IP.
j_mail_smtp_port
Integer of SMTP server port. 25 (none), 587 (TLS), 465 (SSL).
j_mail_smtp_auth
Boolean. True means use username and password to authenticate, false otherwise.
j_mail_smtp_username
String of SMTP username.
j_mail_smtp_password
String of SMTP password.