Troubleshooting PHP and SSI

Forbidden Access

If you keep getting forbidden access errors, ensure that you have chmod a+x file.php. It is also important to note that to access the webpage, you must go through https. This is to allow the user to authenticate with her WatIAm credentials. If you are able to access the page without going through https, you have not correctly configured your .htaccess file.

[an error occurred while processing this directive]

This error generally happens when an shtml file fails to include another file. I've noticed that it doesn't like to include php files that are not in the same directory. For instance, the following lines inside file.shtml

<!--#include virtual="file.php" -->
work fine, but

<!--#include virtual="incl/file.php" -->
produce an error.

Solution: keep file.php in the same directory as file.shtml.

Topic revision: r1 - 2010-06-16 - HumaZafar
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback