OpenKB::Server Technical Papers

SQL: attached a mdf without the log file.

by admin on Feb.19, 2010, under SQL

Missing ldf file

Solution
You can attach a database without the logfile by attaching, then clicking the logfile location, and click the remove button. After you click OK a new logfile will be created for your database

Comments Off more...

ASP mailer error : Server.CreateObject Failed

by admin on Feb.14, 2010, under ASP

Error on windows 2008

Server object error ‘ASP 0177 : 800401f3′

Server.CreateObject Failed 800401f3

Solution
the ASPMail component is NOT supported on Windows 2008 You will need to use the System.Net.Mail Component for .net. I pasted some sample code to get you started below. Please be advised that this sample will need to be modified some.

<%@ Import Namespace="System.Net.Mail"%>
<script language="VBScript" Debug="true" runat="server">
sub Page_Load()
Dim oMsg As New MailMessage()
oMsg.From = New MailAddress("mailbox@yourdomain.com")
oMsg.To.Add("recipient@theirdomain.com")
oMsg.Subject = "This is an email"
oMsg.Body = "<HTML><BODY>Hello World!</BODY></HTML>"
Dim smtp As New SmtpClient("scriptmail.yourdomain.com")
smtp.Send(oMsg)
oMsg = Nothing
end sub
</script>

More information on this component can be found at http://www.systemnetmail.com/

also
How do I send mail from Windows 2008 server/IIS7?

M$ KB

Comments Off more...

IIS : WW-Authenticate header field that the Web server

by admin on Feb.08, 2010, under Windows

full Error

You are not authorized to view this page

You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending a WWW-Authenticate header field that the Web server is not configured to accept.

Please try the following:
Contact the Web site administrator if you believe you should be able to view this directory or page.
Click the Refresh button to try again with different credentials.

HTTP Error 401.2 – Unauthorized: Access is denied due to server configuration. Internet Information Services (IIS)

Technical Information (for support personnel)
Go to Microsoft Product Support Services and perform a title search for the words HTTP and 401.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled About Security, Authentication, and About Custom Error Messages.

————-

Fix :

you will need to change the authenication method to basic instead of Integrated authentication. This mostly effects older browsers.

There is a slight draw back to this .With basic , the login details will be sent in plan text..

M$ words
Common reasons
No authentication protocol (including anonymous) is selected in IIS. At least one authentication type must be selected. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
253667 Error message: HTTP 401.2 – Unauthorized: Logon failed due to server configuration with no authentication
Only Integrated authentication is enabled, and an older, non-Internet Explorer client browser tries to access the site. This happens because the client browser cannot perform Integrated authentication. To resolve this problem, use one of the following methods:
Configure IIS to accept Basic authentication. This should only occur over SSL for security purposes.
Use a client browser that can perform Integrated authentication. Internet Explorer and new versions of Netscape Navigator and Mozilla Firefox can perform Integrated authentication.
Integrated authentication is through a proxy. This happens because the proxy doesn’t maintain the NTLM-authenticated connection and thus sends an anonymous request from the client to the server. Options to resolve this problem are as follows:
Configure IIS to accept Basic authentication. This should only occur over SSL for security purposes.
Don’t use a proxy.

M$ KB

Comments Off more...

mysql: Incorrect information in file:

by admin on Jan.30, 2010, under MySQL

Incorrect information in file /path/test.frm

This indicates that skip-innodb is enabled in the my.cnf file ..

Comments Off more...

IIS7 | Drupal install with fastcgi

by admin on Jan.24, 2010, under Windows

OMG!!!!

Ok that was out of the way. performing a Drupal install for the first time using IIS version 7 and windows 2k8 server. After entering the database information I was faced with a 500 error message that gave me a lot of information. SIKE

The 500 error gave me nothing at all, did not tell me where the error was or which file caused the error. By default IIS7 will suppress the PHP errors and will not show them in the browser. This is the case even if Display_errors is turned on in the php.ini file.  I had to enable the directive to save the error to a flat file error_log= /path

some techs have enabled enabled IIS7 errors server wide using
%windir%\system32\inetsrv\appcmd.exe set config -Section:system.webServer/httpErrors -errorMode:Detailed

Issue 1
If you have tried installing Drupal on Windows Vista or Server 2008 recently with PHP configured to use Microsoft’s FastCGI handler, then you will have no doubt encountered a problem where you are unable to make any updates to your site configuration. This is because the REQUEST_URI variable when using Microsoft’s FastCGI handler on IIS 7 does not include the query string as it does with other Web servers such as Apache. Until the IIS team release a fix for this you’ll need to use a work around to rectify the issue.

The easiest way to rectify the issue at the moment is to modify the request_uri() function in Drupal. To do this simply open the Drupal bootstrap file in “includes/bootstrap.php” find the appropriate section of code and modify as follows;

function request_uri() {

/* Comment out the condition that uses REQUEST_URI server variable
if (isset($_SERVER['REQUEST_URI'])) {
$uri = $_SERVER['REQUEST_URI'];
}
else { */
if (isset($_SERVER['argv'])) {
$uri = $_SERVER['SCRIPT_NAME'] .'?'. $_SERVER['argv'][0];
}
elseif (isset($_SERVER['QUERY_STRING'])) {
$uri = $_SERVER['SCRIPT_NAME'] .'?'. $_SERVER['QUERY_STRING'];
}
else {
$uri = $_SERVER['SCRIPT_NAME'];
}
// }

return $uri;
}

Then I found i was receiving the error

isssue 2 :
Fatal error: Trying to clone an uncloneable object of class mysqli in db-mysqli.php

Fix : “Fatal error: Trying to clone an uncloneable object of class mysqli – If this error occurs you must turn off the zend.ze1_compatibility_mode setting in your PHP configuration.”

ini_set(‘zend.ze1_compatibility_mode’, 0);

Issue 1 can be fixed by having your administrator install the M$ path or upgrade to SP2
Patch

Dont forget to read the install docs

Comments Off more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!