Because I always forget – Apache remote connections

Posted on January 16th, 2009 in Technology, Work by Jim Prince

Oh, the wonders of selinux.

To allow Apache to make remote connections to, for example, MySQL, POP or IMAP services type the following as root or using sudo;

setsebool -P httpd_can_network_connect=1

To temporarily disable selinux (not recommeded) type;

echo 0 >/selinux/enforce

Use

echo 1 >/selinux/enforce

to enable.


Because I always forget – SSL with Host Headers

Posted on January 16th, 2009 in Technology, Work by Jim Prince

Type the following command at the command prompt:

cscript.exe adsutil.vbs set /w3svc/<site identifier>/SecureBindings ":443:<host header>"

where host header is the host header for the Web site.

Shamelessly lifted from http://technet.microsoft.com/en-us/library/cc756897.aspx


2009 New Years Tech Resolutions

Posted on January 5th, 2009 in Games, General, Technology, Work by Jim Prince

Here are my 2009 tech based new years resolutions.

  1. Play more with social media. Dip into Twitter a couple of times a day, try to blog once a week and keep an eye on the web 2.0 (3.0!?) news sites – Having said that I’m still not sure I ‘get’ Twitter but hundreds of thousands of people can’t be wrong (surely?), I’m willing to give it another go and have added a bunch of new people.
  2. Learn PowerShell properly, stop falling back on VBScript or horror of horrors batch files.
  3. Get certified in Windows 2008 and associated technologies (possibly SQL Server 2008 and MOSS).
  4. Learn C#, stop hacking about with other peoples code and write some of my own. Focus on SharePoint development.
  5. Play more Computer Games. Last year I played maybe 2 hours a week of PES and dabbled with various first person shooters. I got Far Cry 2 for Christmas and played though about 65%, I’ll try to play it till the end and not get distracted like I did with Bioshock, Gears of War and Stalker. I’ve completed Crysis and Crysis Warhead but they don’t count as they’re so much better than any game I’ve played since Half-life 2.
  6. Don’t forget Linux and Open Source – Just because I work for a Microsoft Gold Partner doesn’t mean I should forget five plus years of *nix skills.
  7. Revist this list in twelve months time and dispair at how few have been achieved ;-)

Because I always forget – Autostart of Linux Services

Posted on January 5th, 2009 in Technology, Work by Jim Prince

As superuser or with sudo use the following to list the status of the service.

chkconfig <service_name> --list

e.g. chkconfig httpd --list

To enable autostart of service use

chkconfig <service_name> on

e.g. chkconfig httpd on

To disable autostart of service use

chkconfig <service_name> off

e.g. chkconfig httpd off

Piece of piss, if only I could bloody rememeber it.

Off course this only applies to RedHat based distributions.