Choose a destination...
Main Site
Client Area
Billing Area
Community Forum
Server Status
Demo System
Domain Services
10 Sep 2010
Support Centre
»
Knowledgebase
»
Why does the PHP file in my cgi_bin not work? I get a 500 error?
Login
Email:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Downloads
Article Options
Print Article
PDF Version
Email Article
Add to Favourites
Why does the PHP file in my cgi_bin not work? I get a 500 error?
Solution
PHP script files (*.php) should not be placed in the cgi-bin folder. A php file may be placed anywhere else; in /public_html, a subfolder of /public_html or even in the root of your account. The full path to your account is /home/username/ and to your /public_html folder it is /home/username/public_html
PHP files in the /public_html folder (or subfolders) are accessible from the internet by browsing to your domain. So if your domain is example.com and you upload a php file to /home/username/public_html/subfolder then the URL would be
http://www.example.com/subfolder/filename.php
PHP files in your account root are not accessible from the internet, but can be included in other scripts. This is very useful for files containing sensitive data such as usernames and passwords.
Article Details
Article ID:
93
Created On:
20 Oct 2008 01:51 PM
This answer was helpful
This answer was not helpful
Home
|
Submit a Ticket
|
Knowledgebase
|
Downloads
Language:
English (British)
English (U.S.)
Help Desk Software By Kayako eSupport v3.04.10