Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have new server, server ip point me to

http://ip-address/cgi-sys/defaultwebpage.cgi

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 stackoverflow.com Jan 7 '12 at 11:53

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

add comment

2 Answers 2

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="tinypic.com?ref=2hrjvy0"; target="_blank"><img src="i43.tinypic.com/2hrjvy0.jpg"; 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
add comment

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
add comment

Your Answer

 
discard

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.