Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [wp-config]

wp-config.php is the configuration file of WordPress, one of few that is not overridden during upgrades. It is essential for running WordPress, as it contains the information needed to connect to the database

-1
votes
0answers
23 views

I can't understand how wp-config file getting the credentials

define('DB_NAME', $_SERVER["RDS_DB_NAME"]) I can't understand how $_SERVER fetching the database name and db user in wordpress.
1
vote
1answer
15 views

WordPress - Promoting A Dev Build In A Subdirectory To Production / Root Directory

I recently took over a WordPress site with the following directory structure inside of /public_html: wp_config.php /wp-admin /wp-content /wp-includes ... ... ... /development The root (production) ...
0
votes
0answers
33 views

Doesn’t call user information to include “wp-load.php” in an external php file

Doesn't call user information to include "wp-load.php" in an external php file. <?php require_once( dirname( dirname( __ FILE __ ) ) . '/wp-load.php' ); global $wpdb, $user_ID; echo $user_ID; // ...
0
votes
0answers
15 views

editor option not available in dashboard

The editor option not showing up in the dashboard. I tried to set to false the statement define('DISALLOW_FILE_EDIT', true); But there is not any statement like this in wp-config file. What to do?
0
votes
0answers
8 views

Backend not loading after switching to public domain

I developed the website on a private VPN protected IP address. After I was done, I pointed a domain to a public IP that can be reached without a VPN which itself is pointed to the private IP. I then ...
0
votes
0answers
12 views

Use domain as siteurl on front end and IP as siteurl in back end

When I set the siteurl to the VPN protected private IP, the backend loads but the frontend doesn't and that is because they don't have access to the VPN to be allowed to load the IP. When I set the ...
0
votes
0answers
26 views

How to have differents sites share the same tables of DB?

I want to have multiple versions of my site that share the same database. I'm wondering if this is as simple as just cloning the site and then in the wp-config having them all use the same database? ...
0
votes
0answers
11 views

Saving settings fails with reverse SSL proxy

Whenever I save a setting in wp-admin, I get redirected to /af-wiki/af-wiki/wp-admin/options-general.php. Nonetheless, my alterations are stored properly. Saving pages, browsing, changing themes, .. ...
1
vote
1answer
66 views

Fix 403 error on WordPress multisite network using subdomains

I've a WordPress installation that I've transformed into a multisite network. I'm using cPanel and I've followed all the instructions to configure the WordPress installation. I've set up the ...
1
vote
1answer
36 views

WP install in sub-dir white screen

My WP moved from localhost to online, and now it shows a blank page (wp-admin is working normally). This is the structure: sub.domain.nl/dir1/dir2/WP-install Something must me off with the ...
0
votes
2answers
32 views

White screen of death on admin pages after moving wp-config up two levels for security

I moved the wp-config to the hosting root and put it in a new directory and then I included it from the WordPress directory like so: include("../../my-fast-cars/fast-cars.php"); this gave me white ...
1
vote
1answer
18 views

How to change how long items are kept in the trash?

When the trash feature is enabled, the deleted posts are moved to trash and stored there for 30 days. And there is a schedule/wp_cron event that is responsible for removing these posts permanently ...
0
votes
0answers
85 views

WP_SITEURL vs WP_HOME link output

When WP_SITEURL and WP_HOME are set to different values - for example https://example.com/wordpress and https://example.com - the output links are inconsistent. Thus, a permalink output will be ...
0
votes
1answer
68 views

How to change WordPress theme outside of admin? Can't access dashboard

I have extracted my theme via File Manager but it somehow crashed. I activated the theme and now I can not access my admin at /my-web/wp-admin/. Is there another way to change my theme since I cannot ...
0
votes
1answer
42 views

What can an attacker do if he has access to my wp-config file?

Can he do anything besides read database connection which is localhost and not accessible via remote host ?
0
votes
1answer
27 views

where should I write constants in wordpress?

