- This topic is empty.
-
AuthorPosts
-
April 9, 2023 at 8:26 pm #4887
Joan
GuestI want to add some PHP code but there is no permission to edit the file, and seems the code is overwritten during upgrades?
April 10, 2023 at 6:45 am #4891Edward
GuestSlickStack limits file permissions on
wp-config.phpto make it read-only for better security so that WP plugins can’t hack itand during reinstall SlickStack will regenerate the file entirely too
April 11, 2023 at 7:02 am #4906Doris
Guestwhat options are you trying to edit in wp-config, and why? mostly you should be editing only your ss-config file instead.
April 11, 2023 at 7:20 am #4907Patricia
GuestUPDATE:
https://github.com/littlebizzy/slickstack/issues/168
Based on user demand SlickStack is (once again) now supporting a custom functions file where you can add PHP constants or other items that you might usually add to your wp-config.php file… this new functions file path is here:
/wp-content/custom-functions.php
The file is not created by default, however, if SlickStack’s wp-config.php detects that file exists it will be loaded.
Note that a few years ago we had a similar feature (it was an entire MU plugin actually) and a script was force-generated, but it’s now much lighter and simpler.
April 11, 2023 at 7:21 am #4908Joe
Guestbut we still can’t edit the wp-config.php correct
April 11, 2023 at 7:23 am #4909Carolyn
Guestbut we still can’t edit the wp-config.php correct
Technically you can
sudo nanothat file via shell and edit if you want, but your changes are going to be overwritten during next update anywaysJust use the settings in
ss-configis better.Or if you want custom PHP constants, make a
custom-functions.phpscript. -
AuthorPosts