<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hostek.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Caleb.williamson</id>
		<title>Hostek.com Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hostek.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Caleb.williamson"/>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/Special:Contributions/Caleb.williamson"/>
		<updated>2026-05-25T06:12:01Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=ColdFusion_Error_Log&amp;diff=3819</id>
		<title>ColdFusion Error Log</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=ColdFusion_Error_Log&amp;diff=3819"/>
				<updated>2018-06-05T23:25:12Z</updated>
		
		<summary type="html">&lt;p&gt;Caleb.williamson: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==What is the ColdFusion Error Log?==&lt;br /&gt;
&amp;lt;p&amp;gt;There are two types of logs that could contain information about your site. First on the list here is the Server error logs, and the second is logs created by using the cflog tag..&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;''''ColdFusion Server Errors'''': The errors reported here are errors that your site are throwing in ColdFusion. NOTE: Our production servers should not be used for development, so you should be doing your development work on your local machine. However, if your site is throwing an error, this will give you the ability to see that error.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;''''cflog tag logging'''': NOTE: We strongly suggest to not use the &amp;quot;information&amp;quot; type. We also suggest to only set the type to &amp;quot;error&amp;quot; or &amp;quot;fatal&amp;quot; on the production servers. ColdFusion writes the logs to a system path. For security purposes, your cflog logs will only appear here if you have given the file name in the cflog tag the name of your domain, without the www. For example, if your domain is your_domain.com you would set the file attribute for the cflog tag like: file=&amp;quot;your_domain.com&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let's go ahead and show how to view your domains server and application error logs.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to access the ColdFusion error logs in WCP==&lt;br /&gt;
&lt;br /&gt;
We'll share the steps needed to get to the ColdFusion error logs below:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;First login to your WCP control panel for the account the domain is under: https://wcp.hostek.com&amp;lt;/p&amp;gt;&lt;br /&gt;
[[file:wcp_url_secure.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;Br /&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;If you have any issues with logging into WCP then please see our tutorials on [[Forgot_WCP_Password|recovering your password]] if necessary&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;Once logged into WCP if you have multiple domains you may need to select the appropriate domain to manage using the ''''Hosted Domains'''' drop-down in the top-right of the page as shown in the screenshot below:&amp;lt;/p&amp;gt;&lt;br /&gt;
[[file:wcp_change_domain.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;Once in the correct domains WCP control panel click on the ''''ColdFusion Error Logs'''' icon under the ''''ColdFusion'''' section.&amp;lt;/p&amp;gt;&lt;br /&gt;
[[file:CFErrorButton.PNG]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===View Server Error Logs===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;Choose the Server Error Logs tab..&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:ServerLogs.PNG]]&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;''''Wrap Text''''&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This will allow the error text to be wrapped within the text frame to prevent the need for scrolling to see the entire message.&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:WrapText.PNG]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;''''Hours''''&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Allows you to choose the amount of hours you wish to view logs for. (1-24 hours)&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:Hours.PNG]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;Click the ''''Update'''' button.&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This will populate the Server Error Logs text box with any related error logs.&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:Update.PNG]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;''''Server Error Logs'''' text box.&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This box will display the server error logs for your domain within the time frame you have choosen.&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:ServerLogs2.PNG]]&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===View Application Error Logs===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;Choose the Application Error Logs tab.&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:ApplicationLogs.PNG]]&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;''''Wrap Text''''&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This will allow the error text to be wrapped within the text frame to prevent the need for scrolling to see the entire message.&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:WrapText.PNG]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;''''Hours''''&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Allows you to choose the amount of hours you wish to view logs for. (1-24 hours)&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:Hours.PNG]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;''''Purge Logs''''&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The purge logs button allows you to clear out all application error logs for your domain.&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:Purge.PNG]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;Click the ''''Update'''' button.&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This will populate the Server Error Logs text box with any related error logs.&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:Update.PNG]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;''''Application Logs'''' text box.&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This box will display the server error logs for your domain within the time frame you have choosen.&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:ApplicationLogsText1.PNG]]&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:WCP (Windows based Control Panel)]]&lt;/div&gt;</summary>
		<author><name>Caleb.williamson</name></author>	</entry>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Protect_and_lock_down_Wordpress&amp;diff=3743</id>
		<title>Protect and lock down Wordpress</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Protect_and_lock_down_Wordpress&amp;diff=3743"/>
				<updated>2017-10-13T18:32:30Z</updated>
		
		<summary type="html">&lt;p&gt;Caleb.williamson: /* Windows Server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
==How to Protect WordPress==&lt;br /&gt;
===Windows Server===&lt;br /&gt;
#Edit or Create a file named .htaccess within the directory of your WordPress installation  (yes, the file starts with .)&lt;br /&gt;
#Place this code in the .htaccess file (this example assumes your IP is 123.123.123.123).  Click to see your [http://hostek.com/ip IP].&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?xmlrpc\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?admin-ajax\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$&lt;br /&gt;
 RewriteRule .* http://0.0.0.0/Please_check_your_htaccess_file_or_contact_your_hosting_provider_for_assistance [R=301]&lt;br /&gt;
 &lt;br /&gt;
NOTE: If you need to allow access from more than 1 IP replace the REMOTE_ADDR line with this example and update accordingly&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$&lt;br /&gt;
&lt;br /&gt;
'''What this does:''' The above rule locks down the Wordpress dashboard, as well as the ability for the wordpress api ( xmlrpc ) to be attacked. The xml-rpc file essentially allows for outside applications to &amp;quot;interact&amp;quot; and &amp;quot;communicate&amp;quot; to your wordpress site in ways you may not want to. The reason for locking down the WordPress dashboard is because Wordpress is widely targeted around the world for potential vulnerabilities. Attackers will attempt to find common vulnerabilities known for each version of WordPress and will attempt to get in and compromise your site.&lt;br /&gt;
&lt;br /&gt;
The 'admin-ajax.php' file is being locked down because this file is commonly targeted by attackers to hurt your site and server performance. This file is very resource heavy as it takes up a lot of CPU. It is very uncommon for this to ever be used as it's a wordpress heartbeat API. If you do need this file enabled then I'd recommend locking it down to specific IP Addresses.&lt;br /&gt;
&lt;br /&gt;
===Linux Server===&lt;br /&gt;
#Edit or Create a file named .htaccess within the directory of your WordPress installation  (yes, the file starts with .)&lt;br /&gt;
#Place this code in the .htaccess file (this example assumes your IP is 123.123.123.123).  Click to see your [http://hostek.com/ip IP].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;FilesMatch 'wp-login|admin-ajax.php|wp-admin|xmlrpc.php'&amp;gt;&lt;br /&gt;
  RewriteEngine On&lt;br /&gt;
  RewriteCond %{REMOTE_ADDR} !123.3123.123.123&lt;br /&gt;
  RewriteRule .* http://0.0.0.0/Please_check_your_htaccess_file_or_contact_your_hosting_provider_for_assistance [R=301]&lt;br /&gt;
&amp;lt;/FilesMatch&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: If you need to allow access from more than 1 IP replace the REMOTE_ADDR line with this example and update accordingly&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !123.123.123.123&lt;br /&gt;
&lt;br /&gt;
'''What this does:''' The above rule locks down the Wordpress dashboard, as well as the ability for the wordpress api ( xmlrpc ) to be attacked. The xml-rpc file essentially allows for outside applications to &amp;quot;interact&amp;quot; and &amp;quot;communicate&amp;quot; to your wordpress site in ways you may not want to. The reason for locking down the WordPress dashboard is because Wordpress is widely targeted around the world for potential vulnerabilities. Attackers will attempt to find common vulnerabilities known for each version of WordPress and will attempt to get in and compromise your site.&lt;br /&gt;
&lt;br /&gt;
The 'admin-ajax.php' file is being locked down because this file is commonly targeted by attackers to hurt your site and server performance. This file is very resource heavy as it takes up a lot of CPU. It is very uncommon for this to ever be used as it's a wordpress heartbeat API. If you do need this file enabled then I'd recommend locking it down to specific IP Addresses.&lt;br /&gt;
&lt;br /&gt;
[[Category:WordPress]]&lt;/div&gt;</summary>
		<author><name>Caleb.williamson</name></author>	</entry>

	</feed>