dapet di http://stackoverflow.com/questions/1891031/xampp-on-win7-too-slow

beberapa cara antara lain

1.

//=====================================================

If XAMP is slow under windows 7, the firewall settings make no difference.
The Security Essentials anti-virus makes no difference.

To solve this problem, the two things that make a big difference are:

1) in windows\system32\drivers\etc\hosts add the following lines:

127.0.0.1 127.0.0.1

127.0.0.1 localhost

2) If you’re using PHP, in the XAMP php.ini file uncomment the eaccelerator line:

zend_extension = “C:\xampp\php\ext\php_eaccelerator_ts.dll”

After these two changes, restart Apache and it will be way faster.

//=====================================================

 

2.

//===========================================================

Comment the lines in PHP.ini with XDEBUG:

;[XDebug]

    ;zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
    ;xdebug.profiler_append = 0
    ;xdebug.profiler_enable = 1
    ;xdebug.profiler_enable_trigger = 0
    ;xdebug.profiler_output_dir = "C:\xampp\tmp"
    ;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
    ;xdebug.remote_enable = 0
    ;xdebug.remote_handler = "dbgp"
    ;debug.remote_host = "127.0.0.1"
    ;xdebug.trace_output_dir = "C:\xampp\tmp"
    I disabled Bitdefeender -> no result
    I added lines to hosts -> no result
    I disabled xdebug - x2-x3 faster 

 

//===========================================================

 

3.

//===========================================================

I am using bitdeffender and here is the solution for it:

  1. Simple solution – just switch bitdefender to game mode when working with xampp
  2. “Advanced” solution – go to Antivirus -> Shield -> Advanced Settings -> Exclusions Taband there add exclusion for httpd.exe (located in your xampp installation/apache/bin/). Then go to Antivirus -> Exclusions and add exclusion for the directory where your php files reside.

Don’t forget to restart apache after above steps.

Optionally you can install eaccelerator to speed the things even more.

As I side note: I found WAMP less mature as a project than XAMPP.

Side note 2: The best solution is to use your old PC as linux server and everything will work like a charm 🙂

//===========================================================

 

4. disabling xdebug.

//===========================================================

Find your PHP.ini and look for XDebug.

Set xdebug autostart to false
xdebug.remote_autostart=0
xdebug.remote_enable=0

Disable your profiller
xdebug.profiler_enable=0

//===========================================================

5.

//=================================================

changed the php.ini display_errors=On to =Off “There are several other error on/off switches in there, but this one did it for me.”

//=================================================

 

6.

//======================================================

I use Avast antivirus and solved the problem with a simple click. Right-click the Avast icon and select Silent/gaming mode. That’s all.

//======================================================

 

 

Iklan