WordPress.org

Ready to get started?Download WordPress

Forums

Warning: touch(). File is not within the allowed path(s) (3 posts)

  1. SRD
    Member
    Posted 3 years ago #

    I'm trying to upload secure-wordpress.1.0.6, and I receive the following error:

    Warning: touch() [function.touch]: open_basedir restriction in effect. File(/abs_path/wordpress/tmp/secure-wordpress.tmp) is not within the allowed path(s): (/abs_path/:/abs_path/:/usr/local/lib/php:/tmp/php_upload) in /abs_path/public/www/wordpress/wp-admin/includes/file.php on line 199

    Download failed. Could not create Temporary file.

    The /wp-content folder and all it's subfolders have 777 permission.

    I've added the following two lines to wp-config.php:
    putenv('TMPDIR='.ini_get('upload_tmp_dir') );
    define('WP_TEMP_DIR', ABSPATH .'wp-content/uploads/');

    What else should I try?

  2. SRD
    Member
    Posted 3 years ago #

    Bump

  3. SRD
    Member
    Posted 3 years ago #

    I am using WordPress 3.04 in a PHP 4.49 environment.

Topic Closed

This topic has been closed to new replies.

About this Topic