ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Debian upgrade from 7 to 9 - no sub pages display now.

    IT Discussion
    linod wordpress debian 7 debian 9
    4
    27
    3.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WLS-ITGuyW
      WLS-ITGuy @marcinozga
      last edited by

      @marcinozga said in Debian upgrade from 7 to 9 - no sub pages display now.:

      Apache mod_rewrite could be disabled. Check .htaccess file if rewrite rules are there. Can you access pages with "ugly" query string after main url. ie. /?p=11 ?

      Not seeing a .htaccess page and when I type a2enmod rewrite I get module rewrite already enabled.

      M 1 Reply Last reply Reply Quote 0
      • M
        marcinozga @WLS-ITGuy
        last edited by

        @wls-itguy said in Debian upgrade from 7 to 9 - no sub pages display now.:

        @marcinozga said in Debian upgrade from 7 to 9 - no sub pages display now.:

        Apache mod_rewrite could be disabled. Check .htaccess file if rewrite rules are there. Can you access pages with "ugly" query string after main url. ie. /?p=11 ?

        Not seeing a .htaccess page and when I type a2enmod rewrite I get module rewrite already enabled.

        .htaccess is not a page, it's a file, most likely in your wordpress root folder.

        WLS-ITGuyW 1 Reply Last reply Reply Quote 0
        • WLS-ITGuyW
          WLS-ITGuy @marcinozga
          last edited by

          @marcinozga said in Debian upgrade from 7 to 9 - no sub pages display now.:

          @wls-itguy said in Debian upgrade from 7 to 9 - no sub pages display now.:

          @marcinozga said in Debian upgrade from 7 to 9 - no sub pages display now.:

          Apache mod_rewrite could be disabled. Check .htaccess file if rewrite rules are there. Can you access pages with "ugly" query string after main url. ie. /?p=11 ?

          Not seeing a .htaccess page and when I type a2enmod rewrite I get module rewrite already enabled.

          .htaccess is not a page, it's a file, most likely in your wordpress root folder.

          Sorry, that is what I meant. Not seeing it in the wordpress root folder.

          1 Reply Last reply Reply Quote 0
          • M
            marcinozga
            last edited by

            That's probably your problem. Btw, are you accessing it through terminal, or through some web panel? This file is hidden and won't normally show up.

            WLS-ITGuyW 1 Reply Last reply Reply Quote 0
            • WLS-ITGuyW
              WLS-ITGuy @marcinozga
              last edited by

              @marcinozga accessing through ftp

              M 1 Reply Last reply Reply Quote 0
              • M
                marcinozga @WLS-ITGuy
                last edited by

                @wls-itguy it won't show then.

                WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                • WLS-ITGuyW
                  WLS-ITGuy @marcinozga
                  last edited by

                  How do I post a pic?

                  https://imgur.com/WcpowGP

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    marcinozga @WLS-ITGuy
                    last edited by marcinozga

                    @wls-itguy post output of ls -la
                    And if .htaccess is there, output of cat .htaccess

                    WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                    • WLS-ITGuyW
                      WLS-ITGuy @marcinozga
                      last edited by

                      @marcinozga said in Debian upgrade from 7 to 9 - no sub pages display now.:

                      @wls-itguy post output of ls -la
                      And if .htaccess is there, output of cat .htaccess

                      ls -la output: https://pastebin.com/74GTKZY2

                      CAT output: https://pastebin.com/bzf9yU6z

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        marcinozga @WLS-ITGuy
                        last edited by marcinozga

                        @wls-itguy can you post output of cat .htaccess2 too? My guess is it got added when upgrading, and while .htaccess looks correct, if you have additional caching plugins, there might be additional rules in .htaccess2.

                        WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                        • WLS-ITGuyW
                          WLS-ITGuy @marcinozga
                          last edited by

                          @marcinozga

                          https://pastebin.com/g6c2Rkr3

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            marcinozga @WLS-ITGuy
                            last edited by

                            @wls-itguy ok, rename .htaccess to htaccess-old for example, and rename .htaccess2 to .htaccess and change owner on new .htaccess to www-data:www-data

                            WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                            • WLS-ITGuyW
                              WLS-ITGuy @marcinozga
                              last edited by

                              @marcinozga said in Debian upgrade from 7 to 9 - no sub pages display now.:

                              @wls-itguy ok, rename .htaccess to htaccess-old for example, and rename .htaccess2 to .htaccess and change owner on new .htaccess to www-data:www-data

                              -rwxr-xr-x 1 www-data www-data 1440 Oct 31 13:47 .htaccess

                              Tried to reset permalinks again and still no change

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                marcinozga @WLS-ITGuy
                                last edited by

                                @wls-itguy restart apache, it should be necessary, but I've seen weirder things.

                                WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                                • WLS-ITGuyW
                                  WLS-ITGuy @marcinozga
                                  last edited by

                                  @marcinozga said in Debian upgrade from 7 to 9 - no sub pages display now.:

                                  @wls-itguy restart apache, it should be necessary, but I've seen weirder things.

                                  thought the same thing but no change 🙂

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    marcinozga
                                    last edited by

                                    What does the wordpress admin panel show? Does it display any warnings? Anything on permalinks page?

                                    WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                                    • WLS-ITGuyW
                                      WLS-ITGuy @marcinozga
                                      last edited by

                                      @marcinozga no warnings. When I make the change it says change made.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        marcinozga
                                        last edited by marcinozga

                                        I almost forgot, apache config probably got reset to default. Find your AllowOverride directive in your web root config and make sure it's set to either FileInfo or All. Options directive should also include FollowSymlinks. Restart Apache after making changes in config files.

                                        WLS-ITGuyW 2 Replies Last reply Reply Quote 3
                                        • WLS-ITGuyW
                                          WLS-ITGuy @marcinozga
                                          last edited by

                                          @marcinozga said in Debian upgrade from 7 to 9 - no sub pages display now.:

                                          I almost forgot, apache config probably got reset to default. Find your AllowOverride directive in your web root config and make sure it's set to either FileInfo or All. Options directive should also include FollowSymlinks. Restart Apache after making changes in config files.

                                          BOOM!!!!! FIXED!!!

                                          1 Reply Last reply Reply Quote 1
                                          • WLS-ITGuyW
                                            WLS-ITGuy @marcinozga
                                            last edited by

                                            @marcinozga Thanks for the help. Now I can move onto something else, like a nap 🙂

                                            1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post