Archive

Archive for May, 2010

How to get auto upgrade WordPress on host pipni.cz

May 19th, 2010

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/’);

<?php
/**
* 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');
...
...
...
?>
Author: SquallLTT Categories: IT Tags: