how to edit wp-config.php on SlickStack server
- This topic is empty.
-
AuthorPosts
-
April 9, 2023 at 8:26 pm #4887JoanGuest
I 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 #4891EdwardGuestSlickStack limits file permissions on
wp-config.php
to 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 #4906DorisGuestwhat 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 #4907PatriciaGuestUPDATE:
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 #4908JoeGuestbut we still can’t edit the wp-config.php correct
April 11, 2023 at 7:23 am #4909CarolynGuestbut we still can’t edit the wp-config.php correct
Technically you can
sudo nano
that 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-config
is better.Or if you want custom PHP constants, make a
custom-functions.php
script. -
AuthorPosts
- You must be logged in to reply to this topic.