mio001
Reakcie
-
Fórum: Inštalácia WordPress
Odpoveď na: WP Duplicatorwp-config.php
<?php
// Enable W3 Total Cache */
define(‚WP_CACHE‘, true);// Disable themes and plugins instalation from administration.
define(‚DISALLOW_FILE_MODS‘, true);
define(‚DISALLOW_FILE_EDIT‘, true);// Path to primary configuration file.
define(‚ABSPATH‘, dirname( __FILE__ ) . ‚/‘);
require_once( ABSPATH . ‚config.inc.php‘);teraz to robim cez FTP ako kopiu a exportoval a importoval databazu, upravil cesty v databaze
config.inc.php
<?php
define(‚DB_NAME‘, ‚——-‚);
define(‚DB_USER‘, ‚———‚);
define(‚DB_PASSWORD‘, ‚———–‚);
define(‚DB_HOST‘, ‚localhost‘);// Site URL
define(‚WP_HOME‘,’http://www.——-‚);
define(‚WP_SITEURL‘,’http://www.———‚);// Charset and collate
define(‚DB_CHARSET‘, ‚utf8‘);
define(‚DB_COLLATE‘, ‚utf8_general_ci‘);// Post revisions
define(‚AUTOSAVE_INTERVAL‘, 600); // 10 minutes
define(‚WP_POST_REVISIONS‘, true);// Debug mode
define(‚WP_DEBUG‘, false);
define(‚WP_DEBUG_LOG‘, false);// Authentication unique keys and salts ( https://api.wordpress.org/secret-key/1.1/salt/ )
define(‚AUTH_KEY‘, ‚x6-~]p$8-5im^`:+-+sJLs$l.‘);
define(‚SECURE_AUTH_KEY‘, ‚`~oF-u7]S~_&;3a-ar<hXc‘);
define(‚LOGGED_IN_KEY‘, ‚X2r-0-:.d-ro63|wj-P}%k:‘);
define(‚NONCE_KEY‘, ‚5xYAlP-|3_ ntOa -e;8(4xYI‘);
define(‚AUTH_SALT‘, ‚|1uS+^+-&<><-fFnosS}[‚);
define(‚SECURE_AUTH_SALT‘, ‚xqq`<-@c0Gf+-u=‘);
define(‚LOGGED_IN_SALT‘, ‚<Nq?x#N;f7-NbtWW‘);
define(‚NONCE_SALT‘, ‚lL.Vr?&/SH-&H‘);// MySQL table prefix
$table_prefix = ‚wp_njn523_‘;// Change default directories
define(‚WP_CONTENT_DIR‘, dirname( __FILE__ ) . ‚/content‘);
define(‚WP_CONTENT_URL‘, ‚http://‘ . $_SERVER[ ‚HTTP_HOST‘ ] . ‚/content‘);
define(‚WP_PLUGIN_DIR‘, dirname( __FILE__ ) . ‚/content/plugins‘);
define(‚WP_PLUGIN_URL‘, ‚http://‘ . $_SERVER[ ‚HTTP_HOST‘ ] . ‚/content/plugins‘);
define(‚UPLOADS‘, ‚media‘);// Set primary language
// define(‚WPLANG‘, ‚sk_SK‘);
// define(‚LANGDIR‘, “);// PHP memory limit
define(‚WP_MEMORY_LIMIT‘, ’64M‘);
define(‚WP_MEMORY_MAX_LIMIT‘, ’96M‘);// Automatic updates
define(‚AUTOMATIC_UPDATER_DISABLED‘, false);// Automatic WordPress core updating
define(‚WP_AUTO_UPDATE_CORE‘, true);// Change theme and plugins updates
define(‚DISALLOW_FILE_MODS‘, true);
define(‚DISALLOW_FILE_EDIT‘, true);// Override file permissions
define(‚FS_CHMOD_FILE‘, 0755);
define(‚FS_CHMOD_DIR‘, 0644);// SSL login
define(‚FORCE_SSL_LOGIN‘, false);
define(‚FORCE_SSL_ADMIN‘, false);// Automatic trash feature
define(‚EMPTY_TRASH_DAYS‘, 7);// Auto database optimization
define(‚WP_ALLOW_REPAIR‘, false);// Donation buttons visibility
define(‚WP_HIDE_DONATION_BUTTONS‘, true);// Fix for TinyMCE editor
define(‚CONCATENATE_SCRIPTS‘, false);// ‚Contact Form 7‘ plugin configuration check
define(‚WPCF7_VALIDATE_CONFIGURATION‘, false);// ‚Contact Form 7‘ to disable CSS loading
define (‚WPCF7_LOAD_CSS‘, false);// Multisite network
// define(‚WP_ALLOW_MULTISITE‘, false);// Default theme
// define(‚WP_DEFAULT_THEME‘, “);// Saving DB queries
// define(‚SAVEQUERIES‘, true);// Cookie domain
// define(‚WP_CONTENT_URL‘, ‚http://static.example.com‘);
// define(‚COOKIE_DOMAIN‘, ‚http://example.com‘);// No blog redirection
// define(‚NOBLOGREDIRECT‘, ‚http://example.com‘);// Custom user and usermeta tables
// define(‚CUSTOM_USER_TABLE‘, ‚my_users‘);
// define(‚CUSTOM_USER_META_TABLE‘, ‚my_usermeta‘);// Block external requests
// define(‚WP_HTTP_BLOCK_EXTERNAL‘, true);
// define(‚WP_ACCESSIBLE_HOSTS‘, ‚rpc.pingomatic.com‘);// WordPress error log
@ini_set(‚log_errors‘, ‚Off‘);
@ini_set(‚display_errors‘, ‚Off‘);
// @ini_set(‚error_log‘,’/home/path/domain/logs/php_error.log‘);// Set up vars and included files and absolute path to directory
if (!defined(‚ABSPATH‘))
define(‚ABSPATH‘, dirname(__FILE__) . ‚/‘);
require_once(ABSPATH . ‚wp-settings.php‘);ano oba vyssie subory sú v root
dakujem.
Fórum: Inštalácia WordPress
Odpoveď na: WP DuplicatorTeraz to riesim cez FTP, kopiou na novy hosting, exportoval som databazu (DB), potom na novom hostingu imporoval, upravil som v DB cesty.
Nemoze byt chyba tu? Domena nazov.sk je na jednom hostingu a toto miesto s WordPressom mam na subdomene nazov.sk/web presmerovany na novy hosting
wp-config.php je v root
<?php // Enable W3 Total Cache */ define('WP_CACHE', false); // Disable themes and plugins instalation from administration. define('DISALLOW_FILE_MODS', true); define('DISALLOW_FILE_EDIT', true); // Path to primary configuration file. define('ABSPATH', dirname( __FILE__ ) . '/'); require_once( ABSPATH . 'config.inc.php');
wp.inc.php je v root
<?php define('DB_NAME', '-------'); define('DB_USER', '---------'); define('DB_PASSWORD', '-----------'); define('DB_HOST', 'localhost'); // Site URL define('WP_HOME','http://www.-------'); define('WP_SITEURL','http://www.---------'); // Charset and collate define('DB_CHARSET', 'utf8'); define('DB_COLLATE', 'utf8_general_ci'); // Post revisions define('AUTOSAVE_INTERVAL', 600); // 10 minutes define('WP_POST_REVISIONS', true); // Debug mode define('WP_DEBUG', false); define('WP_DEBUG_LOG', false); // Authentication unique keys and salts ( https://api.wordpress.org/secret-key/1.1/salt/ ) define('AUTH_KEY', 'x6-~]p$8-5im^
:+-+sJLs$l.‘);
define(‚SECURE_AUTH_KEY‘, ‚`~oF-u7]S~_&;3a-ar<hXc‘);
define(‚LOGGED_IN_KEY‘, ‚X2r-0-:.d-ro63|wj-P}%k:‘);
define(‚NONCE_KEY‘, ‚5xYAlP-|3_ ntOa -e;8(4xYI‘);
define(‚AUTH_SALT‘, ‚|1uS+^+-&<><-fFnosS}[‚);
define(‚SECURE_AUTH_SALT‘, ‚xqq`<-@c0Gf+-u=‘);
define(‚LOGGED_IN_SALT‘, ‚<Nq?x#N;f7-NbtWW‘);
define(‚NONCE_SALT‘, ‚lL.Vr?&/SH-&H‘);// MySQL table prefix
$table_prefix = ‚wp_njn523_‘;// Change default directories
define(‚WP_CONTENT_DIR‘, dirname( __FILE__ ) . ‚/content‘);
define(‚WP_CONTENT_URL‘, ‚http://‘ . $_SERVER[ ‚HTTP_HOST‘ ] . ‚/content‘);
define(‚WP_PLUGIN_DIR‘, dirname( __FILE__ ) . ‚/content/plugins‘);
define(‚WP_PLUGIN_URL‘, ‚http://‘ . $_SERVER[ ‚HTTP_HOST‘ ] . ‚/content/plugins‘);
define(‚UPLOADS‘, ‚media‘);// Set primary language
// define(‚WPLANG‘, ‚sk_SK‘);
// define(‚LANGDIR‘, “);// PHP memory limit
define(‚WP_MEMORY_LIMIT‘, ’64M‘);
define(‚WP_MEMORY_MAX_LIMIT‘, ’96M‘);// Automatic updates
define(‚AUTOMATIC_UPDATER_DISABLED‘, false);// Automatic WordPress core updating
define(‚WP_AUTO_UPDATE_CORE‘, true);// Change theme and plugins updates
define(‚DISALLOW_FILE_MODS‘, true);
define(‚DISALLOW_FILE_EDIT‘, true);// Override file permissions
define(‚FS_CHMOD_FILE‘, 0755);
define(‚FS_CHMOD_DIR‘, 0644);// SSL login
define(‚FORCE_SSL_LOGIN‘, false);
define(‚FORCE_SSL_ADMIN‘, false);// Automatic trash feature
define(‚EMPTY_TRASH_DAYS‘, 7);// Auto database optimization
define(‚WP_ALLOW_REPAIR‘, false);// Donation buttons visibility
define(‚WP_HIDE_DONATION_BUTTONS‘, true);// Fix for TinyMCE editor
define(‚CONCATENATE_SCRIPTS‘, false);// ‚Contact Form 7‘ plugin configuration check
define(‚WPCF7_VALIDATE_CONFIGURATION‘, false);// ‚Contact Form 7‘ to disable CSS loading
define (‚WPCF7_LOAD_CSS‘, false);// Multisite network
// define(‚WP_ALLOW_MULTISITE‘, false);// Default theme
// define(‚WP_DEFAULT_THEME‘, “);// Saving DB queries
// define(‚SAVEQUERIES‘, true);// Cookie domain
// define(‚WP_CONTENT_URL‘, ‚http://static.example.com‘);
// define(‚COOKIE_DOMAIN‘, ‚http://example.com‘);// No blog redirection
// define(‚NOBLOGREDIRECT‘, ‚http://example.com‘);// Custom user and usermeta tables
// define(‚CUSTOM_USER_TABLE‘, ‚my_users‘);
// define(‚CUSTOM_USER_META_TABLE‘, ‚my_usermeta‘);// Block external requests
// define(‚WP_HTTP_BLOCK_EXTERNAL‘, true);
// define(‚WP_ACCESSIBLE_HOSTS‘, ‚rpc.pingomatic.com‘);// WordPress error log
@ini_set(‚log_errors‘, ‚Off‘);
@ini_set(‚display_errors‘, ‚Off‘);
// @ini_set(‚error_log‘,’/home/path/domain/logs/php_error.log‘);// Set up vars and included files and absolute path to directory
if (!defined(‚ABSPATH‘))
define(‚ABSPATH‘, dirname(__FILE__) . ‚/‘);
require_once(ABSPATH . ‚wp-settings.php‘);`Fórum: Inštalácia WordPress
Odpoveď na: WP DuplicatorCez duplikator mi hlasi chybu v poslednom kroku:
Show Report
Deploy Errors: (3223) Update Notices: (15) General Notices: (0)Ako dalej na uplny update?
D.
- Táto odpoveď bola upravená pred 7 years, 4 months používateľom mio001.
Fórum: Inštalácia WordPress
Odpoveď na: WP Duplicatorposlane, dakujem.
Fórum: Inštalácia WordPress
Odpoveď na: WP DuplicatorVypol som cache v admine a hlasi mi chybu Chyba pri nadväzovaní spojenia s databázou
Samozrejme som zmenil wp.inc.php priamo v koreni hostingu, ma sa este inde zmenit?
// MySQL configuration
switch ( $_SERVER[‚SERVER_NAME‘] ) {// ‚Production‘ server without ‚www‘
case ‚domena.sk‘:// MySQL
define(‚DB_NAME‘, ‚——-‚);
define(‚DB_USER‘, ‚——–‚);
define(‚DB_PASSWORD‘, ‚——-‚);
define(‚DB_HOST‘, ‚mysql51.websupport.sk:3309‘);// Site URL
define(‚WP_HOME‘,’http://www.domena.sk‘);
define(‚WP_SITEURL‘,’http://www.domena.sk‘);// Charset and collate
define(‚DB_CHARSET‘, ‚utf8‘);
define(‚DB_COLLATE‘, ‚utf8_general_ci‘);// Post revisions
define(‚AUTOSAVE_INTERVAL‘, 600); // 10 minutes
define(‚WP_POST_REVISIONS‘, true);// Debug mode
define(‚WP_DEBUG‘, false);
define(‚WP_DEBUG_LOG‘, false);
define(‚WP_DEBUG_DISPLAY‘, false);break;
// ‚Production‘ server with ‚www‘
case ‚www.domena.sk‘:// MySQL
define(‚DB_NAME‘, ‚——–‚);
define(‚DB_USER‘, ‚———‚);
define(‚DB_PASSWORD‘, ‚———–‚);
define(‚DB_HOST‘, ‚mysql51.websupport.sk:3309‘);// Site URL
define(‚WP_HOME‘,’http://www.domena.sk‘);
define(‚WP_SITEURL‘,’http://www.domena.sk‘);// Charset and collate
define(‚DB_CHARSET‘, ‚utf8‘);
define(‚DB_COLLATE‘, ‚utf8_general_ci‘);// Post revisions
define(‚AUTOSAVE_INTERVAL‘, 600); // 10 minutes
define(‚WP_POST_REVISIONS‘, true);// Debug mode
define(‚WP_DEBUG‘, false);
define(‚WP_DEBUG_LOG‘, false);
define(‚WP_DEBUG_DISPLAY‘, false);break;
}
Dakujem.
Fórum: Inštalácia WordPress
Odpoveď na: WP DuplicatorJe mozne vypnut plugin cache aj mimo administracie?
FTP, databaza? ako?
Fórum: Inštalácia WordPress
Odpoveď na: WP Duplicatorcez FTP
Fórum: Inštalácia WordPress
Odpoveď na: WP DuplicatorAko prosim deaktivujem cache plugin?
Fórum: Inštalácia WordPress
Odpoveď na: WP DuplicatorAhoj,
zmena hostingu.
Ulozenie by bolo ideálne na novom hostingu, je to mozne?
1. Ako prosim vypnem a vymazem cache?
Zálohy z hostingu sú 14 dní, to viem ale ked prekopirijem obsah cez FTP, upravim config, web nejde, nenasiel som iny sposob ako to spojazdnit na inom hostingu, resp. kde vsade sa menia cesty?2. Hosting píše, že je neobmedzene miesto
2.1 ok, dakujem.
2.2 ok, dakujem.
Ked tie hlasky budem ignorovat a dam vykonat zalohu (bod 2.2 nastavim), co sa stane?
Bude spravena realna zaloha?
Padne web?
Iny dovod?Predchadzajuci vyvojar zmenil strukturu – wp-config.php sa nepouziva ale pouziva sa config.inc.php
D.
- Táto odpoveď bola upravená pred 7 years, 4 months používateľom mio001.