HTMLCoderHelper.com http://htmlcoderhelper.com Programmers Answers Thu, 23 Feb 2012 01:48:12 +0000 en hourly 1 http://htmlcoderhelper.com Web server hosting infrastructure, does IPS help? http://htmlcoderhelper.com/web-server-hosting-infrastructure-does-ips-help/ http://htmlcoderhelper.com/web-server-hosting-infrastructure-does-ips-help/#comments Wed, 15 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/web-server-hosting-infrastructure-does-ips-help/ Firewall1 -> ReverseProxy(for security) -> Web Server -> firewall2 -> databseFirewall is linux iptables hardened We do not have any IPS or IDS in here.Question is Is ips/ids required for web server hosting? does it gain anything? only ports that are open is 80 and 443]]> I am working on setting up new networking for datacenter hosting a web site.

We have following topology

Internet -> Firewall1 -> ReverseProxy(for security) -> Web Server -> firewall2 -> databse

Firewall is linux iptables hardened

We do not have any IPS or IDS in here.

Question is Is ips/ids required for web server hosting? does it gain anything? only ports that are open is 80 and 443

]]>
Unusual Caching Issue with IE 7/8 and IIS 7 http://htmlcoderhelper.com/unusual-caching-issue-with-ie-78-and-iis-7/ http://htmlcoderhelper.com/unusual-caching-issue-with-ie-78-and-iis-7/#comments Tue, 14 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/unusual-caching-issue-with-ie-78-and-iis-7/ We recently moved a site into production running Server 2008 x64 and IIS 7. The ASP.NET pages apparently load just fine, but when it comes to IE 7 and 8, a weird caching issue has cropped up with the CSS and JavaScript files on the page.

On a very sporadic schedule, IE does not get all the files necessary to compose the page (i.e. CSS and JS files). When I manually go to the missing files from the address bar, they come back from local cache as empty. I F5 these source files and magically they come down properly. I refresh the site after loading a few files and the cache seems to hold.

This problem has only been reproduced (again, sporadically) on IE 7 and 8 running XP. Chrome and Firefox appear to be immune.

We have set IIS to use server-side kernel caching for CSS, JS and images. We also have set to expire content for the App_Themes and Scripts directories to expire immediately. One initial thought it was a SWF loading an FLV on page load. These fixes have not remedied the problem.

We had no problems on our staging server which is using Server 2003 and IIS 6.

Any ideas would be greatly appreciated.

P.S. It sounds similar to this problem: but we do have the Static Content module installed. http://serverfault.com/questions/115099/iis-content-length-0-for-css-javascript-and-images

]]>
Subversion: Can't move... Permission Denied http://htmlcoderhelper.com/subversion-cant-move-permission-denied/ http://htmlcoderhelper.com/subversion-cant-move-permission-denied/#comments Thu, 16 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/subversion-cant-move-permission-denied/ Whilst trying to commit some files to SVN, we're suddenly all getting this error

    Can't move '/usr/local/svn/articles/db/txn-protorevs/2002-8.rev' 
to '/usr/local/svn/articles/db/revs/2/2003': Permission denied

I checked the permissions in the repository, and they look the same as all our other repositories, yet this is the only repo that causes the error.

Any ideas how I can fix this?

SVN is running as root on Linux via svnserve, FWIW.

]]>
One-liner to find all mail servers in AD domain with Powershell http://htmlcoderhelper.com/one-liner-to-find-all-mail-servers-in-ad-domain-with-powershell/ http://htmlcoderhelper.com/one-liner-to-find-all-mail-servers-in-ad-domain-with-powershell/#comments Thu, 16 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/one-liner-to-find-all-mail-servers-in-ad-domain-with-powershell/ I would like to use powershell to find all available mail servers in a given network segment, or domain wide. Is this possible and how could you do it?

]]>
authenticate to ldap in centos http://htmlcoderhelper.com/authenticate-to-ldap-in-centos/ http://htmlcoderhelper.com/authenticate-to-ldap-in-centos/#comments Thu, 16 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/authenticate-to-ldap-in-centos/ I'm trying to set centos to authenticate to a server 2003 AD. I run authconfig-gtk and select ldap for "User Information" and "Authentication" and configure it as such

base dn: dc=test,dc=com

ldap server: 192.168.0.1 and no TLS encryption (need to get it running first)

on the options page

Cache user information, use shadow passwords, password hashing algorithm md5, local authorization is sufficient for local users, create home directories on the first login

But it wont let me ssh into the box with an AD account. Even when i log onto a local account there is a HUGE delay. 1-5 mins.

I keep getting these errors in /var/log/secure but googling them doesn't help.

nss_ldap: Reconnecting to LDAP server (sleeping 4 seconds)

nss_ldap: Reconnecting to LDAP server (sleeping 8 seconds)

I have installed SFU3.5 on the AD and filled out the unix tab for the testing users.

]]>
PHP Files downloading (source code) instead of running, sometimes http://htmlcoderhelper.com/php-files-downloading-source-code-instead-of-running-sometimes/ http://htmlcoderhelper.com/php-files-downloading-source-code-instead-of-running-sometimes/#comments Tue, 14 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/php-files-downloading-source-code-instead-of-running-sometimes/ I'm running Uniserver on windows 7, and it's been extremely difficult so far.

At first, only files in subdirectories would not run properly. Now though (after a restart), all files do not work.

Basically, instead of running, the source file is downloaded in my browser (unless the server isn't on - then I simply get the "Problem Loading Page" message).

When it was working, other problems occured, such as include files being echo'd instead of run.

Can someone guide me w/ regards to getting Uniserver to run cleanly and properly?

Thanks!


Edit:

Now when I browse to http://localhost, it shows a directory browsing interface like this: http://www.gobalakrishnan.com/wp-content/uploads/2008/04/directory-browsing.jpg

Edit: I reinstalled Uniserver and it's the same, except now the admin panel is working!

]]>
IIS 7.0 Website Fails Regularly After About 30 Minutes http://htmlcoderhelper.com/iis-7-0-website-fails-regularly-after-about-30-minutes/ http://htmlcoderhelper.com/iis-7-0-website-fails-regularly-after-about-30-minutes/#comments Tue, 14 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/iis-7-0-website-fails-regularly-after-about-30-minutes/ I have a website running under IIS 7.0 on Windows Server 2008. It's just being used by 2-3 people at any point in time under very light load.

