Pretty easy actually, noting that I’ve upgraded from WPMU 2.9 with just 2 sites and running Apache with XAMPP. For the windows IIS users, hmmm… I’ll have to figure it out later at work. But with mod_rewrite enable in httpd.conf and .htaccess already reconfigured on upgrade, that was easy.. The only hiccup was the thumbnails in the secondary blogs were not showing up although the path and files were correct. WordPress does give a note that
“The wp-content/blogs.php file is deprecated. Please remove it and update your server rewrite rules to use wp-includes/ms-files.php instead.”
What it actually means is that you have to edit .htaccess under the root folder and change
“RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2″
For
“RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2″
Quite evident really but sometime you just have to know these things…
Posted on June 22nd 2010 in
IT/ Network Admin,
LAMP-sites
It’s been a while since I programmed in PHP/MySQL. The last program I made was to manage the set of IPv4 addresses we have across the different sites we manage. It never really kicked off but the IP calculator I made is pretty handy. I know there are quite a few, with more features out there on the Internet but I like mine, simple and for people who know what they are looking for. This site was quite nice because I really got into more details, AJAX features and the usability was quite nice. I hope I find the time to work more on it in the future.
Posted on June 22nd 2010 in
IT/ Network Admin,
LAMP-sites
Always good to know that there are tools out there help you test your MS Exchange server connectivity.
https://www.testexchangeconnectivity.com
Posted on June 17th 2010 in
Uncategorized
Windows 7 seemed to have a bug when it came to reading PDF files in the preview handler, in Windows Explorer Itself and in Outlook. Found the fix on MSOutlook.info
This should work directly on a 32-bit version of Windows with the latest version of Adobe Reader or Adobe Acrobat installed. Sadly, the installer from Adobe does not write the correct registry setting to also enable the previewer on a 64-bit version of Windows.
To fix this registry issue, you can download the fix. It will add the following registry entry;
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{DC6EFB56-9CFA-464D-8880-44885D7DC193}
Value name: AppID
Value type: REG_SZ
Value: {534A1E02-D58F-44f0-B58B-36CBED287C7C}
Note: This will also enable the PDF Preview feature in Windows Vista and Windows 7 itself.
Posted on June 9th 2010 in
IT/ Network Admin
I will sound a bit old-fashioned but my favorite word editor is and has always been “NOTEPAD”. It is way easier and less distracting that having to click a dozen times to get to the editor and get used to all the button/bars which changes from one page to another… I like the new Office 2010 (with the hidden ribbon), and the ability to publish directly with all the easy editing features is the icing on the cake.

HOW TO ??
http://www.screencast.com/users/absando/folders/Jing/media/2009773c-0bf6-4064-a528-e1918f5589f2
Posted on June 9th 2010 in
IT/ Network Admin,
LAMP-sites
Posted on April 21st 2010 in
IT/ Network Admin
We have two scripts
1. Connects to all server and check the last backup file (date) & the number of backup in the folder (should be 5),
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile0 = objFSO.OpenTextFile("D:\Script\CheckFilesOnServer\cobianServers.txt", 1)
Dim Last
Do Until objFile0.AtEndOfStream
strComputer = objFile0.ReadLine
num = 0
' generate a filename base on the script name
strOutputFile = "D:\Script\CheckFilesOnServer\" & Split(WScript.ScriptName, ".")(0) & ".log"
' Create object and file for output
Set objFileSystem = CreateObject("Scripting.fileSystemObject")
Set objOutputFile = objFileSystem.CreateTextFile(strOutputFile, TRUE)
Set OutputLogFile= objFileSystem.GetFile(strOutputFile)
' Create object for file path
Set objFSO = CreateObject("Scripting.FileSystemObject")
objStartFolder = "\\" & strComputer & "-serveur\B$\2009-2010"
Set objFolder = objFSO.GetFolder(objStartFolder)
Set colFiles = objFolder.Files
'get path of every file and test path length
Last= " "
For Each objFile in colFiles
on error resume next
Last=objFile.Name
num = num + 1
Next
objOutputFile.WriteLine ("Last: " & Last & " - Numb: " & num & "- Server : " & strComputer )
Loop
2. Go and delete any backups older than 11 days on the school servers. deleteOlderFiles
Dim fso, f, f1, fc
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("D:\Script\CheckFilesOnServer\cobianServers.txt", 1)
Do Until objFile.AtEndOfStream
On error resume next
strComputer = objFile.ReadLine
'##### Creating Log File and prepare for writing #####
strOutputFile = "D:\Script\CheckFilesOnServer\" & Split(WScript.ScriptName, ".")(0) & ".log"
Set objFileSystem = CreateObject("Scripting.fileSystemObject")
Set objOutputFile = objFileSystem.CreateTextFile(strOutputFile, TRUE)
Set OutputLogFile= objFileSystem.GetFile(strOutputFile)
'##### Preparing Folder where files are to be deleted #####
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder("\\" & strComputer & "-serveur\B$\2009-2010")
Set fc = f.Files
'##### Deleting Files where Last Modified is less than 11 days ######
For Each f1 in fc
If DateDiff("d", f1.DateLastModified, Now) > 11 Then
f1.Delete
End If
Next
Set fso = Nothing
Set f = Nothing
Set fc = Nothing
objOutputFile.WriteLine ("cleaned backup folder for " & strComputer & " server " )
Loop
wscript.echo("Terminé!!!")
Posted on February 8th 2010 in
IT/ Network Admin
All you need to know about Magic Packets.. from wireshark
http://wiki.wireshark.org/WakeOnLAN
Posted on December 3rd 2009 in
IT/ Network Admin
It is really a pain when your cisco equipment freezes and overwrites all the logs when it reboots to tell you that the interfaces are back up. You have no clue why it went down or what happened 5 seconds before. That’s why we need the syslogger..!!
You can get a free one for one device from Syslog Watcher Personal Edition or get the personal edition or KIWI which is really well rated.
Syslog Configuration and Cisco Devices
Syslog reserves facilities “local0″ through “local7″ for log messages received from remote servers and network devices. Routers, switches, firewalls and load balancers each logging with a different facility can each have their own log files for easy troubleshooting. The following examples will show how to have a different log file for each class of device.
If you have a large data center, then you may also want to switch off all logging to /var/log/messages as suggested above for the home/SOHO environment. In all the network device configuration examples below we are logging to the remote Linux logging server 192.168.1.100 which we set up in the previous section.
Cisco Routers
By default Cisco routers send syslog messages to their logging server with a default facility of local7. We won’t set the facility in this case, but we can tell the router to timestamp the messages and make the messages have the source IP address of the loopback interface.
service timestamps log datetime localtime
no logging console
no logging monitor
logging 192.168.1.100
Catalyst CAT Switches running CATOS
By default Cisco switches also send syslog messages to their logging server with a default facility of local7. We won’t change this facility either, therefore making routers and switches log to the same file.
set logging server enable
set logging server 192.168.1.100
set logging level all 5
set logging server severity 6
Taken from : http://www.linuxhomenetworking.com/cisco-hn/syslog-cisco.htm
Posted on November 25th 2009 in
IT/ Network Admin