Config.php

2 views
Skip to first unread message

Mardell Lessig

unread,
Jan 4, 2024, 10:01:37 PM1/4/24
to nextconsxysho
Also, if your app has configs you need on the client side (like for an Angular app), you can have this config.php file contain all your configs (centralized in one file instead of one for JavaScript and one for PHP). The trick would then be to have another PHP file that would echo only the client side info (to avoid showing info you don't want to show like database connection string). Call it say get_app_info.php :
Hi Guys,
As i am setting up server in FreeBSD , i installed nextcloud, (downloaded and unzipped) changed all the needed configuration except i do not find the config.php file under config folder in nextcloud. Without which i think i cannot get access to the nextcloud server.
config.php
What location/directory is the config.php located in? when I do a locate, I get several config.php files and locations. The documentation just says config/config.php, but does not provide any more on which directory specifically. I am new to server setup for linux. I mostly use Linux as a gui, but am trying to learn more linux command line. I have ubuntu server setup.
It is unlikely that a non-developer would have to edit the wp-config.php file, in the case you are acting on trouble shooting steps provided by a technical person or by your webhost, this page should help.
Hello,I'm running OSTicket v1.9.5.1. I inherited this installation. I did do an upgrade a year or two ago and had problems but the upgrade eventually went through, how I don't know. The problem I'm seeing is that there isn't an ost-config.php in the /Include directory, only the sample file. The actual config file is located in the root directory and is named ostconfig.php. Who ever initially installed this had to of made some modifications right? Where is the pointer to the config file? Where does it tell what the name of the config file is and where it is located? I'd like to get this back to a standard install.
This is my post from the last upgrade I did. I would like to get this back to a standard install and have the ost-config.php config file used instead of the ostconfig.php located in the root directory. -to-upgrade-from-1-6rc4-to-latest-version#latestThanks,
Hi ntozier,There is no ost-config.php in the /include directory. There is an ost-sampleconfig.php file in the /include directory but no ost-config.php file. In the root directory of the install there is an ostconfig.php and this has all the database information, just like the ost-config.php file should have. The installation is reading the ostconfig.php in the root and not an ost-config.php file in the /include directory. There isn't any ost-config.php file anywhere.
Sorry I missed that ntozier1. Backup, backup, backup2. Upload current version overwriting old files3. Move ostconfig.php to /include directory and rename to ost-config.php4. Login and the upgrade installer should kick off.Sound about right?Thanks,
Hello,So I went through with the upgrade from 1.9.5.1 to 1.10 as I had planned out1. Backup, backup, backup2. Upload current version overwriting old files3. Move ostconfig.php to /include directory and rename to ost-config.php4. Login and the upgrade installer should kick off.A couple of things, after copying the files and moving and renaming ostconfig.php to ost-config.php in the /Include directory, the admin page would not load. I had to put the full path to the upgrade.php file. Once I did that the upgrade went through. That's fine, as long as it went through and it did. Was able to get the ostconfig.php file moved to the /Include directory and renamed to ost-config.php. What I lost was the formatting of the landing page for clients. The layout is somewhat different and the size is much smaller. Is there a directory I can copy back over to get my old formatting back?Thanks,
Try downloading your wp-config.php file, edit it locally then upload to your server again. If that does not help, please contact your web host support as to why you have no permission to edit your files. Also try the solution suggested here to correct permission issues.
- Based on my experience i would say all the configuration related information will be managed in config.php file only and based on magento 's standard yes you will require to add that config.php file in source control (git)
Now on the developer 's system ask developers to put this config.php file as an git ignore same like database file, so when they run setup:upgrade command and few changes occurs in config.php file then also it will not showcasing in git - as this is added in git ignore.
However, after I update the config.php, I do not see any updates. I can verify there were no updates, by going to the list of users page ( ), and I see the users listed from the old database (mdl_users) and not the new database.
How do hosted Nextcloud services (like Hetzner Storage Share, for example) handle changes to config.php? None that I can find write about it in documentation or FAQs, nor can I find anything by searching the web.
I am trying to update my self hosted installation from v5.3.54 to v5.517 via the frontend and get the following error in the storage/logs/laravel.log:
[2022-09-14 17:48:59] production.ERROR: Cannot update system because config.php is not writable {"userId":1,"exception":"[object] (App\\Exceptions\\FilePermissionsFailure(code: 0): Cannot update system because config.php is not writable at /var/www/at_binary-alps_rechnungen/app/Http/Controllers/SelfUpdateController.php:104)
NOTE 2: if you find your config.php does not have the above settings (you have a cut down approx 30 lines config.php) look for a "config-dist.php" file that contains the full details. I would suggest transferring your details in the current config.php file you have into the full config file and renaming that one to "config.php".
Here's how I solved this problem:
I created a file called dyn_config.php in the conf folder. The code in this script calculates the appropriate$Configuration values based on the server's name. For me this means selecting a different Database.Host and Garden.Cookie.Domain depending on the deployment stage, but the same logic can be extended to any$Configuration variable.
Then, I created a bootstrap.early.php file (also in the conf folder) that loads dyn_config.php into the configuration in exactly the same manner as bootstrap.php loads config.php into the configuration. The end result is that the configuration is dynamically overwritten without changing config-default.php or any of the Vanilla core source code.
If your setup needs more tweaking, or you have specialised needs, then either (a) use the extended file, renaming as described above, or (b) copy and paste the relevant settings into the smaller config.php file
The config_basic.php and config_extended.php give you two examples of the features you can use in your config.php file. Choose the style that will provide you the tools you need and copy it to config.php (but make sure you have all the settings you changed copied or backed up). Now, add in all the necessary options and phpList will now use your new config.php when it next runs. Yes, you can make changes to config.php and save them and they will appear next to you log into or run phpList. The extended config includes options for debugging and using external SMTP sources.
This leaves things confusing to me. To experiment with my specific configuration (everything owned by www-data:www-data so far), I have tried the following to secure my important Wordpress file such as wp-config.php:
Could someone please explain to me how all of this works, by answering some of these questions, and the with all things considered with my setup (LEMP SERVER with Nginx running as www-data:www-data), could you please recommend what user ownership/ group ownership/permissions, I should be using on my wp-config.php, .htaccess, and then the rest of my Wordpress directories, for my setup to be as restricted and secure as possible without impacting the usability of Wordpress itself?
If DB_CHARSET and DB_COLLATE do not exist in your wp-config.php file, DO NOT add either definition to your wp-config.php file unless you read and understand Converting Database Character Sets. Adding DB_CHARSET and DB_COLLATE to the wp-config.php file, for an existing blog, can cause major problems.
If DB_COLLATE and DB_CHARSET do not exist in your wp-config.php file, DO NOT add either definition to your wp-config.php file unless you read and understand Converting Database Character Sets. And you may be in need of a WordPress upgrade.
The four keys are required for the enhanced security. The four salts are recommended, but are not required, because WordPress will generate salts for you if none are provided. They are included in wp-config.php by default for inclusiveness.
This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 40MB (code is at the beginning of /wp-includes/default-constants.php) for single site and 64MB for multisite, so the setting in wp-config.php should reflect something higher than 40MB or 64MB depending on your setup.
CUSTOM_USER_TABLE is easiest to adopt during initial Setup your first instance of WordPress. The define statements of the wp-config.php on the first instance point to where wp_users data will be stored by default. After the first site setup, copying the working wp-config.php to your next instance will only require a change the $table_prefix variable. Do not use an e-mail address that is already in use by your original install. Once you have finished the setup process log in with the auto generated admin account and password. Next, promote your normal account to the administrator level and Log out of admin. Log back in as yourself, delete the admin account and promote the other user accounts as is needed.
From here it's a simple matter of changing your config.php file's trusted_domain/proxy settings. Which is easy, once you can get into it; TrueCharts team is doing great work, but their documentation is almost nonexistent for most of their charts, which is likely to just lead to frustration instead of adoption.
Specifically for this deployment, I had to make some additional edits that I'm not sure are necessary or a result of bad config when I originally deployed the charts; replicate at your own risk.
config.php output in its entirety, redacted for post:
35fe9a5643
Reply all
Reply to author
Forward
0 new messages