Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have new server, server ip point me to


File manager can show me public_html folder without any index.html and htdocs? Please advise me how to run php file by removing defaultwebpage.cgi?

Directory structure (from comment below): enter image description here

share|improve this question

migrated from Jan 7 '12 at 11:53

This question came from our site for professional and enthusiast programmers.

Have a look for the server config e.g. apache.conf, vhost.conf or .htaccess files.

One of them will contain a redirect command.

share|improve this answer
<a href=""; target="_blank"><img src=""; border="0" alt="Image and video hosting by TinyPic"></a> – Aslam Khan Jan 7 '12 at 11:48
I cannot see apache.conf, vhost.conf or .htaccess files. Please see above image – Aslam Khan Jan 7 '12 at 11:48
I can see .htaccess, please guide me how to fix redirect. I can see .htaccess in almost all folders, in root and in sub-folders too. – Aslam Khan Jan 7 '12 at 21:35

it looks like you are having a linux hosting. Normally in linux hosting the files has to be uploaded into the public_html folder where as in windows hosting you use the htdocs folder. Just upload your index file to the public_html folder and access your site it will automatically load the index file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.