Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    ian
    ian is offline Junior Member
    Join Date
    Oct 2009
    Posts
    6

    Default Wordpress - Permissions problems

    Hello!

    I'm having some issues with all of our Wordpress installations on our Myhosting.com Linux sub-site and they all have to do with not having sufficient permissions.

    WP's auto-update, in addition to some of the plugins (a csv importer), will not function. The plugin, specifically, is the main issue. I am confronted with the following error:

    Warning: move_uploaded_file(/var/www/domains/ourdomain.com/docs/temp-file.csv) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/domains/ourdomain.com/docs/subdir/wp-content/plugins/store-locator/add-locations.php on line 51

    I have attempted to change the permissions to the file in question by way of my ftp client and the myhosting.com file manager... to no success (changed to 775 from 644).

    Any help would be much appreciated!

  2. #2
    jeremya is offline Administrator
    Join Date
    Jun 2008
    Posts
    270

    Default

    Setting the permissions to 777 during your upgrade should work, just be sure to set them back after. I imagine the same would apply to the CSV import plugin.
    -Jeremya

  3. #3
    nickh is offline Administrator
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    142

    Default

    Hi Ian. It's strange that WordPress' auto-upgrade tool doesn't work for you. I just tried it in a fresh WordPress install on a test domain, and the upgrade succeeded.

    In your WordPress admin control panel, when you go to
    Tools > Upgrade > Upgrade Automatically
    are you asked to fill in "connection information"?

    For the plugin that's failing to move a file, you'll probably need to set the permissions on files and directories in wp-content/uploads/ to 777.

    Let me know about the upgrade tool and if the 777 perm works. Cheers,
    Nick
    Nick Hoffman
    Software Developer
    SoftCom Inc.

  4. #4
    ian
    ian is offline Junior Member
    Join Date
    Oct 2009
    Posts
    6

    Default

    Hi Jeremy and Nick, thanks for replying.

    Setting the permissions to 777 during your upgrade should work, just be sure to set them back after. I imagine the same would apply to the CSV import plugin.
    For the plugin that's failing to move a file, you'll probably need to set the permissions on files and directories in wp-content/uploads/ to 777.
    Unfortunately, there is no uploads directory in /wp-content. However, there is one at wp-content/plugins/store-locator/uploads. I've tried setting this folder to 777, in addition to the add-locations.php file in the warning. Doing this didn't work out.

    Are there specific Wordpress files that should have changed permissions, as a foundation (before any plugins come into play), because in addition to the plugin problem, I do not have access to the theme/plugin editors in WP.

    In your WordPress admin control panel, when you go to
    Tools > Upgrade > Upgrade Automatically
    are you asked to fill in "connection information"?
    Yep. I've tried putting in the information I use for FTP access (IP address, ftp username/password) and the updater did not work.

    The error I receive is:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp//wordpress-2.8.5.zip) is not within the allowed path(s): (/var/www/domains/ourdomain.com/:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/www/myfilemanager:/var/www/myinstaller:/usr/local/lib/php) in /var/www/domains/ourdomain.com/docs/locate/wp-includes/functions.php on line 2118

    Warning: touch() [function.touch]: open_basedir restriction in effect. File(/tmp/wordpress-2.8.5.zip) is not within the allowed path(s): (/var/www/domains/ourdomain.com/:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/www/myfilemanager:/var/www/myinstaller:/usr/local/lib/php) in /var/www/domains/ourdomain.com/docs/locate/wp-admin/includes/file.php on line 175

    Download failed.: Could not create Temporary file

    Installation Failed
    Last edited by ian; 2009-10-22 at 07:03 PM. Reason: added warnings from Wordpress auto-updater

  5. #5
    nickh is offline Administrator
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    142

    Default

    Quote Originally Posted by ian View Post
    Unfortunately, there is no uploads directory in /wp-content.
    Hrm, you should really have that. Create wp-content/uploads/ , and set the permissions on it to 777.

    Quote Originally Posted by ian View Post
    I've tried setting this folder to 777, in addition to the add-locations.php file in the warning. Doing this didn't work out.
    Restore the original perms on add-locations.php . 777 on it won't help, because that simply allows anyone to read, edit, and execute that PHP script.

    Quote Originally Posted by ian View Post
    Yep. I've tried putting in the information I use for FTP access (IP address, ftp username/password) and the updater did not work.

    The error I receive is:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp//wordpress-2.8.5.zip) is not within the allowed path(s): (/var/www/domains/ourdomain.com/:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/www/myfilemanager:/var/www/myinstaller:/usr/local/lib/php) in /var/www/domains/ourdomain.com/docs/locate/wp-includes/functions.php on line 2118
    Could you please post which domain you're having troubles with, or PM it to me? This error shouldn't be happening, so I'd like to check what's causing it on your server.
    Nick Hoffman
    Software Developer
    SoftCom Inc.

  6. #6
    ian
    ian is offline Junior Member
    Join Date
    Oct 2009
    Posts
    6

    Default

    Hrm, you should really have that. Create wp-content/uploads/ , and set the permissions on it to 777.
    Ok, done.

    Restore the original perms on add-locations.php . 777 on it won't help, because that simply allows anyone to read, edit, and execute that PHP script.
    Yep, done.

    Could you please post which domain you're having troubles with, or PM it to me? This error shouldn't be happening, so I'd like to check what's causing it on your server.
    There are particulars to how it's all setup, which I'd rather PM you. But, I can't seem to find the PM link. It's not in your drop-down menu and it's not in the UCP.
    Last edited by ian; 2009-10-23 at 02:19 PM.

  7. #7
    nickh is offline Administrator
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    142

    Default

    Quote Originally Posted by ian View Post
    eco-max.ca (there are particulars to how it's all setup, which I'd rather PM you. But, I can't seem to find the PM link. It's not in your drop-down menu and it's not in the UCP.)
    That's odd. I'll send you a PM, and then you can reply to it.
    Nick Hoffman
    Software Developer
    SoftCom Inc.

  8. #8
    RichardLeik is offline Official Member SpaceHamster
    Join Date
    Oct 2009
    Posts
    23

    Default

    From the PHP error that I have read, it seems creating the "uploads" folder and setting it to 777 should fix the problem.

  9. #9
    nickh is offline Administrator
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    142

    Default

    Quote Originally Posted by RichardLeik View Post
    From the PHP error that I have read, it seems creating the "uploads" folder and setting it to 777 should fix the problem.
    Thanks for the recommendation, Richard. That wasn't the issue, but we fixed the problem via PM on Friday afternoon.
    Nick Hoffman
    Software Developer
    SoftCom Inc.

  10. #10
    jaas666 is offline Official Member
    Join Date
    Oct 2010
    Posts
    11

    Default

    Quote Originally Posted by nickh View Post
    Thanks for the recommendation, Richard. That wasn't the issue, but we fixed the problem via PM on Friday afternoon.
    I'm having the same problem..

    I'm pretty sure it has to do with my installation.. I brought my wordpress from another host.. didn't not used your installer..

    I'm almost certain the problem is with the owner of the files and the account running apache!!

    Can you help? domain is cachedisland.com..


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts