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

    LAMP on the cheap, or how to optimize ?

    IT Discussion
    lamp cheap vps
    8
    24
    1.6k
    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.
    • D
      dave_c @Emad R
      last edited by

      @Emad-R said in LAMP on the cheap, or how to optimize ?:

      the user needs Cpanel and WHM, and those 2 are bulk of wasted resources, especially since they utilize and download there own PHP, I am running on ea-php 5

      I don't think that will work well. If cPanel is needed then a VPS like DigitalOcean $10/mo droplet should be considered minimum.
      You may try disabling the big memory hogs, at least:
      ClamAV
      Solr
      SpamAssasin

      S 1 Reply Last reply Reply Quote 1
      • T
        tonyshowoff
        last edited by tonyshowoff

        Installing crappy cPanel is like buying a sports car and putting a boot on the wheel. There's literally no good reason what so ever to have it, it's slow as hell and eats resources like crazy. Just learn a few commands and you'll be fine.

        Don't get yourself stuck with PHP 5.x, it's a dead end, fix your code now and/or do it right from the start and use PHP 7.

        Apache with mod_php is a hell of a lot faster than PHP-FPM, because it's executed as a part of your running httpd thread pool rather than executing PHP literally every single page request. Nginx is faster than Apache except when it comes to PHP then hands down always use Apache with mod_php. If you turn on PHP 7's opcache you'll do even better.

        In case you consider it and try to go with nginx, since that's what the cool kids try to push on people, OPcache won't make up for PHP-FPM having to literally start a process every single page request, every, single, page request. Nginx is a great reverse proxy though.

        It also depends on what you're doing overall, memcached is great I've used it on a huge scale but what are you caching? What database are you looking at using, that'd really be the only reason to have an object cache like memcached at all.

        S D E 3 Replies Last reply Reply Quote 2
        • S
          scottalanmiller @dave_c
          last edited by

          @dave_c said in LAMP on the cheap, or how to optimize ?:

          @Emad-R said in LAMP on the cheap, or how to optimize ?:

          the user needs Cpanel and WHM, and those 2 are bulk of wasted resources, especially since they utilize and download there own PHP, I am running on ea-php 5

          I don't think that will work well. If cPanel is needed then a VPS like DigitalOcean $10/mo droplet should be considered minimum.
          You may try disabling the big memory hogs, at least:
          ClamAV
          Solr
          SpamAssasin

          Yeah, SO much bloat. Even without all that stuff, no email, no panels, etc. our hosts are way bigger than that for insanely lean web hosting.

          1 Reply Last reply Reply Quote 0
          • S
            scottalanmiller @tonyshowoff
            last edited by

            @tonyshowoff said in LAMP on the cheap, or how to optimize ?:

            ? What database are you looking at using, that'd really be the only reason to have an object cache like memcached at all.

            MariaDB. Its' a LAMP stack.

            T 1 Reply Last reply Reply Quote 0
            • T
              tonyshowoff @scottalanmiller
              last edited by

              @scottalanmiller said in LAMP on the cheap, or how to optimize ?:

              @tonyshowoff said in LAMP on the cheap, or how to optimize ?:

              ? What database are you looking at using, that'd really be the only reason to have an object cache like memcached at all.

              MariaDB. Its' a LAMP stack.

              Well I wasn't sure what to think because he was talking about PHP-FPM which typically is used with nginx and not Apache, I thought maybe he was using it as a generic term.

              1 Reply Last reply Reply Quote 0
              • D
                dave_c @tonyshowoff
                last edited by

                @tonyshowoff said in LAMP on the cheap, or how to optimize ?:

                Installing crappy cPanel is like buying a sports car and putting a boot on the wheel. There's literally no good reason what so ever to have it, it's slow as hell and eats resources like crazy. Just learn a few commands and you'll be fine.

                That is wisdom. It strikes me that the OP said the client needs cPanel.

                S T 2 Replies Last reply Reply Quote 0
                • S
                  scottalanmiller @dave_c
                  last edited by

                  @dave_c said in LAMP on the cheap, or how to optimize ?:

                  @tonyshowoff said in LAMP on the cheap, or how to optimize ?:

                  Installing crappy cPanel is like buying a sports car and putting a boot on the wheel. There's literally no good reason what so ever to have it, it's slow as hell and eats resources like crazy. Just learn a few commands and you'll be fine.

                  That is wisdom. It strikes me that the OP said the client needs cPanel.

                  He did. cPanel is for clients, not for the hosts. So that makes sense.

                  1 Reply Last reply Reply Quote 1
                  • S
                    scottalanmiller
                    last edited by

                    That's why we (Hostadillo) don't do panels, nor let the clients touch the box. We do it all for them.

                    1 Reply Last reply Reply Quote 1
                    • T
                      tonyshowoff @dave_c
                      last edited by

                      @dave_c said in LAMP on the cheap, or how to optimize ?:

                      @tonyshowoff said in LAMP on the cheap, or how to optimize ?:

                      Installing crappy cPanel is like buying a sports car and putting a boot on the wheel. There's literally no good reason what so ever to have it, it's slow as hell and eats resources like crazy. Just learn a few commands and you'll be fine.

                      That is wisdom. It strikes me that the OP said the client needs cPanel.

                      I didn't even see that. But on that note though, cPanel would just give the client more opportunities to screw things up, depending on any agreement it may or may not be a good idea to talk them out of it. Realistically if you can't setup cPanel in the very least, you probably can't be trusted with the power it gives you over the system.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        scottalanmiller @tonyshowoff
                        last edited by

                        @tonyshowoff said in LAMP on the cheap, or how to optimize ?:

                        @dave_c said in LAMP on the cheap, or how to optimize ?:

                        @tonyshowoff said in LAMP on the cheap, or how to optimize ?:

                        Installing crappy cPanel is like buying a sports car and putting a boot on the wheel. There's literally no good reason what so ever to have it, it's slow as hell and eats resources like crazy. Just learn a few commands and you'll be fine.

                        That is wisdom. It strikes me that the OP said the client needs cPanel.

                        I didn't even see that. But on that note though, cPanel would just give the client more opportunities to screw things up, depending on any agreement it may or may not be a good idea to talk them out of it. Realistically if you can't setup cPanel in the very least, you probably can't be trusted with the power it gives you over the system.

                        Exactly. We don't see value in it. Our customers like having us there to fix things, instead of cPanel there to mock them in their futility.

                        T 1 Reply Last reply Reply Quote 1
                        • T
                          tonyshowoff @scottalanmiller
                          last edited by

                          @scottalanmiller said in LAMP on the cheap, or how to optimize ?:

                          instead of cPanel there to mock them in their futility.

                          Pure gold lol

                          1 Reply Last reply Reply Quote 2
                          • E
                            Emad R @tonyshowoff
                            last edited by

                            @tonyshowoff said in LAMP on the cheap, or how to optimize ?:

                            Installing crappy cPanel is like buying a sports car and putting a boot on the wheel. There's literally no good reason what so ever to have it, it's slow as hell and eats resources like crazy. Just learn a few commands and you'll be fine.

                            Don't get yourself stuck with PHP 5.x, it's a dead end, fix your code now and/or do it right from the start and use PHP 7.

                            Apache with mod_php is a hell of a lot faster than PHP-FPM, because it's executed as a part of your running httpd thread pool rather than executing PHP literally every single page request. Nginx is faster than Apache except when it comes to PHP then hands down always use Apache with mod_php. If you turn on PHP 7's opcache you'll do even better.

                            In case you consider it and try to go with nginx, since that's what the cool kids try to push on people, OPcache won't make up for PHP-FPM having to literally start a process every single page request, every, single, page request. Nginx is a great reverse proxy though.

                            It also depends on what you're doing overall, memcached is great I've used it on a huge scale but what are you caching? What database are you looking at using, that'd really be the only reason to have an object cache like memcached at all.

                            Interesting, I will see how it performs without PHP FPM.

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