Skip to main content

Unable to execute any php or html file

Comments

8 comments

  • cPanelMichael
    Hello @Tarak Nath, Here's a quote from my response to your other thread (the response is the same for this issue): [QUOTE] There are several limitations when using the Apache Mod_Userdir URL to access a website. These are documented at: How to Modify your hosts File - cPanel Knowledge Base - cPanel Documentation Can you let me know if the issue persists when accessing the website using the method documented in the link above?
    Thank you.
    0
  • Tarak Nath
    Hello, Thank you for your response. Please note that we are using suPHP handler in our server. It will worki if we disable "mod_userdir" ? Regards, Tarak Nath
    0
  • cPanelMichael
    Please note that we are using suPHP handler in our server. It will worki if we disable "mod_userdir" ?

    Hello @Tarak Nath, To confirm, the "index.html" and "index.php" files are only accessible using the Mod_Userdir URL? Or, are you stating they are not accessible using the Mod_Userdir URL? Are you opening them via a web browser, or through another method? Also, can you share the output to the Apache error log during the failed attempts to execute the "index.html" and "index.php" pages? Thank you.
    0
  • Tarak Nath
    are you stating they are not accessible using the Mod_Userdir URL? Are you opening them via a web browser, or through another method?

    Yes, they (index.php or index.html) are not accessible via web browser.
    0
  • cPanelMichael
    Yes, they (index.php or index.html) are not accessible via web browser.

    In this case, try accessing the domain names using the hosts file method referenced in my earlier response to verify if they are accessible using that method. Thank you.
    0
  • Tarak Nath
    Hello @cPanelMichael , I have tried to accessing the domain name after the host file modified as per your previous response. But the result is remain same. Regards, Tarak Nath
    0
  • Tarak Nath
    Hello, We have found the main reason. There was firewall which created the issue. For security reason, there is a rule for domain name specific traffic request enable /disable. We have allowed the said domain through firewall and its perfectly working. Thank you for everything. Please mark this thread as SOLVED. Regards, Tarak Nath
    0
  • cPanelMichael
    Hello @Tarak Nath, I've marked this thread as solved. Thanks for sharing the outcome!
    0

Please sign in to leave a comment.