It runs fine for about 30 minutes, but then fails with the error:

Server Error in '/' Application.

Dynamic view compilation failed. c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\61a09567\0ee17e160a294837a9b42f8e66a8d2c9-1.cs(6,7): error CS0246: The type or namespace name 'MvcReCaptcha' could not be found (are you missing a using directive or an assembly reference?)

MvcReCaptcha.dll is present in the bin directory, and is certainly used by the application while it's running (functionality provided by that DLL is referenced).

The application can be reliably restarted by:

  1. Stopping that site
  2. Deleting c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\61a09567
  3. Restarting that site

The Application Pool is set to recycle every 1740 minutes (no other conditions).

Thoughts on what might be causing the crash?

]]>
windows 2000 DNS to windows 2003 DNS **NO AD INVOLVED** http://htmlcoderhelper.com/windows-2000-dns-to-windows-2003-dns-no-ad-involved/ http://htmlcoderhelper.com/windows-2000-dns-to-windows-2003-dns-no-ad-involved/#comments Sun, 12 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/windows-2000-dns-to-windows-2003-dns-no-ad-involved/ I've been looking for some best practice instructions on how to do this, but everything I have found thus far refers to an internal/AD-based DNS migration. This project is public-based DNS, no AD, primary DNS hosting is on Windows 2000 and I want to migrate it to Windows 2003 (secondary DNS is already Windows 2003.) At the moment, there are nearly 300 zones (domains) in the hosting environment. Thanks in advance.

]]>
Help me upgrade my pf.conf for OpenBSD 4.7 http://htmlcoderhelper.com/help-me-upgrade-my-pf-conf-for-openbsd-4-7/ http://htmlcoderhelper.com/help-me-upgrade-my-pf-conf-for-openbsd-4-7/#comments Sun, 12 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/help-me-upgrade-my-pf-conf-for-openbsd-4-7/ I'm planning on upgrading my OpenBSD to 4.7 (from 4.6) and as you may or may not know, they changed the syntax for pf.conf.

This is the relevant portion from the upgrade guide:

pf(4) NAT syntax change

As described in more detail in this mailing list post, PF's separate nat/rdr/binat (translation) rules have been replaced with actions on regular match/filter rules. Simple rulesets may be converted like this:

nat on $ext_if from 10/8 -> ($ext_if)
rdr on $ext_if to ($ext_if) -> 1.2.3.4

becomes

match out on $ext_if from 10/8 nat-to ($ext_if)
match in on $ext_if to ($ext_if) rdr-to 1.2.3.4

and...

binat on $ext_if from $web_serv_int to any -> $web_serv_ext

becomes

match on $ext_if from $web_serv_int to any binat-to $web_serv_ext

nat-anchor and/or rdr-anchor lines, e.g. for relayd(8), ftp-proxy(8) and tftp-proxy(8), are no longer used and should be removed from pf.conf(5), leaving only the anchor lines. Translation rules relating to these and spamd(8) will need to be adjusted as appropriate.

N.B.: Previously, translation rules had "stop at first match" behaviour, with binat being evaluated first, followed by nat/rdr depending on direction of the packet. Now the filter rules are subject to the usual "last match" behaviour, so care must be taken with rule ordering when converting.

pf(4) route-to/reply-to syntax change

The route-to, reply-to, dup-to and fastroute options in pf.conf move to filteropts;

pass in on $ext_if route-to (em1 192.168.1.1) from 10.1.1.1
pass in on $ext_if reply-to (em1 192.168.1.1) to 10.1.1.1

becomes

pass in on $ext_if from 10.1.1.1 route-to (em1 192.168.1.1)
pass in on $ext_if to 10.1.1.1 reply-to (em1 192.168.1.1)

Now, this is my current pf.conf:

#       $OpenBSD: pf.conf,v 1.38 2009/02/23 01:18:36 deraadt Exp $
#
# See pf.conf(5) for syntax and examples; this sample ruleset uses
# require-order to permit mixing of NAT/RDR and filter rules.
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded between interfaces.

ext_if="pppoe0"
int_if="nfe0"
int_net="192.168.0.0/24"

polemon="192.168.0.10"
poletopw="192.168.0.12"
segatop="192.168.0.20"

table <leechers> persist

set loginterface $ext_if
set skip on lo

match on $ext_if all scrub (no-df max-mss 1440)

altq on $ext_if priq bandwidth 950Kb queue {q_pri, q_hi, q_std, q_low}
queue q_pri priority 15
queue q_hi priority 10
queue q_std priority 7 priq(default)
queue q_low priority 0

nat-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"

nat on $ext_if from !($ext_if) -> ($ext_if)
rdr pass on $int_if proto tcp to port ftp -> 127.0.0.1 port 8021
rdr pass on $ext_if proto tcp to port 2080 -> $segatop port 80
rdr pass on $ext_if proto tcp to port 2022 -> $segatop port 22

rdr pass on $ext_if proto tcp to port 4000 -> $polemon port 4000
rdr pass on $ext_if proto tcp to port 6600 -> $polemon port 6600

anchor "ftp-proxy/*"

block

pass on $int_if queue(q_hi, q_pri)

pass out on $ext_if queue(q_std, q_pri)
pass out on $ext_if proto icmp queue q_pri
pass out on $ext_if proto {tcp, udp} to any port ssh queue(q_hi, q_pri)
pass out on $ext_if proto {tcp, udp} to any port http queue(q_std, q_pri)
#pass out on $ext_if proto {tcp, udp} all queue(q_low, q_hi)

pass out on $ext_if proto {tcp, udp} from <leechers> queue(q_low, q_std)

pass in on $ext_if proto tcp to ($ext_if) port ident queue(q_hi, q_pri)
pass in on $ext_if proto tcp to ($ext_if) port ssh queue(q_hi, q_pri)
pass in on $ext_if proto tcp to ($ext_if) port http queue(q_hi, q_pri)
pass in on $ext_if inet proto icmp all icmp-type echoreq queue q_pri

