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 | Reply

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 | Reply

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 | Reply

3/7/2010 8:08:50 PM #

San Francisco plastic surgeon

WOW your industrialist came up position in Google. And this is what I was looking for.


Regards
Martin








San Francisco plastic surgeon United States | Reply

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



Administration

About

Powered by:
BlogEngine.Net
Version: 1.5.0.7

License:
Creative Commons License

Copyright:
© Copyright 2009, 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 2009 by Klaus Graefensteiner

Rendertime:
Page rendered at 3/10/2010 6:51:40 PM (PST Pacific Standard Time UTC DST -7)