My PHP files are not working. What is wrong?

There are a number of reasons that your PHP files may not be working properly.

Check that you have requested PHP
Even though every hosting plan supports PHP you may not have the most recent version or the same option for every server. You can check that you are using the correct version of PHP from the front page of your control panel.

This will also confirm that PHP is working correctly for your account. If there is an error in the PHP binary or if the permissions were incorrect, an error may be listed on your error log.

Check that the cgi-bin and PHP binary have the correct permissions (UNIX platforms)
At times, you may make permission changes to your cgi-bin directory and files. If these permissions are not correct, PHP may not operate properly.

To check that the cgi-bin directory and PHP binary have the correct permissions.

The permissions must be one of the following:
" 751 (which equates to drwxr-x--x)
" 755 (which equates to drwxr-xr-x)

This can be done by your file manager or with our free ftp program here:

http://www.downloadspot.com

Check the directives in your php.ini file (UNIX platforms)
If you have uploaded a php.ini file and are experiencing problems with PHP, you may want to check what directives are included in the php.ini file. For example, you may be trying to use a feature that has been disabled in the php.ini file.

Since the php module does not have control over the httpd.conf (or .htaccess files), you need to put a php.ini file with your needed changes in file in the directory your php scripts are running in.

Please ask question in our web hosting support thread above, you will see other questions and help on there as well.

Was this answer helpful?

Also Read

Can I change my web hosting main domain name?

Yes, and it's very easy.Just add a support ticket like this:  old: olddomain.comnew:...

How to back up any part of your website

We all know how important it is to back up your website. That is why Web Host Pro made sure it's...

How to add / install Wordpress

Log into your account manager from any page on our website or with the link here: Account...

How to flush your DNS cache

Your home computer creates a cache for all DNS settings. It does this to save time each time you...

What is the PHP Handler for shared web hosting accounts?

We use SuPHP on all shared servers. We do have a legacy server that uses CGI for the PHP Handler...