Surf 11 » Archives for March, 2007

Finding the best waves on the web.

CFFile on Godaddy ColdFusion Hosting

I've been testing out godaddy's coldfusion hosting with a linux account. I noticed that in order to write or copy a file with the CFFILE tag you need CHMOD the directory such that other has write permission! They recommend chmod'ing to 703. Kind of crazy I know

If your having trouble with uploading check out the comments on sean corfield's blog



Simple Port Scan with NMap

Port Scan's don't only need to be the tool for hackers, they area a handy tool for a network or server administrator. Especially when debugging firewall issues. For example want to see which TCP ports www.google.com has open?

nmap -sT www.google.com

The output of the simple example above might look something like this:

Interesting ports on py-in-f104.google.com (64.233.167.104):
(The 1657 ports scanned but not shown below are in state: filtered)
PORT STATE SERVICE
80/tcp open http
179/tcp closed bgp
443/tcp open https
Nmap run completed -- 1 IP address (1 host up) scanned in 31.619 seconds

That shows port 80, 179, and 443 open, so if your trying to ssh into google.com you won't get very far.



Godaddy Hosting mod_rewrite with .htaccess Files

I have been testing out the Linux ColdFusion hosting on Godaddy. One thing I use a lot however is mod_rewrite, but I've been having some issues so far. Here are some tips that I've found so far about this

  • Changes to the .htaccess file may take up to one hour before you will see them.
  • Make sure you have added RewriteEngine on to your .htaccess
  • Another blogger has pointed out that URL's that have .php are processed before mod_rewrite (so your rules may not work on those urls).
  • It looks like you may need to add Options +FollowSymLinks to your .htaccess file.
  • Make sure you have spelled htaccess correctly, two c's and two s's
  • You might require a / in the second part of your RewriteRule.

Here's an example .htaccess file for mod_rewrite on Godaddy:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^/foo /test.cfm?path=foo


svn: The path was not part of a repository

If your getting this error message in subversion with a svn checkout (or svn co):

svn: The path was not part of a repository
svn: PROPFIND request failed on '/'
svn: '/' path not found

One possible cause is that you haven't imported anything into your svn repository yet. You can use the svn import command to do that.



Error Staring ColdFusion MX - JVM Heap Issues

If your running the Service Pack 1 on Windows 2003, and ColdFusion MX with more than 1024mb in the max heap setting, you might see the error:

Windows could not start the ColdFusion MX Application Server on Local
Computer. For more information, review the System Event Log. If this
is a non-Microsoft service, contact the service vendor, and refer to
service-specific error code 2.

In the logs you might see:

Error occurred during initialization of VM
Could not reserve enough space for object heap

The problem could be a number of things but here are two possibilities you should look into:

  • Microsoft Windows 2003 Service Pack 1 Bug - Programs that request lots of contiguous memory, such as one gigabyte or more, may fail with an unexpected error after you install security update 921883 on a computer that is running an x64-based version of Microsoft Windows Server 2003, Microsoft Windows Server 2003 with Service Pack 1 (SP1), or Microsoft Windows XP Professional x64 Edition. There is a hotfix for this issue, and it should be fixed in future service packs.
  • Heap Size Greater than 1.8GB - in this case you may have run into a limit of 32 bit Windows, see the link for more info.


Subscribe to our RSS Feed: subscribe to this feed XML
Archives   Tags   Contact