Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Sep 2011
    Posts
    50
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Exclamation File in subdomain not opening in browser.

    I created a file in my subdomain, but when i go to this page(file) in browser, then the following error occurs:


    (Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@mywebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.)

    Please help me.

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,361
    Thanks
    61
    Thanked 530 Times in 517 Posts
    Well we can't help you unless you show us your code can we!

    If you come here and tell us your script is causing problems then you need to show us the script. Also as the error message says, have you checked your servers error logs?
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #3
    New Coder
    Join Date
    Sep 2011
    Posts
    50
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question

    I think the problem is in file path. Please tell me the following:

    My folder named 'Blogs' is in my folder named 'matter'. Folder 'matter' is in my public_html. There is a file named 'file.php' in the folder 'Blogs'. The full path for file.php should be /home/myusername/public_html/matter/Blogs/file.php. In the same way what should be the full path for a file named 'myfile.php'? 'myfile.php' is in folder 'material'. 'material' is in folder 'blogs'. 'blogs' is the folder of my subdomain 'blogs.mysite.com'.
    Last edited by sunnynosid; 09-29-2011 at 12:17 PM.

  • #4
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,361
    Thanks
    61
    Thanked 530 Times in 517 Posts
    I've already told you to show some code. Coming back and then throwing file paths in instead of the code won't solve anything.

    The description of your file paths is so confusing I'm not even going to try to answer.

    You're not helping yourself much.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #5
    New Coder
    Join Date
    Sep 2011
    Posts
    50
    Thanks
    4
    Thanked 0 Times in 0 Posts
    I cant give you the code because that will be more confusing to you. So please tell me only following:
    What will be the full path for a file that is in my subdomain 'blogs.mysite.com'?
    Like /home/username/public_html/....

  • #6
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,361
    Thanks
    61
    Thanked 530 Times in 517 Posts
    I think you need to read the cpanel documentation.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •