Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slow Apache Server on EasyPHP [closed]

I am using the EasyPHP DevServer 13.1 VC9 (which has Apache 2.4.4 VC9, MySQL 5.6.11, PHP 5.4.14, PHPmyadmin 3.5.8.1 and xdebug 2.2.2). The Apache server is very moody! Sometimes it works fine, but at other times the pages take ages to load. How do I get around this? I am developing on my local machine. I am a newbie and any help would be greatly appreciated.

Thanks in advance.

like image 276
f1zz0_13 Avatar asked May 09 '13 04:05

f1zz0_13


2 Answers

its easy, added these lines into httpd.conf (you can added these lines anywhere in httpd.conf)

AcceptFilter http none
AcceptFilter https none
like image 154
user3188348 Avatar answered Nov 15 '22 07:11

user3188348


What worked for me was to use the IPv4 version of 'localhost' in my hosts file. The 'hosts' file is usually located in the C:\Windows\System32\drivers\etc directory on most systems. Editing the 'hosts' file was a pain in the neck. You can't simply right click or double-click to open the file. You first have to fire up Notepad or your favorite editor using "Run As Administrator" (right-click) and then hunt for the file using the "File -> Open" dialog. Windows prevents editing that file normally (a good thing) but then get in the way of actually editing it (a bad thing).

Anyway, under Windows 7, the following two lines are commented out:

# 127.0.0.1 localhost
# ::1 localhost

Uncomment the first line but leave the second commented:

127.0.0.1 localhost
# ::1 localhost

Save the file. Try loading pages in Apache again. Should be back to normal speed.

Source : http://cubicspot.blogspot.fr/2010/07/fixing-slow-apache-on-localhost-under.html

like image 24
user5040998 Avatar answered Nov 15 '22 06:11

user5040998