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.

Tags: files, help, not working, php
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.