Share

January 7, 2009

GoDaddy Linux Shared Hosting - log4j is not supported

I have bought godaddy linux shared hosting with tomcat 5.0.27 and java 1.5 and have been having issues where some parts of the application is not running well. I use log4j to log error and debug message. But I'm unaware of a way or a place to write these log files... I emailed godaddy support and I got the following message.

If any one know of a workaround please let me know, i would be great and saves me from buy dedicated hosting



Thank you for contacting Online Support.

Unfortunately, on a shared hosting account, the permissions are not available to write log files within the hosting account itself. We apologize for any inconveniences this may have caused.

Please let us know if we can help you in any other way.

Sincerely,
Online Support Team



UPDATE: So i tried to see if can write a file to disk to see what happens.... will nothing happened then i got the following email.


Dear Sir/Madam,

It has come to our attention that your hosting account for dawouds.com is causing an issue with Tomcat on the server. This, in turn, affects the usage of the server by other customers as Tomcat is not restarted each night. To protect the overall health of the server, we have renamed all WEB-INF folders on your account.

Unfortunately, we are not able to troubleshoot custom scripting, and therefore, we are not able to provide specific solutions. However, the issue appears to be with the use of log4j, which is not allowed on our shared hosting accounts. Please reference the following link to our help center for more information:

http://help.godaddy.com/article/65

Once you have identified the cause of the issue, please reply directly to this email with the steps taken to resolve the issue. If you are not able to resolve this issue, you should then consider the need to upgrade to a Dedicated Server. If you have questions about this matter, you may contact us by replying to this email or by calling 480-505-8871.

We appreciate your cooperation in this matter.



Not that http://help.godaddy.com/article/65

and using the log4j module would be considered a violation


I'll try to use JDBCAppender as per the following page to log to mySQL DB. I'll update this posting with my finding.