Setting your .htaccess file to allow PHP

The process for creating PHP pages is documented at http://www.cs.uwaterloo.ca/cscf/student/www#www/scripts_php.faq and it includes this step.

Your .htaccess file inside of public_html or an appropriate subdirectory should contain the following line:

AddHandler cgi-script .php
Then, you must make sure that only PHP scripts (and all PHP scripts) end in .php and are in the same directory as the .htaccess file or a subdirectory of it.

See also:

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2010-10-13 - TerryVaskor
 
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