loadUserProfile and IIS7 – understanding temporary directory failures

I’ve noticed quite a few people running into temporary directory permission issues.  The PHP blog post I made last month is one example of this issue, there are also several forum posts related to ASP & Access database failures, where the reported failure is:

Microsoft JET Database Engine error ‘80004005’
Unspecified error

Not a very helpful error, to be sure.  It turns out all of these cases have a similar underlying cause:  the effective user of the web application (including the anonymous user for unauthenticated requests) can not effectively write to the temporary directory.  What changed in IIS7 and why did this always work before?

Read more

Share

How to install PHP on IIS

*Updated Recommendations – Please read the following instructions for running PHP fast and reliably*

The FASTEST and EASIEST way to install PHP on IIS is using Microsoft’s Web Platform installer.  It completely automates setting up IIS, FastCGI and the latest version of PHP from the php.net site.  To install it, just click this button:

If you don’t have Web PI v2 installed, you will be prompted to install it.  Once installed, the tool will launch.  You can either navigate to the “Web Platform” tab and select “PHP” under “Framework and Runtimes” customize link, or close your browser, re-open to this blog and click the button again to launch the tool directly into PHP install.

For step-by-step instructions on how to install PHP on IIS6 (Windows 2003) with the new Microsoft FastCGI module, see Configuring FastCGI Extension for IIS 6.0.

Read more

Share

Google public DNS

What is Google Public DNS?

Google Public DNS is a free, global Domain Name System (DNS) resolution service, that you can use as an alternative to your current DNS provider.

To try it out:

* Configure your network settings to use the IP addresses 8.8.8.8 and 8.8.4.4 as your DNS servers or
* Read our configuration instructions.

If you decide to try Google Public DNS, your client programs will perform all DNS lookups using Google Public DNS.

Why does DNS matter?

The DNS protocol is an important part of the web’s infrastructure, serving as the Internet’s phone book: every time you visit a website, your computer performs a DNS lookup. Complex pages often require multiple DNS lookups before they start loading, so your computer may be performing hundreds of lookups a day.

Why should you try Google Public DNS?

By using Google Public DNS you can:

* Speed up your browsing experience.
* Improve your security.
* Get the results you expect with absolutely no redirection.

Src: http://code.google.com/speed/public-dns/
Share

Howto Install PHP GD (PHP Graphics) support in Ubuntu / Debian

PHP is not limited to creating just HTML output. It can also be used to create and manipulate image files in a variety of different image formats, including GIF, PNG, JPEG, WBMP, and XPM. Even more convenient, PHP can output image streams directly to a browser. You need to install GD Library for this purpose. Simply you can do this.
If you have a LAMP (PHP. APACHE and Mysql) Installation in your System , you can install GD library using the following .

in Ubuntu /Debian Install the package.

apt-get install php5-gd

Share

Squid proxy server with user authentication

If you are planning to set up proxy authentication program, using squid+webmin it’s quite simple-

  1. Click “Authentication Program” icon on webmin
  2. Enter the following infos in the right boxes-
    Basic authentication program- /usr/lib/squid/pam_auth

    Number of authentication programs- 5

    Authentication cache time- 5 Hrs

  3. Back to squid index
  4. Click “Access Control” icon
  5. Under “Access Control List” click on “Create new ACL” button while selecting “External Auth”
  6. In the next window- enter ACL name as “AUTHENTICATED” (remember this is case sentative!
  7. Click save
  8. Click return to index
  9. Click “Apply changes”
  10. If needed restart squid if changes doesnt work

Now your user should be getting an, authentication window!

Test it, by creating a linux user and password in the squid server and insert them in the browser panel!

Share

Install Ubuntu 8.04.2 (32 bit) Server

It is recommended to use a clean (fresh) Ubuntu 8.04 LTS install where you selected no additional packages or servers during setup. :

1) Prepare your OS
*******************************************************************************
Become root user by executing:
___
sudo su
___

and entering the password of the user that you created during setup.

Edit the file /etc/apt/sources.list and comment out the line beginning with “deb cdrom:….”, then run:
___
apt-get update
apt-get -u upgrade
___

Read more

Share

Microsoft “Dhaka” daylight savings patch

Microsoft Bangladesh today announced a patch based fix to address the Day Light Saving Time (DST) which is supposed to be effective in Bangladesh from June 19th at 11PM. This fix can be downloaded from Microsoft’s corporate website by going to http://support.microsoft.com/kb/972423 and will be applicable to Computers running on Microsoft operating systems Windows Vista, Windows XP, Windows Server 2008 and Windows Server 2003. Users may have to take additional steps for any other Operating system or application they are using.

Users have to download the .msi file from the given website, run it and then choose “(GMT+06:00) DHAKA” option from the “Time Zone Settings” instead of “Astana, Dhaka” and check on the “AUTOMATICALLY ADJUST CLOCK FOR DAY LIGHT SAVING TIME” to enable DST. This would automatically adjust the clock on June 19th at 11PM from when the DST would be effective.

Share

Installing Proftpd on Suse Linux 11.0

It was a really time consuming to make a workable daemon of proftp server. Surprisingly, this daemon is not a easily setup by other linux disto like FC or CentOS or RHL.  Anyway, the purpose on installing this is to make it work with Webmin+Virtualmin package. So, this installation will be handy for Webmin/Virtualmin guys! Remember, this is a manual installaiton. So, let’s start!

Read more

Share

Apache htaccess and htpasswd

In order to protect a site or a directory using Apache htaccess and htpasswd files follow the steps-

1. Creating .htaccess file and putting the following code-

AuthUserFile /your/abosolute/path/to/this/file/.htpasswd
AuthGroupFile /dev/null
AuthName "Protected files"
AuthType Basic
<Limit GET>
require valid-user
</Limit>

2. Create a .htpasswd in the same directory as .htaccess and put your generated code. Now the big question how to get a ‘generated code’. Apache used bas_64 encoding. A good web based generator is-

http://www.htaccesstools.com/htpasswd-generator/

Save the file.

And here you go! Your site is protected!

Share