Last active
June 10, 2022 18:29
-
-
Save delennerd/98133fe163e57b3d369911f87b809b00 to your computer and use it in GitHub Desktop.
Custom WordPress Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* Secret-Keys, Sprache und ABSPATH. Mehr Informationen zur wp-config.php gibt es auf der {@link http://codex.wordpress.org/Editing_wp-config.php | |
* | |
* und die Installationsroutine (/wp-admin/install.php) aufgerufen wird. | |
* Man kann aber auch direkt in dieser Datei alle Eingaben vornehmen und sie von wp-config-sample.php in wp-config.php umbenennen und die Installation starten. | |
* | |
* @package WordPress | |
*/ | |
/** MySQL Einstellungen - diese Angaben bekommst du von deinem Webhoster. */ | |
define('DB_NAME', 'XXX'); | |
/** Ersetze username_here mit deinem MySQL-Datenbank-Benutzernamen */ | |
define('DB_USER', 'XXX'); | |
/** Ersetze password_here mit deinem MySQL-Passwort */ | |
define('DB_PASSWORD', 'XXX'); | |
/** Ersetze localhost mit der MySQL-Serveradresse */ | |
define('DB_HOST', 'localhost'); | |
/** Der Datenbankzeichensatz der beim Erstellen der Datenbanktabellen verwendet werden soll */ | |
define('DB_CHARSET', 'utf8'); | |
define('DB_COLLATE', ''); | |
/**#@+ | |
* | |
* Auf der Seite {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} kannst du dir alle KEYS generieren lassen. | |
* | |
* @seit 2.6.0 | |
*/ | |
// IMPORTANT SALTS | |
/**#@-*/ | |
/** | |
* | |
* verschiedene WordPress-Installationen betreiben. Nur Zahlen, Buchstaben und Unterstriche bitte! | |
*/ | |
$table_prefix = 'wp_'; | |
/** | |
* WordPress Sprachdatei | |
* | |
* Hier kannst du einstellen, welche Sprachdatei benutzt werden soll. Die entsprechende | |
* Sprachdatei muss im Ordner wp-content/languages vorhanden sein, beispielsweise de_DE.mo | |
*/ | |
define('WPLANG', 'de_DE'); | |
/** | |
* For developers: WordPress debugging mode. | |
* | |
* Change this to true to enable the display of notices during development. | |
* It is strongly recommended that plugin and theme developers use WP_DEBUG | |
* in their development environments. | |
*/ | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_DISPLAY', false ); | |
define( 'WP_DEBUG_LOG', true ); | |
define('WP_HOME', 'https://DOMAIN/'); | |
define('WP_SITEURL', 'https://DOMAIN/wp/'); | |
define('WP_CONTENT_DIR', realpath(ABSPATH . '../wp-content/')); | |
define('WP_CONTENT_URL', 'https://DOMAIN/wp-content'); | |
define('DISABLE_WP_CRON', true); | |
define( 'WP_ADMIN_DIR', 'https://DOMAIN/wp/wp-admin' ); | |
define( 'ADMIN_COOKIE_PATH', WP_ADMIN_DIR ); | |
define( 'SAVEQUERIES', true ); | |
/* That's all, stop editing! Happy blogging. */ | |
/** Absolute path to the WordPress directory. */ | |
if ( !defined('ABSPATH') ) | |
define('ABSPATH', dirname(__FILE__) . '/wordpress/'); | |
/** Sets up WordPress vars and included files. */ | |
require_once(ABSPATH . 'wp-settings.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('AUTOSAVE_INTERVAL', 240); | |
define('WP_POST_REVISIONS', 5); | |
define('EMPTY_TRASH_DAYS', 7); | |
define('WP_SITEURL', 'http://'.$_SERVER['HTTP_HOST'].'/'); | |
define('WP_HOME', 'http://'.$_SERVER['HTTP_HOST'].'/'); | |
define('FORCE_SSL_ADMIN', true); | |
define('FORCE_SSL_LOGIN', true); | |
define('WP_CONTENT_DIR', dirname(__FILE__).'/blog/content'); | |
define('WP_PLUGIN_DIR', dirname(__FILE__).'/blog/content/plugins'); | |
define('UPLOADS', '/website/media'); | |
define('DISALLOW_FILE_EDIT', true); | |
define('DISALLOW_FILE_MODS', true); | |
define('WP_MEMORY_LIMIT', '96M'); | |
define('WP_MAX_MEMORY_LIMIT', '256M'); | |
define('WP_CACHE', true); | |
define('WP_ALLOW_REPAIR', true); | |
// WordPress automatisch aktualisieren | |
define('WP_AUTO_UPDATE_CORE', true); | |
// Automatische Updates von WordPress verhindern | |
define('AUTOMATIC_UPDATER_DISABLED', true); | |
// Updates und Ionstallationen lokal durchführen | |
define('FS_METHOD', 'direct'); | |
// DEBUGGING | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_LOG', true ); | |
define( 'WP_DEBUG_DISPLAY', false ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment