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

    Installing Fedora 27 LAMP Stack plus WordPress and SSL

    Scheduled Pinned Locked Moved IT Discussion
    fedora 27wordpresslamphow-to
    24 Posts 8 Posters 4.8k Views
    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.
    • A
      Alex Sage
      last edited by

      Now add a section for Virual Hosts 😉

      1 Reply Last reply Reply Quote 1
      • ObsolesceO
        Obsolesce
        last edited by

        @jaredbusch said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

        #Secure mariadb. These commands do what mysql_secure_installation does interactively
        mysql -e "UPDATE mysql.user SET Password=PASSWORD('somesecurepassword') WHERE User='root';"
        mysql -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');"
        mysql -e "DELETE FROM mysql.user WHERE User='';"
        mysql -e "DROP DATABASE test;"
        mysql -e "FLUSH PRIVILEGES;"
        

        Awesome, I'll update my post when I'm not in my 2nd office.

        JaredBuschJ 1 Reply Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch @Obsolesce
          last edited by

          @tim_g said in Installing Fedora 27 LAMP Stack plus WordPress:

          @jaredbusch said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

          #Secure mariadb. These commands do what mysql_secure_installation does interactively
          mysql -e "UPDATE mysql.user SET Password=PASSWORD('somesecurepassword') WHERE User='root';"
          mysql -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');"
          mysql -e "DELETE FROM mysql.user WHERE User='';"
          mysql -e "DROP DATABASE test;"
          mysql -e "FLUSH PRIVILEGES;"
          

          Awesome, I'll update my post when I'm not in my 2nd office.

          Yeah, I was driving home last night and couldn’t dig that up for you directly.

          1 Reply Last reply Reply Quote 0
          • B
            bnrstnr
            last edited by

            Do you guys use dnf-automatic on all of your fedora servers?

            scottalanmillerS JaredBuschJ A black3dynamiteB 4 Replies Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @bnrstnr
              last edited by

              @bnrstnr said in Installing Fedora 27 LAMP Stack plus WordPress:

              Do you guys use dnf-automatic on all of your fedora servers?

              Generally, yes.

              1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @bnrstnr
                last edited by

                @bnrstnr said in Installing Fedora 27 LAMP Stack plus WordPress:

                Do you guys use dnf-automatic on all of your fedora servers?

                I do.

                1 Reply Last reply Reply Quote 0
                • A
                  Alex Sage @bnrstnr
                  last edited by

                  @bnrstnr yup, and my containers too 😉

                  1 Reply Last reply Reply Quote 1
                  • black3dynamiteB
                    black3dynamite @bnrstnr
                    last edited by

                    @bnrstnr said in Installing Fedora 27 LAMP Stack plus WordPress:

                    Do you guys use dnf-automatic on all of your fedora servers?

                    I do. And it’s important to have it send an email with the results of the completed updates so you can look over it.

                    1 Reply Last reply Reply Quote 3
                    • ObsolesceO
                      Obsolesce
                      last edited by

                      I should note that I have an updated Fedora 27 and WordPress procedure here:

                      https://www.timothygruber.com/web/creating-modern-wiki-wordpress/

                      black3dynamiteB 1 Reply Last reply Reply Quote 1
                      • black3dynamiteB
                        black3dynamite @Obsolesce
                        last edited by

                        @tim_g said in Installing Fedora 27 LAMP Stack plus WordPress:

                        I should note that I have an updated Fedora 27 and WordPress procedure here:

                        https://www.timothygruber.com/web/creating-modern-wiki-wordpress/

                        Nice job on guide. I do have a question about the theme and plugin install. Shouldn’t you using sudo -u apache wp to install themes and plugins?

                        ObsolesceO 1 Reply Last reply Reply Quote 0
                        • ObsolesceO
                          Obsolesce @black3dynamite
                          last edited by Obsolesce

                          @black3dynamite said in Installing Fedora 27 LAMP Stack plus WordPress:

                          @tim_g said in Installing Fedora 27 LAMP Stack plus WordPress:

                          I should note that I have an updated Fedora 27 and WordPress procedure here:

                          https://www.timothygruber.com/web/creating-modern-wiki-wordpress/

                          Nice job on guide. I do have a question about the theme and plugin install. Shouldn’t you using sudo -u apache wp to install themes and plugins?

                          Thanks.

                          No, it installs them just fine. I verified the files are owned by apache:apache in the directory.
                          If you get a warning about not using sudo -u apache, then you can. It doesn't matter.

                          1 Reply Last reply Reply Quote 0
                          • ObsolesceO
                            Obsolesce
                            last edited by

                            Updated LAMP section to install Let's Encrypt SSL (https) implementation:

                            https://www.timothygruber.com/linux/creating-lamp-server-fedora-27-ssl/

                            1 Reply Last reply Reply Quote 2
                            • hobbit666H
                              hobbit666
                              last edited by

                              This is on my to-do list today. Need a clean install to compare a site that the theme has been modified and I can't see what file they've edited

                              1 Reply Last reply Reply Quote 1
                              • B
                                bnrstnr @Obsolesce
                                last edited by

                                @tim_g said in Installing Fedora 27 LAMP Stack plus WordPress and SSL:

                                Create a new secure SSH key:
                                ssh-keygen -t rsa -b 4096 -C "root-webserv1-key"

                                Hit enter for default location and name.
                                Hit enter again to skip passphrase creation.
                                Now you should SSH to server to continue.

                                Does this step disable normal logins or change anything at all? After my first restart my root password isn't working.

                                NashBrydgesN ObsolesceO 2 Replies Last reply Reply Quote 0
                                • NashBrydgesN
                                  NashBrydges @bnrstnr
                                  last edited by

                                  @bnrstnr said in Installing Fedora 27 LAMP Stack plus WordPress and SSL:

                                  @tim_g said in Installing Fedora 27 LAMP Stack plus WordPress and SSL:

                                  Create a new secure SSH key:
                                  ssh-keygen -t rsa -b 4096 -C "root-webserv1-key"

                                  Hit enter for default location and name.
                                  Hit enter again to skip passphrase creation.
                                  Now you should SSH to server to continue.

                                  Does this step disable normal logins or change anything at all? After my first restart my root password isn't working.

                                  I noticed this when I was using Putty. I had to delete the saved session so it could import the new key that was generated.

                                  B 1 Reply Last reply Reply Quote 0
                                  • B
                                    bnrstnr @NashBrydges
                                    last edited by

                                    @nashbrydges said in Installing Fedora 27 LAMP Stack plus WordPress and SSL:

                                    I had to delete the saved session so it could import the new key that was generated.

                                    Delete the session in putty? How did you do that?

                                    NashBrydgesN 1 Reply Last reply Reply Quote 0
                                    • NashBrydgesN
                                      NashBrydges @bnrstnr
                                      last edited by

                                      @bnrstnr said in Installing Fedora 27 LAMP Stack plus WordPress and SSL:

                                      @nashbrydges said in Installing Fedora 27 LAMP Stack plus WordPress and SSL:

                                      I had to delete the saved session so it could import the new key that was generated.

                                      Delete the session in putty? How did you do that?

                                      I had saved the session details. I selected and deleted it then opened a new SSH session.
                                      0_1520014969458_50395770-9c1d-4927-b731-0b55e434d81f-image.png

                                      1 Reply Last reply Reply Quote 0
                                      • ObsolesceO
                                        Obsolesce @bnrstnr
                                        last edited by

                                        @bnrstnr said in Installing Fedora 27 LAMP Stack plus WordPress and SSL:

                                        @tim_g said in Installing Fedora 27 LAMP Stack plus WordPress and SSL:

                                        Create a new secure SSH key:
                                        ssh-keygen -t rsa -b 4096 -C "root-webserv1-key"

                                        Hit enter for default location and name.
                                        Hit enter again to skip passphrase creation.
                                        Now you should SSH to server to continue.

                                        Does this step disable normal logins or change anything at all? After my first restart my root password isn't working.

                                        This only generates a new certificate and does not do anything else. If your root password is not working, maybe you are typing it in incorrectly, or it's something else entirely, as what @NashBrydges is referring to. If you are using Putty, perhaps it's caching the old public key.

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