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

    Installing Wordpress on CentOS 7 Minimal

    IT Discussion
    wordpress centos 7 real instructions how to guide
    10
    58
    8.5k
    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.
    • BRRABillB
      BRRABill
      last edited by

      One other thing @JaredBusch and I discussed was the location in /opt and opposed to /var

      In theory, it should not matter.

      JaredBuschJ 1 Reply Last reply Reply Quote 0
      • BRRABillB
        BRRABill
        last edited by

        @JaredBusch

        BTW, thanks for the writeup. Very good job.

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

          @BRRABill said in Installing Wordpress on CentOS 7 Minimal:

          One other thing @JaredBusch and I discussed was the location in /opt and opposed to /var

          In theory, it should not matter.

          @scottalanmiller there was a discussion in a thread here a couple years ago around using /opt/ for wordpress installs. but I cannot find it. I think there was a reasoning from someone in there for that location.

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

            @JaredBusch said in Installing Wordpress on CentOS 7 Minimal:

            @BRRABill said in Installing Wordpress on CentOS 7 Minimal:

            One other thing @JaredBusch and I discussed was the location in /opt and opposed to /var

            In theory, it should not matter.

            @scottalanmiller there was a discussion in a thread here a couple years ago around using /opt/ for wordpress installs. but I cannot find it. I think there was a reasoning from someone in there for that location.

            Only thing I know of is that YUM using that location. But have no idea why.

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

              Looking into things I found this link. Granted this is about packaging for RPM but still.
              https://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

              Web Applications

              Web applications packaged in Fedora should put their content into /usr/share/%{name} and NOT into /var/www/. This is done because:

              • /var is supposed to contain variable data files and logs. /usr/share is much more appropriate for this.
              • Many users already have content in /var/www, and we do not want any Fedora package to step on top of that.
              • /var/www is no longer specified by the Filesystem Hierarchy Standard
              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @JaredBusch
                last edited by

                @JaredBusch said in Installing Wordpress on CentOS 7 Minimal:

                Looking into things I found this link. Granted this is about packaging for RPM but still.
                https://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

                Web Applications

                Web applications packaged in Fedora should put their content into /usr/share/%{name} and NOT into /var/www/. This is done because:

                • /var is supposed to contain variable data files and logs. /usr/share is much more appropriate for this.
                • Many users already have content in /var/www, and we do not want any Fedora package to step on top of that.
                • /var/www is no longer specified by the Filesystem Hierarchy Standard

                Hmmm... point two I understand. It's already in use. But it was always in /var specifically because it is variable data, that's where upload caches and stuff go.

                No idea about the hierarchy.

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

                  @scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:

                  @JaredBusch said in Installing Wordpress on CentOS 7 Minimal:

                  Looking into things I found this link. Granted this is about packaging for RPM but still.
                  https://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

                  Web Applications

                  Web applications packaged in Fedora should put their content into /usr/share/%{name} and NOT into /var/www/. This is done because:

                  • /var is supposed to contain variable data files and logs. /usr/share is much more appropriate for this.
                  • Many users already have content in /var/www, and we do not want any Fedora package to step on top of that.
                  • /var/www is no longer specified by the Filesystem Hierarchy Standard

                  Hmmm... point two I understand. It's already in use. But it was always in /var specifically because it is variable data, that's where upload caches and stuff go.

                  No idea about the hierarchy.

                  Looks like I got the /opt thing from you. Your LEMP challenge used /opt/wordpress.
                  https://mangolassi.it/topic/1082/the-wordpress-on-centos-lemp-challenge

                  Now I know there was a subsequent discussion somewhere on ML about /opt, I just cannot find it.

                  scottalanmillerS RomoR 2 Replies Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @JaredBusch
                    last edited by

                    @JaredBusch said in Installing Wordpress on CentOS 7 Minimal:

                    @scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:

                    @JaredBusch said in Installing Wordpress on CentOS 7 Minimal:

                    Looking into things I found this link. Granted this is about packaging for RPM but still.
                    https://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

                    Web Applications

                    Web applications packaged in Fedora should put their content into /usr/share/%{name} and NOT into /var/www/. This is done because:

                    • /var is supposed to contain variable data files and logs. /usr/share is much more appropriate for this.
                    • Many users already have content in /var/www, and we do not want any Fedora package to step on top of that.
                    • /var/www is no longer specified by the Filesystem Hierarchy Standard

                    Hmmm... point two I understand. It's already in use. But it was always in /var specifically because it is variable data, that's where upload caches and stuff go.

                    No idea about the hierarchy.

                    Looks like I got the /opt thing from you. Your LEMP challenge used /opt/wordpress.
                    https://mangolassi.it/topic/1082/the-wordpress-on-centos-lemp-challenge

                    Now I know there was a subsequent discussion somewhere on ML about /opt, I just cannot find it.

                    I have a feeling that it was or is the nginx default directory.

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

                      @JaredBusch said in Installing Wordpress on CentOS 7 Minimal:

                      @scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:

                      @JaredBusch said in Installing Wordpress on CentOS 7 Minimal:

                      Looking into things I found this link. Granted this is about packaging for RPM but still.
                      https://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

                      Web Applications

                      Web applications packaged in Fedora should put their content into /usr/share/%{name} and NOT into /var/www/. This is done because:

                      • /var is supposed to contain variable data files and logs. /usr/share is much more appropriate for this.
                      • Many users already have content in /var/www, and we do not want any Fedora package to step on top of that.
                      • /var/www is no longer specified by the Filesystem Hierarchy Standard

                      Hmmm... point two I understand. It's already in use. But it was always in /var specifically because it is variable data, that's where upload caches and stuff go.

                      No idea about the hierarchy.

                      Looks like I got the /opt thing from you. Your LEMP challenge used /opt/wordpress.
                      https://mangolassi.it/topic/1082/the-wordpress-on-centos-lemp-challenge

                      Now I know there was a subsequent discussion somewhere on ML about /opt, I just cannot find it.

                      I ask about it after seing your guide and you choosing /opt for the instalation

                      https://mangolassi.it/topic/12567/is-there-a-best-practice-for-the-location-of-the-root-folder-of-a-webapp

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

                        @Romo said in Installing Wordpress on CentOS 7 Minimal:

                        @JaredBusch said in Installing Wordpress on CentOS 7 Minimal:

                        @scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:

                        @JaredBusch said in Installing Wordpress on CentOS 7 Minimal:

                        Looking into things I found this link. Granted this is about packaging for RPM but still.
                        https://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

                        Web Applications

                        Web applications packaged in Fedora should put their content into /usr/share/%{name} and NOT into /var/www/. This is done because:

                        • /var is supposed to contain variable data files and logs. /usr/share is much more appropriate for this.
                        • Many users already have content in /var/www, and we do not want any Fedora package to step on top of that.
                        • /var/www is no longer specified by the Filesystem Hierarchy Standard

                        Hmmm... point two I understand. It's already in use. But it was always in /var specifically because it is variable data, that's where upload caches and stuff go.

                        No idea about the hierarchy.

                        Looks like I got the /opt thing from you. Your LEMP challenge used /opt/wordpress.
                        https://mangolassi.it/topic/1082/the-wordpress-on-centos-lemp-challenge

                        Now I know there was a subsequent discussion somewhere on ML about /opt, I just cannot find it.

                        I ask about it after seing your guide and you choosing /opt for the instalation

                        https://mangolassi.it/topic/12567/is-there-a-best-practice-for-the-location-of-the-root-folder-of-a-webapp

                        And as you can see from my link above, @scottalanmiller's answer in your thread is not helpful. He simply stated standards. But what standard is the question.

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

                          @scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:

                          @JaredBusch said in Installing Wordpress on CentOS 7 Minimal:

                          @scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:

                          @JaredBusch said in Installing Wordpress on CentOS 7 Minimal:

                          Looking into things I found this link. Granted this is about packaging for RPM but still.
                          https://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

                          Web Applications

                          Web applications packaged in Fedora should put their content into /usr/share/%{name} and NOT into /var/www/. This is done because:

                          • /var is supposed to contain variable data files and logs. /usr/share is much more appropriate for this.
                          • Many users already have content in /var/www, and we do not want any Fedora package to step on top of that.
                          • /var/www is no longer specified by the Filesystem Hierarchy Standard

                          Hmmm... point two I understand. It's already in use. But it was always in /var specifically because it is variable data, that's where upload caches and stuff go.

                          No idea about the hierarchy.

                          Looks like I got the /opt thing from you. Your LEMP challenge used /opt/wordpress.
                          https://mangolassi.it/topic/1082/the-wordpress-on-centos-lemp-challenge

                          Now I know there was a subsequent discussion somewhere on ML about /opt, I just cannot find it.

                          I have a feeling that it was or is the nginx default directory.

                          No, you continually reference /opt as the directory to use for 3rd party applications.

                          It I guess the better question is whether or not web apps like this are considered third party applications or something to put in webroot. A Google site search of this site and the term /opt returns many threads with directions from you installing things to /opt.

                          1 Reply Last reply Reply Quote 0
                          • BRRABillB
                            BRRABill
                            last edited by

                            He also has said that /var is the only place data should be stored.

                            Hmmmmm.........

                            Come on @scottalanmiller let's get it figured out! 🙂

                            1 Reply Last reply Reply Quote 0
                            • BRRABillB
                              BRRABill
                              last edited by

                              @JaredBusch

                              Perhaps this is offtopic, but what is the swappiness setting you are supposed to use? Would that be applicable to this article, or is that a more "general CentOS setup" setting?

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

                                @BRRABill said in Installing Wordpress on CentOS 7 Minimal:

                                @JaredBusch

                                Perhaps this is offtopic, but what is the swappiness setting you are supposed to use? Would that be applicable to this article, or is that a more "general CentOS setup" setting?

                                Neither. It is not related to WordPress, web hosting or to CentOS directly. It's a memory setting that would be dependent on many factors, like the IOPS you have, the storage and memory that you have, how you want your disk used, how the disks are shared with other systems, how much disk capacity you have spare and so forth.

                                BRRABillB 1 Reply Last reply Reply Quote 0
                                • BRRABillB
                                  BRRABill @scottalanmiller
                                  last edited by

                                  @scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:

                                  @BRRABill said in Installing Wordpress on CentOS 7 Minimal:

                                  @JaredBusch

                                  Perhaps this is offtopic, but what is the swappiness setting you are supposed to use? Would that be applicable to this article, or is that a more "general CentOS setup" setting?

                                  Neither. It is not related to WordPress, web hosting or to CentOS directly. It's a memory setting that would be dependent on many factors, like the IOPS you have, the storage and memory that you have, how you want your disk used, how the disks are shared with other systems, how much disk capacity you have spare and so forth.

                                  Isn't it one of the settings you normally always enable?

                                  Or am I thinking about something else?

                                  JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 0
                                  • JaredBuschJ
                                    JaredBusch @BRRABill
                                    last edited by

                                    @BRRABill said in Installing Wordpress on CentOS 7 Minimal:

                                    @scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:

                                    @BRRABill said in Installing Wordpress on CentOS 7 Minimal:

                                    @JaredBusch

                                    Perhaps this is offtopic, but what is the swappiness setting you are supposed to use? Would that be applicable to this article, or is that a more "general CentOS setup" setting?

                                    Neither. It is not related to WordPress, web hosting or to CentOS directly. It's a memory setting that would be dependent on many factors, like the IOPS you have, the storage and memory that you have, how you want your disk used, how the disks are shared with other systems, how much disk capacity you have spare and so forth.

                                    Isn't it one of the settings you normally always enable?

                                    Or am I thinking about something else?

                                    generally he says he always sets it to 30 or something like that in other threads.

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

                                      @BRRABill said in Installing Wordpress on CentOS 7 Minimal:

                                      @scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:

                                      @BRRABill said in Installing Wordpress on CentOS 7 Minimal:

                                      @JaredBusch

                                      Perhaps this is offtopic, but what is the swappiness setting you are supposed to use? Would that be applicable to this article, or is that a more "general CentOS setup" setting?

                                      Neither. It is not related to WordPress, web hosting or to CentOS directly. It's a memory setting that would be dependent on many factors, like the IOPS you have, the storage and memory that you have, how you want your disk used, how the disks are shared with other systems, how much disk capacity you have spare and so forth.

                                      Isn't it one of the settings you normally always enable?

                                      Or am I thinking about something else?

                                      It's not enabling or disabling, it's setting it. The OS default is 60. Many cloud providers change this in their own defaults because it impacts other customers. On my cloud instances, I normally set to 10.

                                      BRRABillB 1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller
                                        last edited by

                                        If this was a physical box or a one to one VM install (only VM on a host) then a swappiness of 60 is a good starting point.

                                        1 Reply Last reply Reply Quote 0
                                        • BRRABillB
                                          BRRABill @scottalanmiller
                                          last edited by

                                          @scottalanmiller said

                                          It's not enabling or disabling, it's setting it. The OS default is 60. Many cloud providers change this in their own defaults because it impacts other customers. On my cloud instances, I normally set to 10.

                                          I install Centos 7 Minimal on a Vultr VM, and the default was 30.

                                          1 Reply Last reply Reply Quote 0
                                          • BRRABillB
                                            BRRABill
                                            last edited by

                                            Going back through this today.

                                            What did we ever decide on PHP 5.X versus 7.X

                                            Since WordPress seems to be recommending the move to 7.X, is it reasonable and desired to install that instead? Even if it is not in the official repositories? (I am, just asking for future reference for others.)

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