May
19
2010

How to get auto upgrade WordPress on host pipni.cz


Host pipni.cz has some security settings that don’t allow user to access the default temp directory, so we can’t do auto upgrade version for WordPress. Here, I’ll show you how to do auto upgrade by creating our own temp directory.

1) First, add a “tmp” foler under wordpress blog directory.
2) Added the following lines to “wp-config.php” to point wordpress temp directory to it

if ( !defined(‘WP_TEMP_DIR’) )
define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/tmp/’);

/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information by
* visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
* installation. You don't have to use the web site, you can just copy this file
* to "wp-config.php" and fill in the values.
*
* @package WordPress
*/

if ( !defined('WP_TEMP_DIR') )
define('WP_TEMP_DIR', dirname(__FILE__) . '/tmp/');

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'databasename');

/** MySQL database username */
define('DB_USER', 'username');
...
...
...
?>

Note: Remember to DeActive all the Plugins before upgrading WordPress

Related Posts

About the Author:

Hobbies: Reading books, listening to music, coding, robotics

Leave a comment


Domain Registrations starting at $9.98*

Categories

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

EverBot twitter