LAMP on the cheap, or how to optimize ?
-
-
Is it possible to seperate the management/configuration and the actual running of the web server?
-
@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.
-
@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?
-
@murpheous said in LAMP on the cheap, or how to optimize ?:
It's out of date and unnecessarily bloated, though.
-
@scottalanmiller said in LAMP on the cheap, or how to optimize ?:
@murpheous said in LAMP on the cheap, or how to optimize ?:
It's out of date and unnecessarily bloated, though.
Doesn't mean you couldn't update it. But still. . .
-
@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 ?:
It's out of date and unnecessarily bloated, though.
Doesn't mean you couldn't update it. But still. . .
Kind of defeats the purpose
-
@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 -
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.
-
@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
SpamAssasinYeah, 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.
-
@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.
-
@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.
-
@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.
-
@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.
-
That's why we (Hostadillo) don't do panels, nor let the clients touch the box. We do it all for them.
-
@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.
-
@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.
-
@scottalanmiller said in LAMP on the cheap, or how to optimize ?:
instead of cPanel there to mock them in their futility.
Pure gold lol
-
@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.