Troubleshooting PHP timeouts in GoDaddy Windows hosted Wordpress blogs – Part 2

by Klaus Graefensteiner 8. February 2010 10:02

Introduction

Just a few minutes ago I posted the first blog post of this series: Troubleshooting PHP timeouts in GoDaddy Windows hosted Wordpress blogs – Part 1. It basically talked about how shared hosting environments are black boxes and that if you need more resources (a bigger share) on your shared server, you need to complain about the ridiculous response times to the shared hosting provider.

This blog post is a little bit more technical and is the first step of shedding light into the black box of a shared hosting server.

image

Figure 1: Going down a black hole

PHP System Info

Before you start troubleshooting anything try to get a picture of the environment your application is running in. Here is how you can go about it.

Create a text file called phpinfo.php.

This file has the following php snippet in it:

<?php
phpinfo();
?>

Copy the file to the root directory

Use a FTP client and copy the file to the root directory of your php application that performs poorly.

image

Figure 2: phpinfo.php in root directory of application

Navigate your browser

Open your browser and navigate to http://yourdomain/phpinfo.php

When you call this script it will call the phpinfo() function and provide you with all kinds of valuable information about the computer that is hosting your application.

Here is a short except:

image

Figure 3: phpinfo() output

The important pieces of information are the debug and logging settings, the timeout configuration and the memory limits:

image

Figure 4: Important configuration settings

Further down you will find some information about the windows computer in the _SERVER variable.

Delete the phpinfo.php script

Don’t forget to delete the script file after you gathered the information.

Download

The phpinfo.php script can be downloaded here: phpinfo.zip

Ausblick

This is just the start. The big question that I would like to get answered in upcoming posts is how to configure the critical PHP settings and how to profile PHP on a shared hosting server.

Stay tuned!

Tags: , , , , , ,

Debugging | Tips & Tricks | Php

Comments

2/10/2010 11:53:19 PM #

Britton Graefensteiner

Does your wife know how talented you are?  If not, I'm waiting in the wings...

Britton Graefensteiner United States |

2/11/2010 10:51:17 PM #

trackback

healthylivinggal's status on Friday, 12-Feb-10 13:51:42 UTC

Troubleshooting PHP timeouts in GoDaddy Windows hosted Wordpress blogs – Part 2 : http://tinyurl.com/yjc6xsn

healthylivinggal |

2/12/2010 6:22:12 AM #

S Halevy

I use GoDaddy for hosting and your article is a great help!!
Thanks

It seems that Rockwell offers a better traing and self expression opportunities that Wonderware/Invensys Smile

S Halevy United States |

Comments are closed

About Klaus Graefensteiner

I like the programming of machines.

Add to Google Reader or Homepage

LinkedIn FacebookTwitter View Klaus Graefensteiner's profile on Technorati
Klaus Graefensteiner

Klaus Graefensteiner
works as Developer In Test and is founder of the PowerShell Unit Testing Framework PSUnit. More...

Open Source Projects

PSUnit is a Unit Testing framwork for PowerShell. It is designed for simplicity and hosted by Codeplex.
BlogShell is The tool for lazy developers who like to automate the composition of blog content during the writing of a blog post. It is hosted by CodePlex.

Administration

About

Powered by:
BlogEngine.Net
Version: 1.6.1.0

License:
Creative Commons License

Copyright:
© Copyright 2012, Klaus Graefensteiner.

Disclaimer:
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Theme design:
This blog theme was designed and is copyrighted 2012 by Klaus Graefensteiner

Rendertime:
Page rendered at 2/5/2012 10:40:56 PM (PST Pacific Standard Time UTC DST -7)