Title: wordpress base path, how do i set it ?
Last modified: August 19, 2016

---

# wordpress base path, how do i set it ?

 *  [thenamenoonehastaken](https://wordpress.org/support/users/thenamenoonehastaken/)
 * (@thenamenoonehastaken)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/)
 * Hi everyone,
 * I am really new to the world of wordpress and have a site that we have moved 
   servers.
 * The site functions however the content editor is having problems trying to upload
   images through the image manager.
 * when you click the image manager button from the wysiwyg editor… it displays 
   with the following error message
 * “Invalid base directory: /var/www/html/rosreines2/wp-content/uploads/”
 * How do i go about changing the base directory so the editors can upload images.
 * I am hoping there is a setting somewhere that i can define this value… or if 
   there is a line of code somewhere.. can you point me to the file so i can make
   the change ?
 * thanks in advance

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848121)
 * wp-admin/options.php
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848122)
 * The setting you are trying to change is on one of the tabs. But if you cannot
   find it:
 * wp-admin/options.php
 * (everything can be found there) — and its NOT called that either. its called 
   upload_path
 *  [jonimueller](https://wordpress.org/support/users/jonimueller/)
 * (@jonimueller)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848123)
 * It sounds like WP is looking for /wp-content/uploads and not finding it. I can’t
   remember with the newer versions of WP if it’s part of the distro or not. So 
   check your server to see if you indeed do have a subfolder of /wp-content called
   uploads. If not, create it, and give it write permissions. (Usually 755.)
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848124)
 * the problem is undoubtedly with the /var/www/html/rosreines2
 * if they changed servers, **that** path is probably different than before.
 *  Thread Starter [thenamenoonehastaken](https://wordpress.org/support/users/thenamenoonehastaken/)
 * (@thenamenoonehastaken)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848125)
 * hi,
 * it has a directory called uploads.
    The correct dir /var/www/rosreines2/wp-content/
   uploads/
 * the actual dir that is being used
    /var/www/html/rosreines2/wp-content/uploads/
 * so how do i go about changing it so it doesn’t have the html directory in the
   string ?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848129)
 * I just told you. Did you read my replies?
 *  [jonimueller](https://wordpress.org/support/users/jonimueller/)
 * (@jonimueller)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848130)
 * Ah, that makes sense, Whoo.
 *  Thread Starter [thenamenoonehastaken](https://wordpress.org/support/users/thenamenoonehastaken/)
 * (@thenamenoonehastaken)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848133)
 * Hi,
 * thanks for all your help. I have opened up the options.php page within the wp-
   admin dir… and i cant see what you are referring to..
 * <?php
    require_once(‘admin.php’);
 * $title = __(‘Options’);
    $this_file = ‘options.php’; $parent_file = ‘options-
   general.php’;
 * $wpvarstoreset = array(‘action’);
    for ($i=0; $i<count($wpvarstoreset); $i +=
   1) { $wpvar = $wpvarstoreset[$i]; if (!isset($$wpvar)) { if (empty($_POST[“$wpvar”])){
   if (empty($_GET[“$wpvar”])) { $$wpvar = ”; } else { $$wpvar = $_GET[“$wpvar”];}}
   else { $$wpvar = $_POST[“$wpvar”]; } } }
 * if ( !current_user_can(‘manage_options’) )
    die ( __(‘Cheatin’ uh?’) );
 * switch($action) {
 * case ‘update’:
    $any_changed = 0;
 *  check_admin_referer();
 *  if (!$_POST[‘page_options’]) {
    foreach ($_POST as $key => $value) { $options[]
   = $key; } } else { $options = explode(‘,’, stripslashes($_POST[‘page_options’]));}
 *  // Save for later.
    $old_siteurl = get_settings(‘siteurl’); $old_home = get_settings(‘
   home’);
 *  // HACK
    // Options that if not there have 0 value but need to be something 
   like “closed” $nonbools = array(‘default_ping_status’, ‘default_comment_status’);
   if ($options) { foreach ($options as $option) { $option = trim($option); $value
   = trim(stripslashes($_POST[$option])); if( in_array($option, $nonbools) && ( 
   $value == ‘0’ || $value == ”) ) $value = ‘closed’;
 *  if( $option == ‘blogdescription’ || $option == ‘blogname’ )
    if (current_user_can(‘
   unfiltered_html’) == false) $value = wp_filter_post_kses( $value );
 *  if (update_option($option, $value) ) {
    $any_changed++; } } }
 *  if ($any_changed) {
    // If siteurl or home changed, reset cookies. if ( get_settings(‘
   siteurl’) != $old_siteurl || get_settings(‘home’) != $old_home ) { // If home
   changed, write rewrite rules to new location. $wp_rewrite->flush_rules(); // 
   Get currently logged in user and password. get_currentuserinfo(); // Clear cookies
   for old paths. wp_clearcookie(); // Set cookies for new paths. wp_setcookie($
   user_login, $user_pass_md5, true, get_settings(‘home’), get_settings(‘siteurl’));}
 *  //$message = sprintf(__(‘%d setting(s) saved… ‘), $any_changed);
    }
 *  $referred = remove_query_arg(‘updated’ , $_SERVER[‘HTTP_REFERER’]);
    $goback
   = add_query_arg(‘updated’, ‘true’, $_SERVER[‘HTTP_REFERER’]); $goback = preg_replace(‘
   |[^a-z0-9-~+_.?#=&;,/:]|i’, ”, $goback); wp_redirect($goback); break;
 * default:
    include(‘admin-header.php’); ?>
 * <div class=”wrap”>
    <h2><?php _e(‘All options’); ?></h2> <form name=”form” action
   =”options.php” method=”post”> <input type=”hidden” name=”action” value=”update”/
   > <table width=”98%”> <?php $options = $wpdb->get_results(“SELECT * FROM $wpdb-
   >options ORDER BY option_name”);
 * foreach ($options as $option) :
    $value = wp_specialchars($option->option_value);
   echo “ <tr> <th scope=’row’><label for=’$option->option_name’>$option->option_name
   </label></th> <td><input type=’text’ name=’$option->option_name’ id=’$option-
   >option_name’ size=’30’ value='” . $value . “‘ /></td> <td>$option->option_description
   </td> </tr>”; endforeach; ?> </table> <p class=”submit”><input type=”submit” 
   name=”Update” value=”<?php _e(‘Update Settings »’) ?>” /></p> </form> </div>
 * <?php
    break; } // end switch
 * include(‘admin-footer.php’);
    ?>
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848135)
 * No. Open it in your browser, not an editor.
 * login to your site. go to wp-admin/options.php
 * FFS.
 *  Thread Starter [thenamenoonehastaken](https://wordpress.org/support/users/thenamenoonehastaken/)
 * (@thenamenoonehastaken)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848141)
 * thank you very much for your assistance thus far.
 * I must say i really don’t know much about this product. I have already done that..
   and it it appears that the user account that I have been using wont allow me 
   to gain access to that page. it prompts me with a nice little message saying “
   Cheeting uh”
 * We have inherrited this site from another company with pretty much no handover…
   so im in the dark on this one and I really know nothing about wordpress at all…
 * any idea on why this page wont allow me to access it ?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848143)
 * If you cannot get to that page, the actual tab its under is the miscellaneous
   one. In 2.6.x its called settings/miscellaneous.
 * In older versions, its under options/miscellaneous.
 * Please stop expounding on your newness, its not necessary. When you’re done with
   this crisis, rather than trying to blog and upload.. how about [looking over the documentation](http://codex.wordpress.org/Main_Page)..
 * and please dont TRIPLEpost. Your name on these forums is a link to your profile.
   ALL of your posts are locatable there. There is NO need to doublepost — you merely
   need to politely bump (polite meaning you have waited an adequate amount of time
   without an answer)
 *  Thread Starter [thenamenoonehastaken](https://wordpress.org/support/users/thenamenoonehastaken/)
 * (@thenamenoonehastaken)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848145)
 * I have just logged in phpMyAdmin and have noticed in the user meta data table
   there appears to be the value below assigned to the user account.
 * would it be safe to assume that because the use account is “editor” it would 
   be preventing me from gaining access to the options ?
 * wp_capabilities a:1:{s:6:”editor”;b:1;}
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848146)
 * yes. and you can change the problem with the path statement while you are there
   as well. Its in the options table.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘wordpress base path, how do i set it ?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 13 replies
 * 3 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/wordpress-base-path-how-do-i-set-it/#post-848146)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
