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.
    • Emad RE
      Emad R
      last edited by

      So I have VPS for LAMP and I want to optimize it to run on very low VPS like the 5$

      I did the following extra steps

      PHP-FPM
      Memcached
      CLoudFlare CDN caching everything

      What else I can do ? to speed it up, any other tips and tricks ?

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

        Varnish

        1 Reply Last reply Reply Quote 0
        • DashrenderD
          Dashrender
          last edited by

          What's keeping it from running on a $5 instance right now?

          I have a FreePBX system (has a LAMP like stack on it) and it works just fine.

          Emad RE 1 Reply Last reply Reply Quote 0
          • Emad RE
            Emad R @Dashrender
            last edited by

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

            What's keeping it from running on a $5 instance right now?

            I have a FreePBX system (has a LAMP like stack on it) and it works just fine.

            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

            scottalanmillerS D 3 Replies Last reply Reply Quote 0
            • M
              murpheous
              last edited by

              https://www.turnkeylinux.org/lamp

              DustinB3403D scottalanmillerS 2 Replies Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403 @murpheous
                last edited by

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

                https://www.turnkeylinux.org/lamp

                I've completely forgotten about TKL.

                1 Reply Last reply Reply Quote 0
                • F
                  flaxking
                  last edited by

                  Is it possible to seperate the management/configuration and the actual running of the web server?

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

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

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

                    What's keeping it from running on a $5 instance right now?

                    I have a FreePBX system (has a LAMP like stack on it) and it works just fine.

                    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

                    Get to PHP 7.2 that helps with a lot of resources. PHP 5.6 is totally slow.

                    1 Reply Last reply Reply Quote 1
                    • scottalanmillerS
                      scottalanmiller @Emad R
                      last edited by

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

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

                      What's keeping it from running on a $5 instance right now?

                      I have a FreePBX system (has a LAMP like stack on it) and it works just fine.

                      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

                      Those are going to hurt a lot, why do they need that?

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

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

                        https://www.turnkeylinux.org/lamp

                        It's out of date and unnecessarily bloated, though.

                        DustinB3403D 1 Reply Last reply Reply Quote 1
                        • DustinB3403D
                          DustinB3403 @scottalanmiller
                          last edited by

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

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

                          https://www.turnkeylinux.org/lamp

                          It's out of date and unnecessarily bloated, though.

                          Doesn't mean you couldn't update it. But still. . .

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

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

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

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

                            https://www.turnkeylinux.org/lamp

                            It's out of date and unnecessarily bloated, though.

                            Doesn't mean you couldn't update it. But still. . .

                            Kind of defeats the purpose 🙂

                            1 Reply Last reply Reply Quote 0
                            • 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

                              scottalanmillerS 1 Reply Last reply Reply Quote 1
                              • tonyshowoffT
                                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.

                                scottalanmillerS D Emad RE 3 Replies Last reply Reply Quote 2
                                • scottalanmillerS
                                  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
                                  • scottalanmillerS
                                    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.

                                    tonyshowoffT 1 Reply Last reply Reply Quote 0
                                    • tonyshowoffT
                                      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.

                                        scottalanmillerS tonyshowoffT 2 Replies Last reply Reply Quote 0
                                        • scottalanmillerS
                                          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
                                          • scottalanmillerS
                                            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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post