We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26183
    • 36 Posts
    Quote from: Everett at Oct 01, 2009, 11:42 AM

    Who is the owner of the file? Usually FTP clients will show permissions and ownership of a file. I’ve had some weird experiences when the ownership of a file/folder got changed so I was unable to delete. I had to first change the owner...

    ... refreshing the cache is a good idea too... maybe it has been deleted...

    Sorry, when I said the owner of the file is just a bunch of numbers, I meant to say that it is the prefase ix of my databe name, like all the other folders.

    I’ve tried clearing the cache, restarting my laptop etc but to no avail
      • 26183
      • 36 Posts
      By the way, this is the message I keep getting when trying to delete the folder via my online file manager:


      Warning: ftp_delete() [function.ftp-delete]: Prohibited file name: /public_html/ggfd/.pureftpd-upload.4ac360d8.15.3f41.64e402d6 in /home/files/public_html/includes/filesystem.inc.php on line 901

      Warning: ftp_delete() [function.ftp-delete]: Prohibited file name: .pureftpd-upload.4ac360d8.15.3f41.64e402d6 in /home/files/public_html/includes/filesystem.inc.php on line 925

      Warning: ftp_delete() [function.ftp-delete]: Prohibited file name: /public_html/ggfd/.pureftpd-upload.4ac361ad.15.4374.54ff9f6c in /home/files/public_html/includes/filesystem.inc.php on line 901

      Warning: ftp_delete() [function.ftp-delete]: Prohibited file name: .pureftpd-upload.4ac361ad.15.4374.54ff9f6c in /home/files/public_html/includes/filesystem.inc.php on line 925

      Warning: ftp_rmdir() [function.ftp-rmdir]: Can’t remove directory: Directory not empty in /home/files/public_html/includes/filesystem.inc.php on line 811

      Warning: ftp_rmdir() [function.ftp-rmdir]: Can’t remove directory: Directory not empty in /home/files/public_html/includes/filesystem.inc.php on line 835
        • 15082
        • 195 Posts
        Try deleting the files/folders inside install one by one..
        Maybe a corrupted file/folder prevents the folder from being deleted.

        OR

        Ask your hoster to delete the folder...

        Greetz
        JUSI
          • 9207 ☆ A M B ☆
          • 2,475 Posts
          Yeah, I think your FTP client is thwarting you. If you can get shell access, this stuff can go much much faster. Do you have shell access (ssh)?

          It looks like you’re trying to delete the includes folder... are you?

          Contacting the host might be a good way to go if it’s being this complicated...
            • 26183
            • 36 Posts
            Quote from: jusicgn at Oct 01, 2009, 02:07 PM

            Try deleting the files/folders inside install one by one..
            Maybe a corrupted file/folder prevents the folder from being deleted.

            OR

            Ask your hoster to delete the folder...

            Greetz
            JUSI

            I’ve tried deleting the individual files in the install folder already, but it will not allow me...

            I’ve just sent an email to my host provider, asking them to delete it for me. Hopefully they’ll acquiesce as I’m using a free host provider.
              • 26183
              • 36 Posts
              Quote from: Everett at Oct 01, 2009, 02:19 PM

              Yeah, I think your FTP client is thwarting you. If you can get shell access, this stuff can go much much faster. Do you have shell access (ssh)?

              It looks like you’re trying to delete the includes folder... are you?

              Contacting the host might be a good way to go if it’s being this complicated...

              Eureka. The error has now been fixed, simply by entering cpanel and resetting all the file permissions. I didn’t have to use SSH.

              I now need to send another email to my host provider asking them not to delete anything lol
                • 26183
                • 36 Posts
                Thanks again, you guys! The solution was all contained in the C Panel, under "fix file permissions". For some reason, I didn’t even think to look there.

                  • 15082
                  • 195 Posts
                  You’re welcome.
                  Glad you got it sorted out.

                  Greetz
                  JUSI
                    • 26183
                    • 36 Posts
                    It looks like I have another question:

                    Below are the instructions for securing your site:


                    http://wiki.modxcms.com/index.php/Securing_your_site

                    Changing File Permissions

                    In the installation guide the folder permissions are advised to set to 666 or 777. So change the permissions to the following:

                    1. /assets/cache folder to 700
                    2. all files inside /assets/cache folder to 600, except index.html
                    3. /assets/export folder to 755
                    4. /assets/images folder to 755
                    5. /manager/includes/config.inc.php to 600 (after installation has finished)

                    MODx also currently has hardcoded permissions set 666 or 777 to files that are uploaded through the file managers. To make the suite for suPHP and PHPSuexec, you need to do the following edits (patch file against rev 1630 can be downloaded [here]):


                    Now, I’m having major problems with step number two. I can’t change the write permission for the file called "docid_7.pageCache.php" from 0644 to 0600. Is this normal?

                    Thanks again!
                      • 26183
                      • 36 Posts
                      Don’t worry- problem fixed! It was the same file permission problem again!