If someone has experience with porting the 4.6 pf.conf to 4.7, please help me do the correct changes.

OK, this is how far I've got:

I commented out nat-anchor and rdr-anchor, as describted in the guide:

#nat-anchor "ftp-proxy/*"
#rdr-anchor "ftp-proxy/*"

And this is how I've "converted" the rdr rules:

#nat on $ext_if from !($ext_if) -> ($ext_if)
match out on $ext_if from !($ext_if) nat-to ($ext_if)
#rdr pass on $int_if proto tcp to port ftp -> 127.0.0.1 port 8021
match in on $int_if proto tcp to port ftp rdr-to 127.0.0.1 port 8021
#rdr pass on $ext_if proto tcp to port 2080 -> $segatop port 80
match in on $ext_if proto tcp tp port 2080 rdr-to $segatop port 80
#rdr pass on $ext_if proto tcp to port 2022 -> $segatop port 22
match in on $ext_if proto tcp tp port 2022 rdr-to $segatop port 22

rdr pass on $ext_if proto tcp to port 4000 -> $polemon port 4000
match in on $ext_if proto tcp tp port 4000 rdr-to $polemon port 4000
rdr pass on $ext_if proto tcp to port 6600 -> $polemon port 6600
match in on $ext_if proto tcp tp port 6600 rdr-to $polemon port 6600

Did I miss anything? Is the anchor for ftp-proxy OK as it is now? Do I need to change something in the other pass in on... lines?

]]>
VMWare, virtual disks, windows software raid http://htmlcoderhelper.com/vmware-virtual-disks-windows-software-raid/ http://htmlcoderhelper.com/vmware-virtual-disks-windows-software-raid/#comments Mon, 13 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/vmware-virtual-disks-windows-software-raid/ On a guest Windows OS under VMWare ESXi, is configuring software raid 1 between 2 virtual disks, residing on 2 seperate physical disks, a good idea? Performance, scalability, managability and fault-tolerance -wise?

EDIT: To clarify: The idea is 2 seperate physical drives, 2 datastores, and no other VM to use them. Also, RDM is not an option for me in this case.

]]>
WSS 3.0 Permissions Add docs but not change http://htmlcoderhelper.com/wss-3-0-permissions-add-docs-but-not-change/ http://htmlcoderhelper.com/wss-3-0-permissions-add-docs-but-not-change/#comments Mon, 13 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/wss-3-0-permissions-add-docs-but-not-change/ Is there a security configuration in WSS 3 that would allow end-users to add documents to a site, but then not be able to change this document?

]]>
Is there a free hosting service that provides an App Engine platform? http://htmlcoderhelper.com/is-there-a-free-hosting-service-that-provides-an-app-engine-platform/ http://htmlcoderhelper.com/is-there-a-free-hosting-service-that-provides-an-app-engine-platform/#comments Fri, 17 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/is-there-a-free-hosting-service-that-provides-an-app-engine-platform/ I found the AppScale project that lets anyone set up their own GAE service. Have any hosting providers actually done this yet? I haven't been able to find any.

Right now I have an App that I wrote for App Engine, but I don't want it to use Google IP space for external connections. So I need to host it somewhere else with an App Engine platform.

]]>
Break into Windows 7? http://htmlcoderhelper.com/break-into-windows-7/ http://htmlcoderhelper.com/break-into-windows-7/#comments Sat, 18 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/break-into-windows-7/ I'm not sure if this a serverfault or superuser question.

A client of mine shipped me a Windows 7 box that I am supposed to work on. Unfortunately the machine is joined to his domain (which I cannot access - legally or physically) and the local administrator account appears to be disabled.

Is there anyway that I can get into the system and enable/create a local account with administrator level rights given that I have physical access? Or is my only choice to ship it back and get my client to enable a usable account and ship it back to me again?

For what its worth this is Windows 7 professional.

Edit

As prompted by Chunkyb2002's answer about caching of domain credentials I forgot to mention that there is a domain user as being the last login. Presumably this person also set this computer up and potentially has admin rights. So given this new info is it likely that if I get the password that Windows 7 will let me log in?

Edit 2

I'm in with cached credentials!

]]>
mod_wsgi with dynamically allocated UIDs http://htmlcoderhelper.com/mod_wsgi-with-dynamically-allocated-uids/ http://htmlcoderhelper.com/mod_wsgi-with-dynamically-allocated-uids/#comments Tue, 21 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/mod_wsgi-with-dynamically-allocated-uids/ I have a system where users upload wsgi applications and we serve them using apache/mod_wsgi. For scaling reasons, we're simply using the WSGIDaemonProcess directive and setting them to dynamically allocated UID/GIDs. The problem is, we don't have associated users with these UIDs.

Is there a way to keep mod_wsgi from trying to determine the "user" associated with a particular UID? I can't find a directive anywhere that does this.

EDIT: Taking a look at the mod_wsgi.c source, it appears (near line 9700) that the conditional check for an entry in /etc/passwd is hard-coded.

In other words, this isn't possible.

]]>
apt-get through NTLM authenticated proxy http://htmlcoderhelper.com/apt-get-through-ntlm-authenticated-proxy/ http://htmlcoderhelper.com/apt-get-through-ntlm-authenticated-proxy/#comments Tue, 21 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/apt-get-through-ntlm-authenticated-proxy/ I must be missing something... I could swear I've done this before but I've torched the VM's that I was using previously.

How do you get apt-get to authenticate through a proxy that only supports NTLM? Do I need to change my proxy config to also support other authentication mechanisms?

Ubuntu 10.04.

]]>
Serving .cs / .csproj files on IIS7.5 http://htmlcoderhelper.com/serving-cs-csproj-files-on-iis7-5/ http://htmlcoderhelper.com/serving-cs-csproj-files-on-iis7-5/#comments Tue, 21 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/serving-cs-csproj-files-on-iis7-5/ I've got this small problem, I've got a HG repository server set up and it works fine (at least as far as being a repository & working with HG)

I'm having a problem with the web view because it seems my server wont serve .cs or .csproject files (even though it technically isn't from the context of the hg web view)

