Running Apache on 128MB RAM?

Status
Not open for further replies.
17 comments
using the following codes on centos
yum -y install httpd
yum -y install mysqld mysql-server
yum -y install php php-mysql
yum -y install php-gd php-imap
service httpd start
service mysqld start

i am able to run a website with not more than 50mb of ram without any control panel :D
 
128MB would be enough depending on your situation. ie
having 50,000 people a day downloading stuff vs. a simple personal blog.
For a simple webserver I think it should be fine.
 
nGinx + PHP-FPM

Or just do this:
yum -y install httpd
yum -y install mysqld mysql-server
yum -y install php php-mysql
yum -y install php-gd php-imap
service httpd start
service mysqld start

You don't really need Apache. It depends.
 
I would suggest you look into lighttpd or nginx, nginx prefered, since it's much better at handling connections then lighttpd.

setup mysql, nginx, tune the mysql for low memory, maybe introduce some disk caching on static content (if running wordpress)

We have clients running setups like this.
 
Running nginx is a must, now if you run PHP-FPM set the one pool and set it to use few workers. You will see what is the memory usage of each PHP-FPM child, however running a web server on 64 MB machine would need certain drastic drawbacks, as not using MySQL (or disabling the InnoDB storage and optimizing MySQL for this low-level environment). Better yet is to use a remote MySQL database or use SQLite for that matter.

Also, if you set caching in nginx be prepared for it to eat up some memory too, if disable it you should have a web server running happily under 45-50 MB.
 
Depends on the SERVER Core's ( if more then one ) Speed . If say the Core's Speed is 3.0ghz each , and 8 Cores the server will not have a MAJOR issue but say 1 i7 Processor just cant handle it
 
Depends on the SERVER Core's ( if more then one ) Speed . If say the Core's Speed is 3.0ghz each , and 8 Cores the server will not have a MAJOR issue but say 1 i7 Processor just cant handle it

This doesn't make any sense, you want to say that we all need to have 12 core Xeons to run Webserver under 128MB ?

You can run this server on the Pentium 4 if you want, however what is the visitor count you want o to have and support, as i3, with nginx and proper configuration can support a fair number of online visitors, while i7 can even more etc etc.
 
how to park domain into server then

18k - 20k visitors daily will do fine on nginx + PHP-FPM setup - BUT not on a 128 MB VPS. It'll crash instantly.
Get a server, place nginx or varnish to serve the ads and you are good to go, there will not be any load..
 
I would suggest you look into lighttpd or nginx, nginx prefered, since it's much better at handling connections then lighttpd.

setup mysql, nginx, tune the mysql for low memory, maybe introduce some disk caching on static content (if running wordpress)

We have clients running setups like this.

Running nginx is a must, now if you run PHP-FPM set the one pool and set it to use few workers. You will see what is the memory usage of each PHP-FPM child, however running a web server on 64 MB machine would need certain drastic drawbacks, as not using MySQL (or disabling the InnoDB storage and optimizing MySQL for this low-level environment). Better yet is to use a remote MySQL database or use SQLite for that matter.

Also, if you set caching in nginx be prepared for it to eat up some memory too, if disable it you should have a web server running happily under 45-50 MB.

yeah i already switched to nginx and lighty prior installing the apache.
i just wanna try to max out this vps box while keeping apache's rewrite function.

tried litespeed too but with just 64mb RAM turned out that it wasn't enough to compile the php alone :))

remote mysql is a good idea, i think i will manage my dns from external box too. thanks anyway mates :)
 
Apache doesn't have any requirements, you can even run it on P-100 with 16MB RAM. Really depends on what you are going to do with it.
after initial install (with the default config on) it would eat up big portion of the RAM,
though it does not serve/host anything yet.

so please kindly share us the config for minimal hosting with apache
thanks in advance
 
Status
Not open for further replies.
Back
Top