{"id":3943,"date":"2020-08-29T16:26:03","date_gmt":"2020-08-29T16:26:03","guid":{"rendered":"https:\/\/www.softaculous.com\/blog\/?post_type=docs&#038;p=3943"},"modified":"2021-10-28T11:40:50","modified_gmt":"2021-10-28T11:40:50","slug":"custom-settings-file","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/admin\/customizing-softaculous\/custom-settings-file\/","title":{"rendered":"Custom Settings File"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Overview<\/h3>\n\n\n\n<p>Softaculous saves the admin settings in <strong>universal.php<\/strong> file which is present in the enduser folder in the Softaculous path. For e.g. in cPanel the location is <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/enduser\/universal.php<\/pre>\n\n\n\n<p>The settings you change in Softaculous admin panel are saved in this file. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Custom universal.php<\/h3>\n\n\n\n<p>If you would like to create a custom universal.php file which should overwrite the settings saved by Softaculous you can now create a <strong>universal.custom.php<\/strong> file in the same folder where universal.php is saved. This custom file will be included right after universal.php is included and you can override the settings. <\/p>\n\n\n\n<p>Sample contents of a universal.custom.php file<\/p>\n\n\n\n<pre class=\"wp-block-code php hljs\"><code>&lt;?php\n$globals&#91;'sn'] = 'My Auto Installer';\n$globals&#91;'max_backups'] = 5;\n$globals&#91;'force_auto_upgrade'] = 1;\n$globals&#91;'force_upgrade_plugins'] = 1;\n$globals&#91;'force_upgrade_themes'] = 1;<\/code><\/pre>\n\n\n\n<p class=\"alert alert-info\"><strong>Note <\/strong>: The file universal.custom.php is not included in Softaculous package hence it will not be overwritten by Softaculous upgrades.<\/p>\n\n\n\n<p class=\"alert alert-info\"><strong>Note<\/strong> : If your custom file is not loaded save the settings from Softaculous admin panel -> Settings page once and then try.<\/p>\n","protected":false},"featured_media":0,"parent":1673,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-3943","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/3943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/comments?post=3943"}],"version-history":[{"count":3,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/3943\/revisions"}],"predecessor-version":[{"id":3947,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/3943\/revisions\/3947"}],"up":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/1673"}],"wp:attachment":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/media?parent=3943"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=3943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}