Edit smb.conf, add the following line:
$ veto files = /*.mp3/*.avi/*.mpg/
Save and restart Samba.
Edit smb.conf, add the following line:
$ veto files = /*.mp3/*.avi/*.mpg/
Save and restart Samba.
I’m testing out my new spam filters, so web bots, index my email address: iam@willsani.com
Easy! Edit the following with your own:
$ /vz/root/1/etc/httpd/conf/ssl.crt/server.crt
$ /vz/root/1/etc/httpd/conf/ssl.key/server.key
Log-in to the service container and restart the vzcp service. All done!
If you want to add yum to a virtual instance you can do it by running the following command:
$ vzpkg install -p [VEID] yum
While I was reading more about AD and Apache, I ran into the following quote by “Sander Marechal”
“Microsoft Active Directory is a bit-rotten crock that should have never seen the light of day. After two full days of waving dead chickens at it, trying to make any sense of it’s irrational behavior I would love nothing more than to pick it up and throw it off the roof of our building, BofH style, aiming it at the PHB that bought it in the first place. Or it’s programmer. Whomever passes by first. It’s API only vaguely resembles LDAP after at least three bottles of whiskey or one pan galactic gargle blaster and squinting really, really hard.”
I laughed, then proceeded to bang my head against the desk!
I believe in mass hysteria and panic! Well, not completely. I ran into an issue with yum not updating correctly. The solution was really simple:
$ cd /var/lib/rpm/ && rm -rfv __db*
Run yum clean all and re-run it. It should work for you.
In case if you ever run into an issue with .cgi scripts not executing on a Plesk server, try the following:
Evidently everyone has the same issue but no one has a good solution for WordPress (2.5.1) error when you edit a post: tinyMCE is not defined. The solution is to remove js_cache from wp-content/uploads/ folder. Clear your web browser’s cache, then try to edit the post. It will correct the issue.
The nix* ftp client doesn’t support recursive directory uploads (bah!), so the sensible alternative is to use something like LFTP:
$ lftp -u user,pass -e “mirror –reverse –delete –only-newer –verbose /source /remote” ftp-server
In my travels designing a new corporate website I figured that my CSS defined class was just looking really wonky in IE compared to Mozilla. Microsoft (in all of it’s bask in glory) has a unique rendering engine unlike its counterparts. But they’re coming around and are beginning to follow the W3C standards. Firefox’s rendering engine is based off of Mozilla’s standards, which follow very closely with those recommended by the W3C.
I was running vzup2date on CenotOS 5.1 when the following error came up:
[RPM] Dependencies conflict.
/usr/bin/rpmbuild is needed by vztt-build-4.0.0-116.swsoft.x86_64
The solution was really simple. Install rpm-build:
$yum install rpm-build
Once you’ve done this, you can proceed with vzup2date without any errors.
I thought I would share the steps I took to setup CentOS 5.1 on a Dell PowerEdge 1900 withPerc 5/i and 6/750GB hard drives in a RAID 5 configuration.
Yeah, I upgraded to Outlook 2007 and here is what I got: 0×800CCC80 when attempting to send an email. The solution to the problem is listed below:
Go to Tools > Account Settings > Double click the account > More Settings > Outgoing Server > ‘Log on to incoming mail server before sending mail’.
You’re welcome!
I got a little paranoid with MySQL running in Windows 2003, so I wrote a quick script to make backup script of the databases along with the save date:
@echo off
FOR /F “TOKENS=1* DELIMS= ” %%A IN (’DATE/T’) DO SET CDATE=%%B
FOR /F “TOKENS=1,2 eol=/ DELIMS=/ ” %%A IN (’DATE/T’) DO SET mm=%%B
FOR /F “TOKENS=1,2 DELIMS=/ eol=/” %%A IN (’echo %CDATE%’) DO SET dd=%%B
FOR /F “TOKENS=2,3 DELIMS=/ ” %%A IN (’echo %CDATE%’) DO SET yyyy=%%B
SET date=%mm%%dd%%yyyy%
echo Running MySQL5 Backups
“C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqldump” -uroot -p[PASS] -P [PORT] –result-file=”c:\backup\[HOSTNAME].%date%.sql” –all-databases –verbose –add-drop-table -add-locks -f
echo Done!
I was migrating a VM container to Virtuozzo VE when I ran into the following error:
# Error invoking external utility: can’t set Container network flags
It looks like this is a bug with Virtuozzo container version 4.0, and from the look of it there doesn’t seem to be a hotfix in existence. However, you can fix the issue by issuing the following command:
$ vzctl set [VEID] –netif_add vznet1 –ipadd [IP ADDRESS] –save
This worked in my case.
I was checking the DNS record for a domain (using dnsstuff.com) and I noticed that the Bind version was being disclosed to the public:
Your nameservers have the following versions:
65.49.*.*: “9.2.4″
65.49.*.*: “9.2.4
Continue reading »
So you’ve got yourself one of those dreaded Microsoft Outlook errors? Same here:
Task ‘Checking for new mail in subscribed folders on Mail Failure Logs.’ reported error (0×8004DF0B) : ‘Outlook is unable to download folder (null) from the IMAP e-mail server for account Mail Failure Logs. Error: The connection to the server is unavailable. Outlook must be online or connected to complete this action. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).’
Truth be told, Bill Gates isn’t at fault here. This is actually a courier-imap setting. To correct the issue, shell to your server, and edit /etc/courier-imap/imapd (may be located elsewhere on your *nix distro) look for the following flag: MAXPERIP=4, increase the number and restar the courier services. The error is no longer there.