Link to home
Start Free TrialLog in
Avatar of ankit25
ankit25

asked on

Apache Web Server (website gradually slows day after the day)(need to clean temporary files)

Hello Everyone,

I am using Apache webserver-MySQL Database on Red Hat Linux 9.0 Professional. I know 9.0 have stopped their support now but i bough it for $300 so i just dont want to uninstall it.

I have a website which uses sessions for username and password.

Now i have noticed that its becoming slow day after day.
Do i have to clean any temporary folders in this website to make it work.

my website is located at /var/www/html directory.

please let me know if there is a command to clean temporary directories on Linux or in apache.

Is it a MySQL issue.
Some how its becoming slow and slow everyday.

I am not able to figure it out, is it an iptable issue or what.

Please need your help urgent.
Thanks
Ankit.
Avatar of brozzis
brozzis


these symptoms could bring me everywhere finding a solution.
I'd try to be sure that an hardware problem is NOT occurring.
check /var/log/messages, check dmesg, use hdparm to check your HDs throughput.

if everything is ok, take a look at your apache logs, see if some hacker is doing nasty things.
check with rpm if your system files are what you expect them to be

after that post a message
I would believe that it is a MySQL issue.

When you restart the machine, does the situation improved?

Try running "top" and see if for any process that may be hogging the machine.  You may post the output here (if you wish to).

on Apache, you could enable Apache internal status monitor via mod_status (http://httpd.apache.org/docs-2.0/mod/mod_status.html).  You should be able to do http://localhost/server-status and get some indication on how well your apache is doing.

How did you interface the Apache and MySQL ? Using PHP? CGI? -- This would be another area that you may want to look at.

Apache by default should not be hogging the machine too much!

Avatar of ankit25

ASKER

Hello broziz and samri,

i have checked my apache logs, there is nothing unusuall here.
Hardware is okay because eth0 is enable and but its very very slow.
what is top i dont know.

and ues i am using PHP, MySQL and Apache.
Does MySQL has any logs ???

Thanks
Ankit
ASKER CERTIFIED SOLUTION
Avatar of brozzis
brozzis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial