Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

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

Posted on 2009-04-02
3
Medium Priority
?
1,106 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 29

Expert Comment

by:Michael Worsham
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 Worsham earned 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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 …
Suggested Courses

649 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