My first instinct was to add the MIME type to the server as you can see here:

.cs files added as text/plain

(I've added it at the root webserver level so all sites inherit it)

Anyway, after restarting the IIS Service / App pools / etc... It still is unable to serve .cs files

  • http://myinternalserver/blah.txt Serves fine
  • http://myinternalserver/blah.cs 404's

Am I missing a step here? Is there something funky about a .cs file? It doesn't make sense that it'd be a special type flagged as an "executable" or something because frankly .bat is servable, and it's way more prone to execution that an uncompiled C# file.

Anyone have ideas? Am I just going about this horribly wrong?

]]>
How do I get the history of "apt-get install" on Unbuntu? http://htmlcoderhelper.com/how-do-i-get-the-history-of-apt-get-install-on-unbuntu/ http://htmlcoderhelper.com/how-do-i-get-the-history-of-apt-get-install-on-unbuntu/#comments Wed, 22 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/how-do-i-get-the-history-of-apt-get-install-on-unbuntu/ Greetings again. I am about do move a server from one Ubuntu box to another. I'm not cloning the old box to the new; I'm creating a new system and will move data as needed. I want to install all the software that I have on the old box on the new one.

Is there a simple way to find the history of all the "sudo apt-get install" commands I have given over time? That is, dpkg -l shows me all the packages that have been installed, but not which top-level package installed them. If there is a way for dpkg to give me the installing package, I can find the unique ones there; otherwise, I want something else to say "you installed these 24 packages".

]]>
Does having a master-slave in different parts of the country effect performance? http://htmlcoderhelper.com/does-having-a-master-slave-in-different-parts-of-the-country-effect-performance/ http://htmlcoderhelper.com/does-having-a-master-slave-in-different-parts-of-the-country-effect-performance/#comments Wed, 22 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/does-having-a-master-slave-in-different-parts-of-the-country-effect-performance/ Does having a master-slave mysql setup over long distances (50-60 ms) slow down the responsiveness of INSERTs or SELECTs on the master locally?

]]>
Rack Mount for a 3Com 4210 switch http://htmlcoderhelper.com/rack-mount-for-a-3com-4210-switch/ http://htmlcoderhelper.com/rack-mount-for-a-3com-4210-switch/#comments Mon, 20 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/rack-mount-for-a-3com-4210-switch/ Does anyone know where I can get a rack mount kit for a 3Com 4210 9 port switch. Needs to fit into a 19" rack

]]>
Whats a good DNS service with an API http://htmlcoderhelper.com/whats-a-good-dns-service-with-an-api/ http://htmlcoderhelper.com/whats-a-good-dns-service-with-an-api/#comments Mon, 20 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/whats-a-good-dns-service-with-an-api/ Does anyone know a good DNS hosting service that has an API and gives you a reasonable amount of domains / zones for the price?

I'm setting up a hosting service & want to script the creation of the DNS entries through a web app.

Right now our DNS is hosted with Slicehost.com where they have an API and unlimited DNS entries included with every account.

I was just wondering if there was anything out there that was DNS only.

Thanks!

]]>
Finding out source of an IP address http://htmlcoderhelper.com/finding-out-source-of-an-ip-address/ http://htmlcoderhelper.com/finding-out-source-of-an-ip-address/#comments Sat, 18 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/finding-out-source-of-an-ip-address/ I have an IP address and time of being spammed that I'd like to find out who it bleongs to. I found that the IP belongs to the ISP: cogeco cable and that it is a commercial account.

Is it possible to find out which company is responsible?

I know I can report to the ISP the IP but I'd like to find out who is responsible in particular.

]]>
Getting LDAP running with PHP on 2008 R2 http://htmlcoderhelper.com/getting-ldap-running-with-php-on-2008-r2/ http://htmlcoderhelper.com/getting-ldap-running-with-php-on-2008-r2/#comments Sun, 19 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/getting-ldap-running-with-php-on-2008-r2/ I'm having trouble getting the php ldap extension running on my web server, which is running 2008 R2.

Install Notes

  1. Apache: httpd-2.2.16-win32-x86-no_ssl.msi
  2. PHP : VC6 x86 Thread Safe (2010-Jul-21 20:06:17) (ZIP)
  3. adLDAP.php

Steps I've taken

  1. Made sure php_ldap.dll is in C:\PHP\ext (I had to get this from http://bugs.php.net/bug.php?id=46971)
  2. Made sure libeay32.dll and ssleay32.dll are in C:\PHP
  3. C:\PHP has been added to PATH
  4. extension=php_ldap.dll is uncommented in php.ini
  5. extension_dir is set to C:\PHP\ext in php.ini
  6. ran a phpinfo(); the correct php.ini is being loaded, but ldap is not initialized

I'm really at a loss for what might be happening, when I try and use the extension I get the following error (expected since it didn't load):

exception 'adLDAPException' with message 'No LDAP support for PHP. See: http://www.php.net/ldap' in C:\Website\hmis\adLDAP.php:338 Stack trace: #0 C:\Website\hmis\login.php(10): adLDAP->__construct() #1 C:\Website\hmis\index.php(2): require_once('C:\Website\hmis...') #2 {main}

Does anyone have any advice on what might be going wrong? Thanks.

Edit: So it seems like php_ldap.dll is missing from 5.3.3 VC6 builds, I got my copy from a 5.3.1 VC6 build. Could that be causing issues? I'm using apache so I can't use the official VC9 PHP builds, should I try to use ApacheLounge builds? I don't think it should be necessary because I got LDAP working with the official builds for 5.3.1

Edit 2: So the other thing I've tried is completely removing the php_ldap.dll from C:\PHP\ext . I get the exact same error as before, and apache doesn't crash as I would expect it to. Shouldn't it not be able to start with a missing extension?

]]>
Cisco 2811 missing serial interfaces http://htmlcoderhelper.com/cisco-2811-missing-serial-interfaces/ http://htmlcoderhelper.com/cisco-2811-missing-serial-interfaces/#comments Sun, 19 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/cisco-2811-missing-serial-interfaces/ I'm trying to bring up PPP over a T1 port on a Cisco 2811. I recently upgraded the firmware to 12.4(24)T2:

