LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-29-2007, 04:11 AM   #1
Heinz09
LQ Newbie
 
Registered: Jun 2004
Location: Upington,South Africa
Distribution: SuSe;RedHat;Fedora
Posts: 22

Rep: Reputation: 15
LAMP with severe slowdowns when opening PHP scripts.


The Problem:

I am running a LAMP configuration at home for some web development. Now I am considering on taking it directly to the net and do some of my clients hosting from home. There is just one thing that is bugging me...
When I open up a page it takes about 5-10 seconds to open a page when I have a bit of embedded PHP.
Normal html files open up instantly. My CPU usage 2~3% at the most, my memory hardly goes over 150Mb.

There are no system spikes when I try to open up a page [unlike my FC5 which has been replaced now].

The Specs:

AMD2800+
1024DDR
80Gb HDD [with about 20mb transfer rate]
O/B NIC - seems ok
CentOS4.4
 
Old 07-05-2007, 08:49 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Hi there

Good to see another South African in here.

Are you sure you're not having some form of DNS issue? I encountered something similar once, and it had to with a DNS server not being accessible from my desktop.

For example, if my DSL router at home goes down, it takes me about 30 seconds to get into X from a text console - if the router is up, it is virtually instantaneous... ergo DNS.

What you can try (if you want to insure that it is something on your system itself that is causing this) is to put the site online at a hosting provider. Hetzner (hetzner.co.za) is a good choice and they offer LAMP hosting - put the code there, and see if it still has the delay... if it does, it is your code, if it does not, it is your system.

Other than a possible DNS problem I've got no ideas... have you tried NOT using symbolic names?

On our development setup at work I always use numeric addresses, i. e. when developing PHP pages I use

http://20.0.0.16/php/project/index.php

never

http://development/php/

etc. to make sure that no DNS resolution is done.

Hope this helps,

Regards,
 
Old 07-05-2007, 04:10 PM   #3
Heinz09
LQ Newbie
 
Registered: Jun 2004
Location: Upington,South Africa
Distribution: SuSe;RedHat;Fedora
Posts: 22

Original Poster
Rep: Reputation: 15
Good to see another South African on the site, I found the problem. It was a very painful way to find out what was wrong. Hard drive crashed a day before we had to do a site demo.

With another hard drive it seems my speed problem is now no more thankfully.

So yes faulty hardware was the root of all evil.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LAMP @ testing; apache2 coudl not recognize php janus_tr Debian 7 11-13-2006 10:51 AM
LXer: New LAMP Layer: FileMaker API for PHP? LXer Syndicated Linux News 0 08-02-2006 01:54 AM
connecting PHP to MySQL in a LAMP server rickyglucas_143 Linux - Newbie 2 02-06-2006 04:02 AM
HTML/PHP problem, using LAMP AntWarrior Programming 2 11-27-2004 08:49 AM
grrr... LAMP install went fine until I tried to use the GD module of PHP... pld Linux - Software 2 11-10-2004 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration