HELM3 Subdomain not working

Today, I was asked by HaoSiaoKing aka Kwan for this case and I am now sharing the solution.

Scenario: When create a subdomain from HELM3 but all of the script mapping is not created automatically. I tried to use a alternative way to make it working as solution below.

Resolution:
1. The workaround I am using is to replace all of the script mapping back to the subdomain where is it not created by the subdomain.
2. Open IIS6, you shall see the hostname and right click then select the properties.

3. Check the checkbox of “Enable Direct Metabase Edit” and press OK.
4. Go to the directory of “C:\WINDOWS\system32\inetsrv”.
5. Backup the file named MetaBase.xml.
6. Open the file with notepad.
7. Find the domain name from the MetaBase.xml file.
8. Copy the line as below.

ScriptMaps=”.aspl,C:\Perl\bin\PerlEx30.dll,5,GET,HEAD,POST
.cdx,C:\WINDOWS\system32\inetsrv\asp.dll,5,GET,HEAD,POST,TRACE
.cer,C:\WINDOWS\system32\inetsrv\asp.dll,5,GET,HEAD,POST,TRACE


*,C:\ColdFusion8\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll,0,GET,HEAD,POST,TRACE”

9. Find the subdomain.
10. Paste the copied line and replace the ScriptMaps.
11. Restart IIS.

cPanel with RVSkin not able to list file from file manager

Today, I found out cPanel with RVSkin could not list file and folder from file manager feature, I have immediately seek from RVSkin support and get the fix.

Below is the error from cPanel’s error_log.

Error:
[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$abshomedir failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 56) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$FORM{‘dir’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 57) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$FORM{‘showhidden’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 58) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$CPDATA{‘RS’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 59) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$CPDATA{‘DNS’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 60) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$ENV{‘cp_security_token’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 63) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$ENV{‘cp_security_token’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 64) line 1.

I was fixed the issue by running 2 command from SSH only.
# rm -f /usr/local/cpanel/Cpanel/rvversion
# perl /root/rvadmin/auto_rvskin.pl

You will need about 5-10 minutes to get the fix. Good Luck.

Find and replace a word from a file

Sometimes, you might want to find and replace a bunch of word from a file and you do not actually needed a word editor such as vi, pico, nano or emacs to open and modify it.

From Linux, you could directly using perl to replace them.
perl -pi -e ’s/wordToFind/replaceWithThisWord/g’ *.fileExtension

For example, you have all word linux want to replace with mickgenie, you may use the command as below.

perl -pi -e ’s/linux/mickgenie/g’ bogo.txt

No Space Left on Device

When you restarting the httpd services while the the server found high load, you might get these error.

ERROR: (28)No space left on device: mod_rewrite: could not create rewrite_log_lock

Why you will getting this error? The reason is the semaphore issue. What is semaphore? It is the process used to communicate between active process from Apache.

To check what is the semaphore used, you may use the command as below.

Continue reading No Space Left on Device