Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Upgrading Apache 2.1.11 on old server |
|
Author |
|
jim_73_mk1
Joined: 02 Jan 2015 Posts: 2 Location: Spokane, WA, USA
|
Posted: Fri 02 Jan '15 18:06 Post subject: Upgrading Apache 2.1.11 on old server |
|
|
I've been running Apache on an OLD server for years and want to upgrade PHP but before doing that I need to upgrade Apache. Here are some details:
Server:
500 MHz
512 MB Memory
Windows 2003 R2 SP2
Apache:
2.2.11 (from Apache.org)
PHP:
5.2.9-1
MySQL:
5.1.32
The server doesn't have enough power to load a new OS on it so I am stuck with Win 03 and am stuck using the VC9 versions of Apache. Which of the two VC9 versions would be best while keeping in mind the goal is to upgrade PHP as far as possible: 2.2.29 (legacy) or 2.4.10? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 02 Jan '15 19:22 Post subject: |
|
|
The easiest would be 2.2.29 w/ PHP 5.4.latest in my opinion since you could just replace your 2.2.11 with it and reuse current config with little modification needed.
I would suggest running php-cgi via mod_fcgid instead of PHP as a module due to your limited amount of RAM. I would still make this recommendation with Apache 2.4 for same reason.
Apache 2.4 is more modularized and has a smaller footprint but there have been changes in the way you configure auth/access control. Wrapping ones head around it takes a little time and might possibly cause one take a polar bear plunge into the river. Just kidding, it's not THAT bad.
I'd say let Jan-E, JBlond and/or others chime in on this as they are more PHP knowledgeable than I but I believe that would be quickest route. This however is an area that has quite a few possible options. |
|
Back to top |
|
jim_73_mk1
Joined: 02 Jan 2015 Posts: 2 Location: Spokane, WA, USA
|
Posted: Fri 02 Jan '15 20:19 Post subject: No SSL or security is used.... |
|
|
I guess I forgot to mention no SSL, security, auth or rewrite is in use. Only real modification to default install of anything is all the public stuff runs from drive D: while installs are on drive C:. |
|
Back to top |
|
jimski
Joined: 18 Jan 2014 Posts: 196 Location: USSA
|
Posted: Sun 04 Jan '15 12:03 Post subject: |
|
|
glsmith wrote: | ...I would suggest running php-cgi via mod_fcgid instead of PHP as a module due to your limited amount of RAM. I would still make this recommendation with Apache 2.4 for same reason. |
Although fcgid will work I would recommend mod_php because on this server you will run out of CPU power before you run out of RAM. Mod_fcgid will be slow on this server because spawning and then running multiple processes on this CPU will be a drag. Apache 2.2.29 will be the easiest to upgrade unless you want to learn the new Apache then go for 2.4.10 just be aware that conf file uses different directives. PHP 5.3.29 will also be the easiest upgrade and most stable unless you need later versions for some reason. I would keep Apache and PHP with the same version of VC. Please take a look at this thread. http://www.apachelounge.com/viewtopic.php?p=29493#29486
I run many win2003 VPSs in different configurations, and on a server like yours you will hit 100% CPU load before you get close to 500MB RAM load unless you run applications other then Apache/php/MySQL, or unless you use some elaborate SQL queries. This box will work fine for development or hosting a website with medium traffic. People used to run websites with hundreds of thousands of hits per day on 500Mhz CPUs (though without multimedia). If you want to improve the performance disable unnecessary services and optimize the OS. Your drive configuration into C: & D: is fine just make your swap file a fixed size of 1280 MB and not system managed and then defrag and optimize the partitions. Auslogics free portable is a nice tool for that http://downloads.auslogics.com/en/disk-defrag/ausdiskdefragportable.exe
Here is a funny blast from the past. $1000 per month for 500Mhz celeron and T3 line.
http://computer.howstuffworks.com/internet/basics/question342.htm |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 06 Jan '15 19:18 Post subject: |
|
|
jimski wrote: | Although fcgid will work I would recommend mod_php because on this server you will run out of CPU power before you run out of RAM |
PHP runs very bad over fcgid with a single core. So here mod_php is the best option. |
|
Back to top |
|
|
|
|
|
|