cisco-2811#show ver
Cisco IOS Software, 2800 Software (C2800NM-ADVENTERPRISEK9-M), Version 12.4(24)T2, RELEASE SOFTWARE (fc2)

It has 4 slots installed with T1/E1 ports (three 2-port modules and one 1-port module):

cisco-2811#show diag
Slot 0:
    C2811 Motherboard with 2FE and integrated VPN Port adapter, 2 ports
    ...

    WIC Slot 0:
    VWIC2-1MFT-T1/E1 - 1-Port RJ-48 Multiflex Trunk - T1/E1
    ...

    WIC Slot 1:
    VWIC2-2MFT-T1/E1 - 2-Port RJ-48 Multiflex Trunk - T1/E1
    ...

    WIC Slot 2:
    VWIC2-2MFT-T1/E1 - 2-Port RJ-48 Multiflex Trunk - T1/E1
    ...

    WIC Slot 3:
    VWIC2-2MFT-T1/E1 - 2-Port RJ-48 Multiflex Trunk - T1/E1
    ...

I have specified the card types as T1 and rebooted. I can see the Controller interfaces in the show run output, but I still don't have any Serial interfaces in the show run or in the interface ? output. I've pasted my full configuration below. Any insight is appreciated.

Thanks, Nathan Alderson

cisco-2811#show run
Building configuration...


Current configuration : 1433 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname cisco-2811
!
boot-start-marker
boot-end-marker
!
card type t1 0 0
card type t1 0 1
card type t1 0 2
card type t1 0 3
logging message-counter syslog
enable secret 5 $1$4REP$JN8wnnSMwWfdkWv6PDVbf/
enable password PASSWORD
!
no aaa new-model
no network-clock-participate wic 0
no network-clock-participate wic 1
no network-clock-participate wic 2
no network-clock-participate wic 3
!
dot11 syslog
ip source-route
!
!
ip cef
!
!
no ipv6 cef
!
multilink bundle-name authenticated
!
!
voice-card 0
!
!
archive
 log config
  hidekeys
!
!
controller T1 0/0/0
 cablelength long 0db
!
controller T1 0/1/0
 cablelength long 0db
!
controller T1 0/1/1
 cablelength long 0db
!
controller T1 0/2/0
 cablelength long 0db
!
controller T1 0/2/1
 cablelength long 0db
!
controller T1 0/3/0
 cablelength long 0db
!
controller T1 0/3/1
 cablelength long 0db
!
!
interface FastEthernet0/0
 ip address dhcp
 duplex full
 speed auto
 no mop enabled
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
 speed 115200
line aux 0
line vty 0 4
 password password
 login
!
scheduler allocate 20000 1000
end
]]>
Linode Private IPs http://htmlcoderhelper.com/linode-private-ips/ http://htmlcoderhelper.com/linode-private-ips/#comments Mon, 20 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/linode-private-ips/ I'm trying to get private IPs set up with my Linodes. I'm running Debian. Here's my Linode's Network tab:

eth0:            69.164.214.146
                 ( li129-146.members.linode.com )
Gateways:        69.164.214.1
Netmask:         255.255.255.0
Private eth0:    192.168.140.217
Netmask:         255.255.128.0
DNS Servers:     97.107.133.4
                 207.192.69.4
                 207.192.69.5

and here's my /etc/network/interfaces file:

auto lo
iface lo inet loopback

auto eth0 eth0:0
iface eth0 inet static
 address 69.164.214.146
 netmask 255.255.255.0
 gateway 69.164.214.1

iface eth0:0 inet static
 address 192.168.140.217
 netmask 255.255.128.0

On the linode I'm setting up, I can ping 192.168.140.217 just fine. The other linode will not, though.

Yes, the other Linode is in the same data center.

Perhaps there is something I need to do with iptables? Perhaps my configuration isn't right? Any help is appreciated.

]]>
Move clustered SQL from one network to another http://htmlcoderhelper.com/move-clustered-sql-from-one-network-to-another/ http://htmlcoderhelper.com/move-clustered-sql-from-one-network-to-another/#comments Sun, 12 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/move-clustered-sql-from-one-network-to-another/ We have a clustered SQL server (2k5 Std) that's currently being hosted on 1 of 2 subnets on the server. We'd like to retire the subnet the SQL cluster is on as we're experiencing default gateway issues with the servers being multi-homed.

My question is what is the best way to migrate the SQL cluster from one network to the other? It would reside in the same cluster, same name, just dependent on another subnet.

My instinct tells me to just reinstall sql into the cluster, specifying the other subnet on the install, then clean up the mess afterwards.

But I was wondering if maybe there was any other ways, perhaps a best practice that I'm not aware of.

Thanks

]]>
caching server in front of apache tomcat http://htmlcoderhelper.com/caching-server-in-front-of-apache-tomcat/ http://htmlcoderhelper.com/caching-server-in-front-of-apache-tomcat/#comments Sat, 11 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/caching-server-in-front-of-apache-tomcat/ We have a website and it's current architecture is as follows:

There's squid in the front which caches images. Then there is apache httpd with mod_rewrite enabled. httpd then talks to apache tomcat(with mod_jk) for dynamic requests and servers static stuff like js,css on it's own. Apache httpd rewrites clean urls to raw ones(with ugly url params) that tomcat deals with. There are over 100 rewrite rules in the mod_rewrite config. We also have certain php stuff that we hacked together to work with facebook. the php files are served by apache, but the load is significantly less.

So the goal is to able to cache static files(js,css,images) aggressively and give the dynamic stuff directly to tomcat. We need url rewriting(that probably can be done in tomcat itself), gzip/deflate support as well as support for php.

So, given our needs, can a caching server like squid/varnish be placed directly in front of tomcat to make this work or Would we need a web server like nginx/lighttpd in between because we need php ?

]]>
What is the most effective way to setup a linux web server for manual failover http://htmlcoderhelper.com/what-is-the-most-effective-way-to-setup-a-linux-web-server-for-manual-failover/ http://htmlcoderhelper.com/what-is-the-most-effective-way-to-setup-a-linux-web-server-for-manual-failover/#comments Thu, 16 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/what-is-the-most-effective-way-to-setup-a-linux-web-server-for-manual-failover/ I currently administer a small web server running ubuntu linux with apache, mysql, and ssh. I'm backing it up using rsync to another server, but I'm backing it up to a /backup directory.

