Skip to:
Content
Pages
Categories
Search
Top
Bottom

bb my-plugins & my-templates directories


  • okso
    Participant

    @okso

    Apache has created these two directories with permission rwx r-x — I get the following when trying to delete them:

    Error: Unable to remove file /httpdocs/illuminatus/bbpress//var/www/vhosts/illuminatus.tv/httpdocs/illuminatus/bbpress/my-templates: filemng failed: rm: cannot chdir from .' to/var/www/vhosts/illuminatus.tv/httpdocs/illuminatus/bbpress/my-templates’: Permission denied

    filemng: Error occured during /bin/rm command.

    Error: Unable to remove file /httpdocs/illuminatus/bbpress//var/www/vhosts/illuminatus.tv/httpdocs/illuminatus/bbpress/my-plugins: filemng failed: rm: cannot chdir from .' to/var/www/vhosts/illuminatus.tv/httpdocs/illuminatus/bbpress/my-plugins’: Permission denied

    filemng: Error occured during /bin/rm command.

    How do I delete them as Apache? Thanks in advance.

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

  • _ck_
    Participant

    @_ck_

    Since bbPress 1.0 is now making directories on it’s own from PHP it will cause problems for people on many hosts, because it will be created by the root/nobody owner and a local ftp will not be able to delete it because you don’t have the permissions as a regular user.

    You’d need a short PHP program to delete those as the PHP owner.

    <?php
    rmdir("/var/www/vhosts/illuminatus.tv/httpdocs/illuminatus/bbpress/my-templates");
    rmdir("/var/www/vhosts/illuminatus.tv/httpdocs/illuminatus/bbpress/my-plugins");
    ?>

    I expect quite a bit of problems because of this from people on shared hosts.

    The proper way for it to be done is with posix_setuid before file disk activity but I doubt they will ever do that (or just let people put the files in place like they did with 0.9)

    ps. actually your directory names seem too long, what happens if you try to

    rm /var/www/vhosts/illuminatus.tv/httpdocs/illuminatus/bbpress/my-templates
    rm /var/www/vhosts/illuminatus.tv/httpdocs/illuminatus/bbpress/my-plugins


    okso
    Participant

    @okso

    I’ve tried the script at http://62.233.82.132/illuminatus/bbpress/delete_directory.php but it doesn’t delete the two erroneous directories. I’ve also tried using plesk file manager but don’t have permissions to either delete file or change the current rwx r-x —. If I try to upload a theme to my-templates I get an ftp error ‘directory doesn’t exist’ so it appears to me that the two directories, my-plugs and templates, don’t serve bb1.0 automatic creation of directories well.


    _ck_
    Participant

    @_ck_

    If Plesk file manager can see it but not delete it, something is very wrong.

    If you are on shared hosting you may have to ask the host to delete them as root.

    Make sure you are crystal clear as to which directories with your host because I’ve seen hosts wipe out the wrong thing with an underpaid, undertrained tech.


    okso
    Participant

    @okso

    thanks for your post. I can actually log into my plesk as root but it doesn’t do more than my administrator login, still no joy. I’ll have to go for asking host to delete the two directories. This function in bb1.0 needs dropping, no?


    chrishajer
    Participant

    @chrishajer

    I did report this a little while ago:

    https://trac.bbpress.org/ticket/1139


    chrishajer
    Participant

    @chrishajer

    Why does bbPress make the directories using PHP and not just include empty directories in the download?

    I thought at first that WordPress shipped a couple empty directories/folder, but it doesn’t appear to. So how can WordPress get this correct (creating directories as needed) and bbPress not, on the same host? Is it as Sam says, choosing security over usability (and in the process making it completely unusable)?

    Even though it is fixed in https://trac.bbpress.org/changeset/2327

    I svn bbPress 1.0.2 and again I had to chmod the my-templates folder

    my-plugins folder even being 750 is running fine. I guess its the plugins which may require higher permissions. am i right?

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar