Stack Exchange Network

Stack Exchange network consists of 174 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

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

0
votes
0answers
10 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
24 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
14 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
27 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
11 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
39 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
18 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
8 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
29 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
20 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
41 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
23 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
11 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
33 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
26 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
21 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', '...
2
votes
1answer
147 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
30 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
45 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 ...
1
vote
1answer
225 views

404 redirect wp-login and wp-admin after changing login url

I've successfully changed the login page to a custom url, using this codes: This one into wp-config.php define('WP_ADMIN_DIR', 'secret-folder'); define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . ...
0
votes
0answers
153 views

Serve cookie free URLs in WordPress without using a CDN

I ran a GTmetrix test on my site (example.com) and got a very low score (50) for "coockie free domains". I gather from this error that the webpage of each URL of my domain is served with cookie ...
1
vote
1answer
462 views

Where to store OAuth 2.0 client id and secret?

I'm building some functionality within one of my WordPress sites that integrates with a third-party API, and that API uses OAuth 2.0. I use both the client ID and secret every time I need a new ...
0
votes
0answers
22 views

Installer (like Duplicator) with custom wp-config location and custom wp-content folder

I have started to set up my Wordpress sites like this (Versioned with Git): project/ |-- public_html/ | |-- wp/ (Wordpress Core, no wp-config.php here) | |-- wp-content/ (Themes, Plugins, user ...
1
vote
1answer
109 views

Enabling WP_USE_EXT_MYSQL to support old plugin

We recently did a major WordPress site upgrade (3.7.25 to 4.9.4 - yes, probably shouldn't have waited this long). I set up a test environment first and thought there would be no issues. However, upon ...
0
votes
0answers
29 views

Is it possible to increase php memory without directives in wp-config.php, .htaccess or php.ini?

I using a plugin that crashes due to lack of memory. But I'm on a host (Pantheon) that uses git for file updates between a Dev server (where I have FTP access) and a Live server (where I have no FTP ...
0
votes
1answer
145 views

WP_MEMORY_LIMIT didn't work in wp-config, only within default-constants.php

i have already searched here and tried a lot of things, but my problem still is "alive" It is possible to set WP_MEMORY_LIMIT within the default-constants.php and this works fine, but every time I ...
0
votes
1answer
202 views

Moving wp-config.php outside root folder where we have multiple wordpress websites for enhanced security [duplicate]

I have moved wp-config.php but my file structure is as given below: public_html --abccom --applecom --wp-config.php abcom and applecom folder has wordpress websites both As advised, I have moved wp-...
0
votes
0answers
45 views

Error: No configuration file found and no installation code available.

My Website Front end displaying error "No configuration file found and no installation code available. Exiting..." I have checked the following link No configuration file found and no installation ...
0
votes
1answer
75 views

If statement in wp-config.php, is it possible?

I already searched here and there but couldn't find anything definitive. I have WordPress multisite and I have a plugin (activated on each site) which requires to set a slug parameter in wp-config....
0
votes
0answers
65 views

SyntaxError: unterminated string literal - if Wordpress Debug in wp-config is set to true

To clear up my notices in my Wordpress Shop (with Woocommerce) i set WP_DEBUG to true in my Wordpress wp-config file define('WP_DEBUG', true); Now im getting the following error in my firebug ...
0
votes
0answers
53 views

What is the meaning of “#@+” in the Authentication Unique Keys and Salts comment?

In wp-config-sample.php, there is this comment /**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api....
1
vote
0answers
177 views

Syntax of FS_CHMOD_DIR and FS_CHMOD_FILE

I ran into an issue today with files uploaded through the Wordpress Backend not getting the correct permissions. The permission on the new 2018 folder in the uploads directory as well as the files ...
0
votes
0answers
63 views

Define new constants in wp-config

I have extended my Wordpress with a page that connects to an external Api. I want to define constants for the url, key and secret. Do you think the wp-config.php is a good place to define these ...
0
votes
0answers
119 views

Child theme showing a blank page when activated and causing log-in problems

I'm not sure if that is what is causing the problems. I was redesigning an old blog I never used. I created a child theme and I started to modify things. I worked on that for a few days and suddenly, ...
0
votes
1answer
18 views

sudden changing of host IP result in crash of the site

I have the same problem and the answers which are given above didn't help me, so I explain my situation: My wordpress site is installed on ubuntu 14.04 on vmware This local host IP was 192.168.153.134,...
0
votes
1answer
33 views

Moving wordpress site from localhost to live server using GoDaddy cPanel

I'm using GoDaddy cPanel hosting to move my site from localhost. It's the first time I've done this and I've hit a dead end. I've followed the instructions from these instructions. I've used ...
0
votes
0answers
241 views

Out of memory errors : how best to track them down

I am dealing with a Wordpress site that shows regular out of memory errors when navigating the control panel. I am asking a question about it here because I have tried all the usual options: ...
0
votes
1answer
39 views

Using Windows Server 2012 How to Move Uploads Folder to another hard drive

Using Wordpress as an intranet. The Wordpress installation is on C however this drive is limited and wanting to use another hard drive on the server (Hard Drive E) for my uploads folder. Am I able to ...
1
vote
2answers
1k views

WP_MEMORY_LIMIT didn't work in wp-config

I want to set WP_MEMORY_LIMIT for my WordPress site. I use from shared hosting and CPanel. I have access to change something like max memory limit on my host. I attached related image in the following ...
0
votes
1answer
492 views

How do I transfer user passwords from one WordPress site to another?

Let me begin by saying I know this is generally advised against but I'm in a tough spot at work where this is essentially being demanded and to my understanding it's theoretically possible. I am ...
0
votes
3answers
76 views

Confused over wp-config.php and 'database user + database password + name'

I have a domain with a subdomain. Each of those has a different install of WordPress. When I created the databases I made the following: Main Domain = database called: maindomain Sub Domain = ...
0
votes
2answers
968 views

Ways to load admin-ajax faster without initializing all plugins?

I'm facing a problem with wp ajax performance. I'm initializing an ajax call from my javascript side but the response takes 3-5 secs to come back. I understand that admin ajax call has to load the ...
0
votes
0answers
260 views

Move wp-content outside root

I have moved my wp-content folder up one folder level from where my wp installation is: define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/../wp-content' ); define( 'WP_CONTENT_URL', 'http://' . $...
0
votes
0answers
42 views

How to set media folder for each type outside of the media directory

I'm trying to create very organized media URLs for SEF reasons as well as creating the most simple structure possible. For example: site/image/postname/photo.jpg site/video/postname/video.mp4 site/map/...
0
votes
1answer
28 views

Can you define readability settings in wp-config.php?

The title basically answers the question, but I am trying to set basically any random setting at will in wp-config.php so that it's not overwritten by default when I do staging -> live database pushes....
1
vote
2answers
35 views

Switching Databases in LocalHost

3 weeks ago I uploaded all my files from localhost to cPanel. I want to switch it back , the issue I facing is my original database from the localhost is not updated . I downloaded the database from ...
0
votes
1answer
454 views

MULTISITE SUB-DOMAIN JUST SHOWS INDEX OF -> CGI-BIN INSTEAD OF SHOWING SITE

I created a multisite with sub-domain (site1.example.com). The Sub domain page just shows Index of -> cgi-bin instead of showing the actual website. I do not know exactly how sub domains work in ...
0
votes
1answer
922 views

Multisite Sub domains not working

This is my first experience with WordPress multisite and i followed all instructions from codex to make my website a multisite. But my sub domains are not working and chrome is displaying this message ...
0
votes
1answer
26 views

Local Wordpress from Git repo, where to set document root?

I was given a repository for Wordpress project, and need to run it locally, I'm using Mamp. Where do I set the document root to? I don't see an index.php file in root of the repo, but there is a /wp-...
0
votes
0answers
22 views

Duplicate WP Migration affecting site on separate domain?

I recently tried to back up my WP site to another (completely separate) web server. I ftp'd from Server 1, uploaded to Server 2, exported my SQL table from Server 1, imported to Server 2, and edited ...