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

    Deploying WordPress on CentOS 7 LAMP

    Scheduled Pinned Locked Moved IT Discussion
    linuxcentoscentos 7lampwordpress
    11 Posts 3 Posters 2.4k 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.
    • scottalanmillerS
      scottalanmiller
      last edited by

      In the above example, we deployed into the standard Apache root directory at /var/www/html and used the directory wordpress. This is fine in some cases, but is very generic and odd for most use cases. If your server will be serving out only one site and you want it to be this one, you will likely want to change where Apache looks for its default site. In some cases you will want to make HTTPS headers point to different folders for different names. These are pretty easy modifications but better suited to more Apache-focused articles.

      To deploy more WordPress here or to change the name of the folder that you navigate to in order to see your WP install, you can simple rename the wordpress folder. For example, if your site was about tropical fish you might do this...

      mv /var/www/html/wordpress /var/www/html/ilovetropfish
      

      And then you could navigate to http://myserveripaddress/ilovetropfish/ to see your site.

      Likewise, you could install wordpress many times following the same procedure as above but simply naming each folder something unique in order to have many sites hosted on the same Apache server.

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

        This is a much better way: http://wp-cli.org/

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @Alex Sage
          last edited by

          @aaronstuder said in Deploying WordPress on CentOS 7 LAMP:

          This is a much better way: http://wp-cli.org/

          I don't see info about installing WP using that tool, only managing it.

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

            I wrote this 2 years ago when @scottalanmiller posted his LEMP challenge thing.

            https://jaredbusch.com/2014/08/11/how-to-install-wordpress-on-centos-7-minimal/

            I should update it for SSL and post it here.

            A 1 Reply Last reply Reply Quote 3
            • A
              Alex Sage @JaredBusch
              last edited by

              @JaredBusch said in Deploying WordPress on CentOS 7 LAMP:

              I wrote this 2 years ago when @scottalanmiller posted his LEMP challenge thing.

              https://jaredbusch.com/2014/08/11/how-to-install-wordpress-on-centos-7-minimal/

              I should update it for SSL and post it here.

              Please do! 🙂

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

                @scottalanmiller http://wp-cli.org/commands/core/

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Alex Sage
                  last edited by

                  @aaronstuder said in Deploying WordPress on CentOS 7 LAMP:

                  @scottalanmiller http://wp-cli.org/commands/core/

                  Oh cool, thanks.

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

                    @scottalanmiller Do you have a guide on securing CentOS 7?

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @Alex Sage
                      last edited by

                      @aaronstuder said in Deploying WordPress on CentOS 7 LAMP:

                      @scottalanmiller Do you have a guide on securing CentOS 7?

                      NOt yet, will likely be part of my series, eventually.

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

                        @scottalanmiller Add virualhosts to the list too 😉

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