WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] File Permissions Set But WP Still Not Working Right (10 posts)

  1. penfil
    Member
    Posted 5 years ago #

    I recently did a self-installation of WP 2.6.2 for my boss. She intends to transfer her old iWeb blog over to WP. The WP blog is now up and running but there is a problem. I am unable to do any file management through WP admin.

    For example: I attempted to import the blogs from the old iWeb blog by way of an RSS import. When I attempt to upload the rss.xml, I get the following error:

    Unable to create directory /usr/local/pem/vhosts/154599/webspace/httpdocs/wordpress/wp-content/uploads/2008/09. Is its parent directory writable by the server?

    I checked the file permissions on the server using the latest version of FileZilla and even other ftp methods. The file permissions were set to allow user and group write. I became frustrated and set them to 775 globally (except the admin folder) just to see if somehow there was some obscure file causing the problem. Still same error.

    I contacted the web-host's tech support, but they wont offer any support whatsoever as it is a self-installation. They also didn't seem to give a care about anything I had to say. If it were my site I would switch to a different host. AllDomains sucks!

    Another thing worth noting: I tried to set up permilinks but it told me it could not modify the .htaccess due to file permissions. But this one went a step further when I ftp'd to make the chagne... There was no .htaccess, furthermore when I attempted to create my own (simply by copy and past of the code WP gave), I uploaded the file and within 5 seconds it disappeared.

    I contacted the tech support on this also and they said that they cannot offer any support (again) but that if the .htaccess was formatted properly it would have been accepted.

    So I copied the .htaccess from my own WP installation on my own web-host (which is awesome) and when I uploaded it that disappeared also.

    Can anyone help me out here? It seems to me to be a problem with the web-host somehow but they swear their servers are flawless.
    Is there some setting I am missing in WP or something?

    I don't mind ftp'ing any changes to the template files, but to have to manually port the old blog to the new one would just be crazy!

    Thanks!

  2. penfil
    Member
    Posted 5 years ago #

    I'm not able to upload images through WP either...

  3. moshu
    Member
    Posted 5 years ago #

    The "parent" (in both cases) is wp-content and it should be 777 to be able to write.

    Is your ftp client set to see "invisible files"? If not, the .htaccess may not be seen.

  4. penfil
    Member
    Posted 5 years ago #

    @moshu - Wouldn't 777 permissions allow access to the public, meaning someone who knew how to do simple hacks could mess with my stuff? On my personal web-host WP blog, I have it at 775 and it works just fine. Also, my FTP client is set to see "invisible files" and there is still no sign of .htaccess.

  5. moshu
    Member
    Posted 5 years ago #

    Yes, it would open it vulnerable for hack. But you can do it just during the import.
    Whether you need 777 or 755 is enough - usually, depends on host and their settings.

  6. penfil
    Member
    Posted 5 years ago #

    @moshu - OK, I switched to 777 just to import and then back to 775. It worked for the import. However I still will not be able to make any changes to the themes or to upload any images through WP.

    You mentioned that what permissions are needed depend on the host. That is what I thought as well. That is why I contacted the web-host to figure out why I cannot get proper access because I believe it is something on their end. But they are not willing to help. I still cannot get a .htaccess either.

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    Wouldn't 777 permissions allow access to the public

    But that's exactly the access that is required to allow uploads from the web. Remember, WP only has whatever permissions that the webserver has. If the webserver is running unprivileged, then the permissions must allow unprivileged write access.

    This does not necessarily open you up to hacking, though. It would allow anybody else with access to that server to write to that directory, but they'd have to gain access to it first.

  8. penfil
    Member
    Posted 5 years ago #

    @Otto42 - Regarding 777 permissions you said:

    This does not necessarily open you up to hacking, though. It would allow anybody else with access to that server to write to that directory, but they'd have to gain access to it first.

    I'm still a little new to the server administration, so how exactly would one get access to it? If a parent director had a more restrictive permission set, say 755, would that prevent them from getting access to the child directory? It doesn't seem that it would as the parent would be readable. If you could help clarify I'd appreciate it.

    Also, what about the .htaccess file, what would cause that not to function properly. Since my boss intends to use this blog for business purposes, it would be nice to have permilinks enabled.

    Thanks.

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    I'm still a little new to the server administration, so how exactly would one get access to it?

    Guess the password, exploit some other process to hack in, etc. Just setting open permissions doesn't get somebody into the box itself.

    Also, what about the .htaccess file, what would cause that not to function properly.

    Check that the requirements are fulfilled first:
    http://codex.wordpress.org/Using_Permalinks#Using_.22Pretty.22_permalinks

  10. penfil
    Member
    Posted 5 years ago #

    Thanks to moshu and Otto42 for your help.

    I set the necessary file permissions to 777 (although I'm still a bit uneasy about it) and it works.

    Now the only problem I have is that I am still not able to keep the .htaccess on the server. For whatever reason it is removed within seconds of uploading it. *shrugs* so much for permilinks.

Topic Closed

This topic has been closed to new replies.

About this Topic