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,100 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
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…
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 count occurrences of each item in an array.

816 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

10 Experts available now in Live!

Get 1:1 Help Now