

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://www.ugcs.caltech.edu/wiki/skins/common/feed.css?116"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>UGCS - Recent changes [en]</title>
		<link>http://www.ugcs.caltech.edu/wiki/Special:Recentchanges</link>
		<description>Track the most recent changes to the wiki in this feed.</description>
		<language>en</language>
		<generator>MediaWiki 1.12.0</generator>
		<lastBuildDate>Fri, 10 Sep 2010 10:54:00 GMT</lastBuildDate>
		<item>
			<title>Documentation:Web debugging</title>
			<link>http://www.ugcs.caltech.edu/wiki/index.php?title=Documentation:Web_debugging&amp;diff=2546&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:39, 7 September 2010&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==mod_security==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==mod_security==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To help protect against various types of web attacks, we run [http://www.modsecurity.org/ mod_security].  Sometimes its rules can interfere with your normal use.  To solve this, &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;you need to add &lt;/del&gt;a line&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To help protect against various types of web attacks, we run [http://www.modsecurity.org/ mod_security].  Sometimes its rules can interfere with your normal use.  To solve this, a line&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; SecRuleRemoveById &amp;lt;id&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; SecRuleRemoveById &amp;lt;id&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;to &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;a .htaccess &lt;/del&gt;file &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;in the directory containing your code&lt;/del&gt;.  To find the ID, look at your error log for a line that mentions &amp;quot;ModSecurity: Access Denied&amp;quot;.  Part of this line will be a field that looks like&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;needs &lt;/ins&gt;to &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;be added to an Apache configuration &lt;/ins&gt;file.  To find the ID, look at your error log for a line that mentions &amp;quot;ModSecurity: Access Denied&amp;quot;.  Part of this line will be a field that looks like&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; [id &amp;quot;xxxxxxx&amp;quot;]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; [id &amp;quot;xxxxxxx&amp;quot;]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This ID should be substituted in the SecRuleRemoveById line, which will disable it and allow your application to run.  If you need more information, consult the mod_security documentation &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;or ask &lt;/del&gt;a sysadmin.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This ID should be substituted in the SecRuleRemoveById line, which will disable it and allow your application to run.  If you need more information, consult the mod_security documentation&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Note that you will have to contact &lt;/ins&gt;a sysadmin &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;to have this line added as mod_security currently doesn't support .htaccess overrides&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==pcfg_openfile: unable to check htaccess file==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==pcfg_openfile: unable to check htaccess file==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 07 Sep 2010 21:39:31 GMT</pubDate>			<dc:creator>Jdhutchin@ugcs.caltech.edu</dc:creator>			<comments>http://www.ugcs.caltech.edu/wiki/Documentation_Talk:Web_debugging</comments>		</item>
		<item>
			<title>Documentation:Index</title>
			<link>http://www.ugcs.caltech.edu/wiki/index.php?title=Documentation:Index&amp;diff=2545&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Web hosting: &lt;/span&gt; &lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:51, 7 September 2010&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Documentation:Postgres|Postgres Database]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Documentation:Postgres|Postgres Database]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Documentation:Virtual_Hosting|Virtual Hosting]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Documentation:Virtual_Hosting|Virtual Hosting]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* [[Documentation:Web_debugging|Website Debugging]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==UGCS Software==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==UGCS Software==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 07 Sep 2010 19:51:58 GMT</pubDate>			<dc:creator>Jdhutchin@ugcs.caltech.edu</dc:creator>			<comments>http://www.ugcs.caltech.edu/wiki/Documentation_Talk:Index</comments>		</item>
		<item>
			<title>Documentation:Web debugging</title>
			<link>http://www.ugcs.caltech.edu/wiki/index.php?title=Documentation:Web_debugging&amp;diff=2544&amp;oldid=prev</link>
			<description>&lt;p&gt;New page: =Web Debugging= __NOTOC__  Since UGCS is a different environment than you may be used to, you may have some issues getting your code to run in our environment.  This page aims to list some...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Web Debugging=&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
Since UGCS is a different environment than you may be used to, you may have some issues getting your code to run in our environment.  This page aims to list some of the common issues not touched on elsewhere to make them easier to fix.&lt;br /&gt;
&lt;br /&gt;
==Basic Debugging==&lt;br /&gt;
First, look at your logs in /afs/ugcs/apache-logs/username.  The error log will hopefully contain something useful, or it may point you towards other issues here.&lt;br /&gt;
&lt;br /&gt;
==mod_security==&lt;br /&gt;
To help protect against various types of web attacks, we run [http://www.modsecurity.org/ mod_security].  Sometimes its rules can interfere with your normal use.  To solve this, you need to add a line&lt;br /&gt;
 SecRuleRemoveById &amp;lt;id&amp;gt;&lt;br /&gt;
to a .htaccess file in the directory containing your code.  To find the ID, look at your error log for a line that mentions &amp;quot;ModSecurity: Access Denied&amp;quot;.  Part of this line will be a field that looks like&lt;br /&gt;
 [id &amp;quot;xxxxxxx&amp;quot;]&lt;br /&gt;
This ID should be substituted in the SecRuleRemoveById line, which will disable it and allow your application to run.  If you need more information, consult the mod_security documentation or ask a sysadmin.&lt;br /&gt;
&lt;br /&gt;
==pcfg_openfile: unable to check htaccess file==&lt;br /&gt;
Apache starts at the filesystem root and checks each directory for a .htaccess file.  If you have a file named .htaccess in a directory above your web directory that Apache is unable to read, it will fail.  This can occur if you have copied a .htaccess file into your home directory, where Apache cannot read it.  Rename this file (~/.htaccess to anything other than .htaccess) to make your site work again. &lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Documentation:Web_basics|Web basics]]&lt;/div&gt;</description>
			<pubDate>Tue, 07 Sep 2010 19:50:47 GMT</pubDate>			<dc:creator>Jdhutchin@ugcs.caltech.edu</dc:creator>			<comments>http://www.ugcs.caltech.edu/wiki/Documentation_Talk:Web_debugging</comments>		</item>
	</channel>
</rss>