Wordpress file permission.I've googled it

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lakerslive
    Confirmed User
    • Aug 2012
    • 929

    #1

    Wordpress file permission.I've googled it

    Hi guys,

    I've google about adding file persmissions for wordpress folders and files but it still wasnt cleared.

    I just want to make sure

    Do i just set the 3 folders
    wp-conteont - 755
    wp-admin - 755
    wp-includes - 755

    BUTTTT

    1. What about the subfolders and the sub sub folders inside those folders??????
    2. Do i add 644 persmission to EVERY SINGLE file in these folders and sub folders?

    tnx
  • EddyTheDog
    Just Doing My Own Thing
    • Jan 2011
    • 25433

    #2
    Originally posted by lakerslive
    Hi guys,

    I've google about adding file persmissions for wordpress folders and files but it still wasnt cleared.

    I just want to make sure

    Do i just set the 3 folders
    wp-conteont - 755
    wp-admin - 755
    wp-includes - 755

    BUTTTT

    1. What about the subfolders and the sub sub folders inside those folders??????
    2. Do i add 644 persmission to EVERY SINGLE file in these folders and sub folders?

    tnx
    Unless you have changed permissions on subfolders yourself then you should be OK...

    Comment

    • lakerslive
      Confirmed User
      • Aug 2012
      • 929

      #3
      are you saying, i should give EVERY folder including the sub sub folders 755 persmission?

      Comment

      • Nick_awt
        Confirmed User
        • Jan 2009
        • 595

        #4
        When you complete the installation WP the first time, that should take care of all the file permissions.

        So you shouldn't need to change/set any permissions.

        Comment

        • EddyTheDog
          Just Doing My Own Thing
          • Jan 2011
          • 25433

          #5
          Originally posted by Nick_awt
          When you complete the installation WP the first time, that should take care of all the file permissions.

          So you shouldn't need to change/set any permissions.
          You put it better than me...

          Comment

          • lakerslive
            Confirmed User
            • Aug 2012
            • 929

            #6
            Originally posted by EddyTheDog
            You put it better than me...
            i gues, i do manual isntallation, meaning, i download wordpress on my desktop, then upload on server via ftp. So i guess, the file permissiona aren't set when i do it that way i suppose

            Comment

            • lakerslive
              Confirmed User
              • Aug 2012
              • 929

              #7
              ok i guess, i found out thte answer

              manual install (when u upload files yoruself) = you have to set each file persmission

              auto wp install (simple click ) = all files and folders automatically have right permissions

              Comment

              • EddyTheDog
                Just Doing My Own Thing
                • Jan 2011
                • 25433

                #8
                Originally posted by lakerslive
                ok i guess, i found out thte answer

                manual install (when u upload files yoruself) = you have to set each file persmission

                auto wp install (simple click ) = all files and folders automatically have right permissions
                ...

                Comment

                • lakerslive
                  Confirmed User
                  • Aug 2012
                  • 929

                  #9
                  Originally posted by EddyTheDog
                  ...
                  SO the lesson here, and let me save u time. My wordpress sites have been getting XSS/hacked, etc

                  Just found out, after all these months of installing my wordpress MANUALLY, that they've all had the wrong permissions set on them. LESSON IS

                  install the core files AUTOMATICALLY so the persmissions will be all set automatically.

                  Comment

                  • plaster
                    So Fucking Banned
                    • Apr 2015
                    • 2295

                    #10
                    Bots will start leaving comments which will make your database so big your server will come to a screaching halt.

                    Comment

                    • EddyTheDog
                      Just Doing My Own Thing
                      • Jan 2011
                      • 25433

                      #11
                      Originally posted by plaster
                      Bots will start leaving comments which will make your database so big your server will come to a screaching halt.
                      You really are a half empty guy...

                      Comment

                      • gnawledge
                        confirmed loser
                        • Jul 2012
                        • 1092

                        #12
                        Originally posted by lakerslive
                        SO the lesson here, and let me save u time. My wordpress sites have been getting XSS/hacked, etc

                        Just found out, after all these months of installing my wordpress MANUALLY, that they've all had the wrong permissions set on them. LESSON IS

                        install the core files AUTOMATICALLY so the persmissions will be all set automatically.
                        Didn't I tell you it was folder permissions? All you have to do is get FANTASTICO on your Cpanel hosting and it installs it for you. And WordPress is pretty easy to install yourself without that anyways. Like I said before I've had issues with scripts requiring server to be DSO php HANDLER and not SUPHP which is apache crap. Which has made my life hell when trying to keep costs down without having to dick around. It's a pain in the ass which had me researching nonsense to get things working when I could have been making websites.

                        These damn folder permissions, scripts, and server setups are a enough to give me explosives diahrhea.
                        Wikifap Cams
                        Eporn List
                        Is Chaturbate Still Number 1?

                        Comment

                        • fris
                          Too lazy to set a custom title
                          • Aug 2002
                          • 55696

                          #13
                          Originally posted by lakerslive
                          Hi guys,

                          I've google about adding file persmissions for wordpress folders and files but it still wasnt cleared.

                          I just want to make sure

                          Do i just set the 3 folders
                          wp-conteont - 755
                          wp-admin - 755
                          wp-includes - 755

                          BUTTTT

                          1. What about the subfolders and the sub sub folders inside those folders??????
                          2. Do i add 644 persmission to EVERY SINGLE file in these folders and sub folders?

                          tnx
                          https://gist.github.com/Adirael/3383404
                          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                          Comment

                          • EddyTheDog
                            Just Doing My Own Thing
                            • Jan 2011
                            • 25433

                            #14
                            Originally posted by fris
                            Bookmarked - Thanks...

                            Comment

                            • just a punk
                              So fuckin' bored
                              • Jun 2003
                              • 32393

                              #15
                              Originally posted by EddyTheDog
                              Unless you have changed permissions on subfolders yourself then you should be OK...
                              Actually that's not correct. How will you upload the additional content like post images into the /uploads folder? It must be writable to the script.
                              Obey the Cowgod

                              Comment

                              • lakerslive
                                Confirmed User
                                • Aug 2012
                                • 929

                                #16
                                Originally posted by fris
                                this cmod? tnx or...what..

                                Comment

                                • anexsia
                                  Confirmed User
                                  • May 2010
                                  • 5735

                                  #17
                                  Wordpress folders should be 755 and files should be 644.

                                  https://codex.wordpress.org/Changing_File_Permissions
                                  https://codex.wordpress.org/Hardening_WordPress

                                  On command-line you can use:

                                  find /path/to/your/wordpress/install/ -type d -exec chmod 755 {} \;

                                  find /path/to/your/wordpress/install/ -type f -exec chmod 644 {} \;

                                  Comment

                                  Working...