Ask Your Question

firefox begin to run slower or even freeze (with php, apache)

asked 2012-05-18 18:33:27 -0500

netnitzky gravatar image

updated 2012-05-18 18:35:21 -0500

I installed apache + mysql + php. At first glance everything runs ok. The problem is: During testing simple php website from my local server the longer I work the slower firefox operates or even freeze totally. After firefox restart and httpd stop everything backs to normal operating state (particularly memory and CPU usage that was been used twice of normal level). I've been searching a proper solution for two days seeing many potential causes but I can't fix it. Did anybody do?

Some configuration steps I did: in /etc/httpd/conf/httpd.conf:


   UserDir public_html
   <Directory /home/my_home/public_html>
        Options Indexes Includes FollowSymLinks
        Order allow,deny
        AllowOverride All
        Allow from all

What KeepAlive should I set? I have 5 sec.

SELinux configuration (following alert's suggestions or just trying):

   setsebool -P httpd_enable_homedirs 1 
   chcon -R -t httpd_sys_content_t /home/my_home/public_html
   semanage fcontext -a -t httpd_sys_rw_content_t '/home/my_home/public_html'
   setsebool -P httpd_unified 1

in mozilla about:config:

network.dns.disableipv6 false->true

(it may be redundant but I'm grasping at straws) I don't know whether the cause of it is firefox or httpd, but I suppose the second one. I would be so grateful for help, it's so annoying and makes an easy work just hopeless.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-05-19 08:07:59 -0500

netnitzky gravatar image

updated 2012-05-19 10:16:37 -0500

I think I solved this problem myself. Excepting any other causes that may spawn similar performance of firefox (or httpd) in my case turning most add-ons off fixed the problem. Since then firefox's run great as yet and responses in right time. To say the truth most of web-dev add-ons I've disabled are now the built-in functions in firefox 12 do I don't need them longer.

Edit: Unfortunatelly, not completely. After about 2 hours of httpd running it happens again. After restart of httpd service everything turns to normal performance. Does anybody have an idea?

edit flag offensive delete link more

Question Tools


Asked: 2012-05-18 18:33:27 -0500

Seen: 709 times

Last updated: May 19 '12