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

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

0
votes
2answers
17 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
2answers
38 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
6 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
31 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
49 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
17 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
32 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
34 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
97 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
1answer
35 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
91 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
58 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
14 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-...
-1
votes
0answers
43 views

Incorrect FTP authentication is blocking a plugin install and setting FS_METHOD to 'direct' in wp-config doesn't help

I'm trying to install the plugin "Form Maker by WD" into my WordPress site. Whether trying to install directly or through downloading and then uploading it, it throws an "incorrect ftp username/...
2
votes
2answers
38 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
38 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
45 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
19 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
26 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
69 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
28 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
37 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
83 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
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
29 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
44 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
39 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
37 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
25 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
516 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
40 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
90 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
340 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
476 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
800 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
25 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
173 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
1answer
50 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
335 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
303 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
59 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
115 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
82 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 ...
1
vote
0answers
383 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 ...