I'd like to have it set up where if the first server goes down I can change the ip of the second server and have all the users, files, databases etc. ready to go.

Does anyone have any suggestions on the easiest / best way to go about this?

Considerations

  • Users
  • Databases
  • Apache Configuration
  • Files
  • Making sure the same software is installed on both boxes. (probably need to do this up front)
]]>
Active Directory Auditing http://htmlcoderhelper.com/active-directory-auditing/ http://htmlcoderhelper.com/active-directory-auditing/#comments Wed, 15 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/active-directory-auditing/ Does anyone have any recommendations for auditing changes to pre-defined AD object types? For example changes to security groups or adding / deleting or changing user objects.

Before exploring an in-house development solution is anyone aware of off-the-self products or other solutions?

We once looked at using Penrose as a proxy with it's MySql facilities but no longer have the resource to implement it.

]]>
Using Mac OS X Server e-mail and calendering http://htmlcoderhelper.com/using-mac-os-x-server-e-mail-and-calendering/ http://htmlcoderhelper.com/using-mac-os-x-server-e-mail-and-calendering/#comments Thu, 16 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/using-mac-os-x-server-e-mail-and-calendering/ I'd love some feedback from folks on using the e-mail server and calendering features of Mac OS X Leopard server.

How well has the e-mail server worked for you? Can you get your e-mail on a variety of (Mac and Windows) clients?

Do you have the ability to share calendars?

How does all this work with Microsoft Outlook?

]]>
HP MediaSmart Server - can it run WISA? Windows IIS SQL Server ASP.Net http://htmlcoderhelper.com/hp-mediasmart-server-can-it-run-wisa-windows-iis-sql-server-asp-net/ http://htmlcoderhelper.com/hp-mediasmart-server-can-it-run-wisa-windows-iis-sql-server-asp-net/#comments Thu, 16 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/hp-mediasmart-server-can-it-run-wisa-windows-iis-sql-server-asp-net/ This piece of hardware is out-of-control attractive. Small footprint, low power consumption, upgradable to 2GB RAM, and runs a medium powered CPU, which you may even upgrade yourself.

HP MediaSmart Server

My desire is to get rid of all the media capabilities by removing Windows Home Server, and installing a full blown Windows Server OS on it.

Given that it doesn't have a video-out port, it might prove difficult. I know that the machine comes with a restore disc that will wipe or recover the machine to factory defaults. Perhaps that needs some 'tweaking'. Unattended installation, likely

Perhaps Windows Home Server can accommodate the installation of SQL Server, IIS, and ASP.NET. Has anyone heard or learned how to run the WISA stack on this beautiful machine?

The idea here is for a server at home. The incredible ease of adding hard disks to this machine make it very attractive, as well as its small footprint.

]]>
Who is your favorite VPS Provider? http://htmlcoderhelper.com/who-is-your-favorite-vps-provider/ http://htmlcoderhelper.com/who-is-your-favorite-vps-provider/#comments Fri, 17 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/who-is-your-favorite-vps-provider/ Who is your favorite virtual hosting provider? I'm looking for your thoughts on SliceHost, Dreamhost VPS, Linode, 1and1 VPS, etc and why you like the particular provider you named.

Thanks!

]]>
Do I need to defrag linux filesystems? http://htmlcoderhelper.com/do-i-need-to-defrag-linux-filesystems/ http://htmlcoderhelper.com/do-i-need-to-defrag-linux-filesystems/#comments Tue, 14 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/do-i-need-to-defrag-linux-filesystems/ I know Windows file systems are very sensitive to fragmentation and Linux ones less (specially if you have a lot of space left).

But, is there any reason to defrag Linux file systems (ext2/3/4, ReiserFS, etc) ?

If yes, what tools are available for that ?

]]>
SQL Server disk design on an ISCSI SAN http://htmlcoderhelper.com/sql-server-disk-design-on-an-iscsi-san/ http://htmlcoderhelper.com/sql-server-disk-design-on-an-iscsi-san/#comments Tue, 14 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/sql-server-disk-design-on-an-iscsi-san/ Its standard practice to separate log and data files to separate disks away from the OS (tempdb, backups and swap file also) Does this logic still make sense when your drives are all SAN based and your LUNS are not carved of specific disk or raid sets -they are just part of the x number of drives on the SAN and the LUN is just space allocation

]]>
Dynamically updating resolvers listed in /etc/resolv.conf http://htmlcoderhelper.com/dynamically-updating-resolvers-listed-in-etcresolv-conf/ http://htmlcoderhelper.com/dynamically-updating-resolvers-listed-in-etcresolv-conf/#comments Sun, 12 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/dynamically-updating-resolvers-listed-in-etcresolv-conf/ I rent some Linux servers and the hosting company provides a set of eight DNS resolvers.

The response speed varies from resolver to resolver and I periodically modify /etc/resolv.conf to get the best performance.

On two occasions I found one of my public websites was taking far too long to load and this was, in part, related to it depending on backend web services that were taking around 15s to resolve a domain to an IP.

To ensure the most responsive resolvers are always specified, I'd like to automate the process of modifying /etc/resolv.conf.

I can script it if need be, however that would inevitably feature an obscure bug and I want to minimise the risk of an automated process making a mess of /etc/resolv.conf. Any pre-existing solution that has been tested for a long time and shown to be stable will be more reliable than my own solution.

I'm interested in knowing if anyone has tackled this type of problem before and whether there are any stable scripts/processes/methods for handling this.

]]>
Best ethernet over power adapter http://htmlcoderhelper.com/best-ethernet-over-power-adapter/ http://htmlcoderhelper.com/best-ethernet-over-power-adapter/#comments Mon, 13 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/best-ethernet-over-power-adapter/ Can anyone recommend a good ethernet over power adapter? The BiPAC 2070 seems to have had favorable reviews but does not seem to be widely available. Other popular devices include:

This is for a situation where network cabling and wi-fi are not viable options.

]]>
Windows 7 Direct Access http://htmlcoderhelper.com/windows-7-direct-access/ http://htmlcoderhelper.com/windows-7-direct-access/#comments Mon, 13 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/windows-7-direct-access/ Windows 7 Direct Access is a feature that enables safe direct access to a network without using third party software.

What are its requirements and how do you set up this feature?

]]>
How do I print from across the Internet using CUPS http://htmlcoderhelper.com/how-do-i-print-from-across-the-internet-using-cups/ http://htmlcoderhelper.com/how-do-i-print-from-across-the-internet-using-cups/#comments Mon, 13 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/how-do-i-print-from-across-the-internet-using-cups/ I work as the programmer/IT guy at a small company and I've run into a bit of a problem.

Hardware is assembled here at the office but the hardware face plates are screen printed at my house by my mom. She has this stick about things and requires a Purchase Order to be delivered from the office. Printing one out herself via email isn't an option (it just isn't, don't ask for a reasonable answer).

Because I happen to live in the same house, It's up to me to deliver these Purchase Orders, and I'm just not good at it. I forget, or she's not home, or I don't go directly home or whatever.

Actual Question: I would like to send a document to a printer here at the office, and have the result spat out by the Canon Print Device at home. There is at least one Linux and one Windows computer at both ends (Ubuntu or XP). Is this possible?

]]>
Do I need to defrag MacOSX filesystems? http://htmlcoderhelper.com/do-i-need-to-defrag-macosx-filesystems/ http://htmlcoderhelper.com/do-i-need-to-defrag-macosx-filesystems/#comments Sat, 18 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/do-i-need-to-defrag-macosx-filesystems/ The equivalent linux question reminded me of the bad performance of my MacBookPro. I'm not even sure what the default FS nowadays is. I read somewhere that there is a cron job which runs on friday or saturday which does such stuff.

So do I need to defrag my disk? And if, How would I do that?

]]>
How do I set up routing for a VPN gateway separate from my main gateway? http://htmlcoderhelper.com/how-do-i-set-up-routing-for-a-vpn-gateway-separate-from-my-main-gateway/ http://htmlcoderhelper.com/how-do-i-set-up-routing-for-a-vpn-gateway-separate-from-my-main-gateway/#comments Sat, 18 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/how-do-i-set-up-routing-for-a-vpn-gateway-separate-from-my-main-gateway/ 192.168.0.2I have partial success with each PC having a static route for 192.168.1.0 -> 192.168.0.2.Edit:The VPN gateway is a Netgear ProSafe VPN Firewall FVS338, and the main gateway is an Actiontec MI424-WR (for Verizon FiOS).]]> I have a run of the mill router/firewall set up for my small company's Internet access. I've also added a separate VPN (IPSec) gateway using a Netgear VPN router. The main gateway and VPN gateway have separate public IP addresses, and the VPN clients have a different subnet from the home office LAN (which is just how the Netgear works - I can't put them on the same subnet as everyone else).

The problem is that traffic between LAN PCs and VPN clients doesn't route correctly. LAN clients can ping VPN clients, but VPN clients cannot ping LAN clients (using Wireshark I see the ping gets to the client, but the client cannot respond).

I have a routing entry on the main gateway to point all traffic to the VPN subnet to the VPN gateway. However, that doesn't seem to do the trick. The only solution I've found is to add a static routing entry on the all the PCs on the LAN to point them to the VPN gateway for its subnet. However, this doesn't work for embedded devices that don't allow you to do static routing.

What am I doing wrong?

Here are the IPs/subnets in question (the public addresses are faked for the sake of privacy):

LAN: 192.168.0.0 VPN clients: 192.168.1.0

LAN Gateway: 192.168.0.1 (WAN: 1.1.1.1) VPN Gateway: 192.168.0.2 (WAN: 1.1.1.2)

The LAN Gatway has a route for 192.168.1.0 -> 192.168.0.2

I have partial success with each PC having a static route for 192.168.1.0 -> 192.168.0.2.


Edit:

The VPN gateway is a Netgear ProSafe VPN Firewall FVS338, and the main gateway is an Actiontec MI424-WR (for Verizon FiOS).

]]>
Load balancing using IIS7 request routing and load balancing module http://htmlcoderhelper.com/load-balancing-using-iis7-request-routing-and-load-balancing-module/ http://htmlcoderhelper.com/load-balancing-using-iis7-request-routing-and-load-balancing-module/#comments Tue, 21 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/load-balancing-using-iis7-request-routing-and-load-balancing-module/ Microsoft has a lot of documentation about their somewhat new load balancing and request routing module for IIS7 located here: http://blogs.iis.net/bills/archive/2009/02/16/iis7-request-routing-and-load-balancing-module-released.aspx, but I'd like to know if anyone has experience using it in production. What are a few pros / cons to using this module instead of another solution such as HAProxy?

]]>
Gigabit really gigabit? http://htmlcoderhelper.com/gigabit-really-gigabit/ http://htmlcoderhelper.com/gigabit-really-gigabit/#comments Tue, 21 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/gigabit-really-gigabit/ When using gigbit nics (Server grade intel) and 2 boxes with a cross over cable ... I only see %20-40 of the pipe being used. Even across routers.

Put 2 100mbps cards in, same deal. %20-40 used.

What Gives?

]]>
How can I backup an SQL server (2000 and 2005) database? http://htmlcoderhelper.com/how-can-i-backup-an-sql-server-2000-and-2005-database/ http://htmlcoderhelper.com/how-can-i-backup-an-sql-server-2000-and-2005-database/#comments Wed, 22 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/how-can-i-backup-an-sql-server-2000-and-2005-database/ Currently we backup our MSSQL 2000 and 2005 databases using software to copy files to tape nightly. Database sizes are 14-16Gb and 500Mb.

As SQL server can backup a database to a file would we be better scheduling SQL server to create a backup file and then backing up these files to tape? Also if we use this method is it possible to somehow create a log of transactions that have been completed since the last backup so we can recreate the database and apply the additional transactions?

]]>
Keeping everyone up-to-date in browser plugins? http://htmlcoderhelper.com/keeping-everyone-up-to-date-in-browser-plugins/ http://htmlcoderhelper.com/keeping-everyone-up-to-date-in-browser-plugins/#comments Sat, 11 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/keeping-everyone-up-to-date-in-browser-plugins/ Our organization has less than 100 people all on laptops running Windows XP. We encourage Firefox, though a number of people still use IE7. But lately we've gotten some spyware/virus attacks that have come in through outdated plugins. Everyone is at different levels with plugin updates, and it tends to be the case that we don't find out about someone neglecting updates until they are affected by it in the form of some webpage with spyware in it crawling through an old Java or Flash version.

We have System Center Essentials set up to keep all the computers up to date as far as Windows Update. We also have Trend Micro which has protected us well so far, so the issue is only of preventative maintenance at this time.

What is the best way that we ensure that everyone's computers are kept up to date with the latest versions of Flash and Java? Can we use some sort of automated check to scan everyone's computers, akin to Mozilla's Plugin Check but on a widespread scale? Can System Center Essentials come in handy for this? Those of you who manage computers like this, how do you keep everyone's plugins up to date?

]]>
Is it possible/advisable to upgrade a DD-WRT router remotely? http://htmlcoderhelper.com/is-it-possibleadvisable-to-upgrade-a-dd-wrt-router-remotely/ http://htmlcoderhelper.com/is-it-possibleadvisable-to-upgrade-a-dd-wrt-router-remotely/#comments Tue, 21 Feb 2012 19:45:03 +0000 Dmitry Lysohor http://htmlcoderhelper.com/is-it-possibleadvisable-to-upgrade-a-dd-wrt-router-remotely/ I have two DD-WRT routers in different locations. One of them is running the VPN version of the firmware, and the other is running the standard version. I am on location with the VPN one, and I want to upgrade the other one to run the VPN firmware so I can wire them together. Is this possible or advisable? Of course, I don't want to lose the settings on the remote one, since then I would lose my remote access (currently through SSH) and not be able to configure it.

]]>
MS Office shortcuts in start menu don't work on Vista http://htmlcoderhelper.com/ms-office-shortcuts-in-start-menu-dont-work-on-vista/ http://htmlcoderhelper.com/ms-office-shortcuts-in-start-menu-dont-work-on-vista/#comments Mon, 20 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/ms-office-shortcuts-in-start-menu-dont-work-on-vista/ In Vista (Business), the shortcuts that are automatically added to the start menu (for recently run programs) don't work for MS Office programs. You click on them and nothing happens.

Has anyone seen this and been able to solve it?

]]>
Running a Xen Dapper dom0 with a Hardy domU http://htmlcoderhelper.com/running-a-xen-dapper-dom0-with-a-hardy-domu/ http://htmlcoderhelper.com/running-a-xen-dapper-dom0-with-a-hardy-domu/#comments Sun, 19 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/running-a-xen-dapper-dom0-with-a-hardy-domu/ Is it possible to set up a Hardy domU on an existing Xen dom0 running Dapper? I have found many postings talking about the reverse (Dapper domU on a Hardy dom0), but I have the existing server set up with a Dapper dom0 and a few Dapper domUs. I need to set up a new domU, so I want to use a more modern LTS release. I am hesitant to upgrade the dom0, on the "if it ain't broke, don't fix it" principle.

Has anyone tried this? Can I just use a 2.6.24 Xen kernel? Do I need to recompile the domU kernel to match anything in my dom0?

Or is it necessary to upgrade the dom0?

Thanks!

]]>
Stop Sophos trying to update immediately after login http://htmlcoderhelper.com/stop-sophos-trying-to-update-immediately-after-login/ http://htmlcoderhelper.com/stop-sophos-trying-to-update-immediately-after-login/#comments Sun, 19 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/stop-sophos-trying-to-update-immediately-after-login/ All of our corporate PCs have Sophos installed, but we're getting complaints about slow network speed and boot times from the users.

We've tracked this down to Sophos checking for updates as soon as the user logs in - the checking process eats cycles on the workstation, and the network access of 100+ PCs to check the server at the start of the day eats the bandwidth.

Is it possible to stop the Sophos auto-updating service from doing this, and make it wait to the next scheduled check time (which gets randomised over time)?

]]>
What do you recommend for a Netbook? http://htmlcoderhelper.com/what-do-you-recommend-for-a-netbook/ http://htmlcoderhelper.com/what-do-you-recommend-for-a-netbook/#comments Mon, 20 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/what-do-you-recommend-for-a-netbook/ I am currently looking at buying a new netbook which would run the newest version of Ubuntu. What would you recommend buying? I have been told that netbooks can be severely slow. This machine would need to be able to run Firefox, Evolution, and VNC at a decent speed. Let me know if you think I should upgrade to a laptop if you think that netbooks are too underpowered.

]]>
How can I use cygwin without wasting HD space? http://htmlcoderhelper.com/how-can-i-use-cygwin-without-wasting-hd-space/ http://htmlcoderhelper.com/how-can-i-use-cygwin-without-wasting-hd-space/#comments Mon, 20 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/how-can-i-use-cygwin-without-wasting-hd-space/ I love using Cygwin, but I hate all of the extra disk space it seems to use caching stuff I don't need. What can I delete to keep my installation footprint as small as possible?

On a related note, what is a good barebones set of packages that will give me the essentials, without fluff that I'll probably never run?

]]>
SQL server in VMware http://htmlcoderhelper.com/sql-server-in-vmware/ http://htmlcoderhelper.com/sql-server-in-vmware/#comments Sat, 11 Feb 2012 19:45:02 +0000 Dmitry Lysohor http://htmlcoderhelper.com/sql-server-in-vmware/ Please provide your tips and best practices for virtualizing SQL Server in VMWare ESX I am interested in advanced configurations and settings.

Please provide reasoning behind your recommendations

Edit: Just to clarify, I already have over 70 Virtual SQL servers in separate clusters using an ISCSI equallogic San -

What I am really looking for are those advanced configurations like:

How you configured your disks / RDM's

Do you make use of settings like Mem.ShareScanGHz - http://communities.vmware.com/thread/143828 - that are not well documented

]]>