I have to define a constants to use all over the entire project(i.e: single.php, category.php, my-template.php). Suppose I define a array constant to declare a list of browser name. i.e: array('...
0
votes
1answer
10 views

Disable theme WooCommerce template [closed]

Just purchased a premium WooCommerce-read theme. Unfortunately, this theme comes with a /woocommerce folder. How can I disable this templates,without deleting whole folder?
0
votes
1answer
219 views

How to fix wp-login.php gives error 500 after migration?

I have migrated a word press site to a self hosted linux server. My front page and all other pages load however images are still pointing to my old server. My wp-login.php page also gives an error 500....
0
votes
1answer
330 views

how to encyrpt DB_PASSWORD in wp-config

Recently moved my wordpress site to another hosting provider and after importing my database I had issues establishing a database connection. I edited wp-config file and entered my DB_PASSWORD to re-...
0
votes
2answers
25 views

How to configure Wordpress Database for CentOS 7

I'm trying move an existing Wordpress site to run across two different servers, one with Apache and the main source code and the other that just has the database running on MYSQL. wp-config: define('...
0
votes
0answers
23 views

remove wp- prefix using a php script [duplicate]

I want to remove the wp- prefix from the wp-admin folder. I don't want to use a plugin, this because I want to code myself this wordpress hack. My question is, what files I need to edit after I've ...
0
votes
1answer
491 views

How can I change preview URL?

How can I change the preview URL in Wordpress? When creating a post in Wordpress, there is a Preview button which takes you to the draft view. Because I have a custom integration of Wordpress and don'...
0
votes
1answer
67 views

Site lost all formatting when I attempted to migrate to Bluehost [closed]

I think I really screwed something up here...I would love some help fixing the problem, or at least some help figuring out what is going on So, I used wordpress.org CMS to create a site locally using ...
1
vote
1answer
190 views

error log cluttered with undefined DB_USER wp-admin/setup-config.php

I have an up and running WordPress site for some time. Lately, I noticed somebody or something is making requests to www.example.com/wp-admin/setup-config.php?step=0. Which is resulting in these ...
0
votes
2answers
67 views

Wordpress failing to update plugins

After cloning my wordpress site and fresh install of it i encountered problem. Plugins won't update. I'm working in Linux environment (Ubuntu). I've tried multiple solutions but still without positive ...
0
votes
1answer
295 views

Moving wp-config.php one level up - 500 error - Nginx [closed]

My wordpress installation is at /var/www/html/ I have moved the wp-config.php file one level up to /var/www/ and deleted the original file. However, I am getting a 500 error. Within the wp-config....
0
votes
2answers
172 views

How can I resolve the php notice “Constant EMPTY_TRASH_DAYS already defined”

With define('WP_DEBUG', true); in wp-config.php, I get the following notice: Constant EMPTY_TRASH_DAYS already defined in /wp-config.php on line 83 I have checked this file, and this constant is ...
0
votes
1answer
16 views

Duplicate database to roll back theme & content changes

I am going to update site to a new custom theme and it will take a few days to get all the work done. Can I duplicate a wp database in phpMYadmin, so i have wp-db1 and wp-db2. Then I can change wp-...
2
votes
2answers
50 views

How to set up gmail SMTP in Wordpress

I'm trying to set up an smtp gmail server to send emails from my wordpress site. This is what I've got in my wp-config.php: define( 'SMTP_USER', 'myaddress@gmail.com' ); // Username to use for ...
0
votes
1answer
53 views

How can I configure an SMTP Server?

I'm trying to follow the instructions here: https://gist.github.com/butlerblog/7e4dbafcbc61b15505ee8ca90510f1e7 But I'm getting confused. I'm not sure what arguments to pass where. Here is what I ...
0
votes
1answer
183 views

Moving my site from localhost to server - too many redirects

I want to move the site I was working on on localhost to a testing server. I have copied the database over as well as all the files. I want to be able to run my site from the testing server with the ...
0
votes
0answers
27 views

Redirection to the WP_HOME

I have several WordPress sites and some of them have a more complex setup where there are multiple application servers running PHP FPM and nginx and a load balancer to cover them all. All sites run ...
0
votes
1answer
27 views

Need help fixing my wp-config file [closed]

I tried to edit my wp-config for a plugin. It didn't work and now my code in my wp-config is all wrong and my site can't read it. Any help with re-coding this correctly would be greatly appreciated.
0
votes
0answers
144 views

What should index.php contain on Synology NAS to get external access to Wordpress to work?

Please note this is my first post here. Not sure if this question fits in the scope of this site. If not, I am happy for it to be closed. I have a Synology NAS and I want to start a personal website ...
0
votes
1answer
29 views

Why was my new Wordpress installation's config page publicly viewable when first installed?

I'm new to Wordpress (I used to do some very Web 1.0 design work when I was a teenager in the 90s) and I just encountered something I'm truly baffled by. I started a new account at Dreamhost with a ...
0
votes
0answers
65 views

Remove trailing slash when WP_CACHE is enabled

I removed the trailing slash via Settings > Permalinks for my WP site. All URLs have been indexed by Google without the trailing slash so I don't want to revert this change. I just wanted to enable ...
0
votes
2answers
873 views

Redirecting connection from IP to localhost

I'm running localhost server on xampp. I 'm connecting properly with my host computer from other devices with IP address but once i go into wordpress directory i got redirected. Every device i was ...
-1
votes
1answer
22 views

Wordpress doesn't recognise my email address and I'm missing the wp-config file in PHPmyadmin cPanel to make alterations

So i apologise as i am a complete newb to wordpress and phpmyadmin. So i tried to authenticate my website with google authentication but inputted the incorrect url address in the wordpress dashboard. ...
1
vote
0answers
12 views

ERR_TOO_MANY_REDIRECTS when i config my subdomains

I use multisite like this 144.1.1.3 and 144.1.1.3/another_site I need to use two subdomains like this mysubdomain.mysite.com.br for 144.1.1.3 and mysubdomain2.mysite.com.br for 144.1.1.3/...
1
vote
1answer
30 views

Should I change wp-config for SSL?

Should I change wp-config for SSL setting to change define('SITE_URL','http://www.example.com/'); to define('SITE_URL','https://www.example.com/');
1
vote
0answers
37 views

How to block access to files without modifying .htaccess or ngnix config? [closed]

I'm trying to prevent access to readme.txt files on a WP site. Normally, this would be easy by just modifying the .htaccess file or the ngnix configuration. However, the host runs ngnix, which ...
2
votes
1answer
42 views

Why can't I swap a DB in a WP install? [closed]

Something I'm confused about, trying to change the database in an existing WP install, for example: I have a local WP site (in XAMPP) working fine off a DB called database-A, however if I change, in ...
0
votes
1answer
60 views

Remote server does not read `WP_HOME` from wp-config.php when local server does

I have a wp-config.php file with these variables: define( 'WP_HOME', $_ENV['WP_HOME'] ); define( 'WP_SITEURL', $_ENV['WP_SITEURL'] ); In my current setup, this uses dotenv to load the values from a ....
0
votes
0answers
12 views

Why can't I use Kanjis on permalink? [duplicate]

I've already read the 'What topics can I ask about here?' section but I'm still not sure if I can ask this type of question here, so here it goes. I'm starting a blog about the Japanese language. I ...
-1
votes
1answer
52 views

No wp-admin, wp-config, or .htaccess folder/file

This all started when I was not able to upload a picture to my site. All media under Media do not have their picture or preview; the pictures would simply be blank. Clicking on View while in list mode ...
0
votes
0answers
44 views

Change default wordpress FS owner

is it possible to change the default fs owner for wordpress? In our shared dev environment, we don't have access to the www-data user. Files created by wordpress under wp-content have the owner www-...
0
votes
0answers
31 views

Working locally with remote DB not working with multisite

My usual set up in my wp-config for working locally with my remote DB is as follows: define('WP_HOME','http://mysite.local'); define('WP_SITEURL','ttp://mysite.local'); define('LIVE_SITEURL', '...
3
votes
1answer
976 views

If I change the salt keys in my wp-config will all passwords break?

If I change all the cookie & salt hashes in wp-config will all currently stored passwords need to be re-set? define('AUTH_KEY', '9YF,b]b:G5,!@Z||G.r*lI`?yl+u_-=2SO@# :Y8f1ZW=qP)U^w+(V=i:...
0
votes
0answers
60 views

Configure WordPress to listen on a port other than 80

Similar to changing localhost parameters, how do I serve web pages externally through a port other than port 80? Also similar to configuring Apache to listen to an alternate port. Of course, the ...
0
votes
1answer
134 views

Wordpress Error establishing a database connection For Admin login only

I am having this strange Error thing happening I can load the wp frontend fine but the wp/wp-login.php gives : Error establishing a database connection Does the wp-config.php is for both frontend and ...