Solved

Apache Server (wamp) What's needed to go to a "production" server? What settings would I change?

Posted on 2009-04-02
3
1,097 Views
Last Modified: 2013-12-13
I have a test machine running WAMP.. It's an old machine:

Windows Server 2003 OS
AMD Athlon XP 1.29 ghz
1gig ram

It's my webserver from home, but here's the catch... I want to get everything setup on it first, then when I'm ready, replicate everything onto a production server.

Now, I like WAMP a lot, and I'd love to use it on a production server.. I've messed with the my.ini httpd.conf and vhosts to get it working smoothly.  Is there a big downside to using WAMP instead of installing everything separately?

I would like to change my installation to more of a production environment... Is there a certain type of MYSQL setting that I should change that's better quited for this?

For instance.. my server hangs up... it maxes out the CPU 100% when I do a customized zen cart easy-populate export... What I mean by "hangs up" is that I cannot access any webpages served on it while its generating the .txt product export file... I assume if I flip some switches that it will allow for some better "threading"? so that it wouldn't grind to a halt?   My hunch is that WAMP assumes it will be in a test environment and not a production environment, so that I is not setup to accommodate multiple users, rather just 1 user primarily?

Thanks!

BTW I already enabled mysql caching.
0
Comment
  • 2
3 Comments
 
LVL 29

Expert Comment

by:Michael W
ID: 24056377
WAMP (and XAMPP) for that matter are good for development and learning environments, but not a very stable platform for long-term production use.

Under Windows, processes that use applications (i.e. Apache, MySQL) don't easily clean up after the process is shutdown, thus can cause server environment instability and CPU/memory issues in the long run. Under Linux, however, processes that terminate will release all CPU and memory under said process - the the reason most Linux servers can run for extended periods of time without having to reboot (my personal server has been running for nearly a year without a reboot).

I would recommend setting up a Linux server (either by itself or virtual) and going from there. I, personally, would use CentOS or RHEL as there are RPMs for the Apache, PHP and MySQL environment readily available for download, which - in turn - makes it very easy to deploy and configure.
0
 

Author Comment

by:www_puertoricoautoforo_com
ID: 24056530
I would but it's too much headache for me to get linux servers working 100%, I'm pretty happy with the Windows 2003 server, actually I haven't had to reboot it much, it just maxes out the CPU when the easy populate process is running, once it's done it's fine again.. I'm just surprised that it doesn't allocate some CPU resources to other php sessions at the same time.

0
 
LVL 29

Accepted Solution

by:
Michael W earned 500 total points
ID: 24058677
The reason it does that is because PHP doesn't support multi-threading under Windows platforms. The process control extension is meant for non-web server PHP applications.

Reference:
http://www.php.net/manual/en/ref.pcntl.php
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now