Begin Wamp Server At Startup

Go to Control Panel->Administrative Tools-> Services.

Right click wampapache,wampmysqld and select properties.

Change Startup Type from Manual to Automatic



Magento Blank Theme Installation Problem

After installing blank theme in magento,an error will appear like this,

Fatal error:Call to a member function toHtml() on a non-object in /app/code/core/Mage/Core/Model/Layout.php on line 529

To fix this error,go to /app/design/frontend/default/blank/layout/ and open page.xml file.

Find the code around line no 89, which looks like this,

<block type="core/profiler" output="toHtml" />

Change it to

<block type="core/profiler" output="toHtml" name="core_profiler"/>

Setup PHP Debugger On Komodo Edit 5


  • To enable PHP debugger on komodo edit,Go to Edit->Preferences->Language->PHP. PHP interpreter path must be setup. INI file path will be automatically configured by komodo edit installer if php ini file exists.
  • Now locate the path of php-cgi.exe file and set its path.In Wamp,php-cgi.exe file will be in wamp\bin\php\php5.2.9\php-cgi.exe
  • Once it done,Komodo Edit will show syntax error while typing the code.

How to Send Mail From Localhost-PHP

If  you are using wamp in a windows machine,its quite hard to send mail through native php mail function or sendmail or SMTP.But you can use PHP Mailer program to send mail from localhost.It bypasses native mail,sendmail methods.It works well on windows as well as *nix machines.

Download PHP Mailer from or from

Sample code

$mail  = new PHPMailer();
$body="<b>This mail is sent using PHP Mailer</b>";#HTML tags can be included
$mail->SMTPAuth  = true;                 #enable SMTP authentication
$mail->SMTPSecure = "ssl";               #sets the prefix to the server
$mail->Host  = "";         #sets GMAIL as the SMTP server
$mail->Port       = 465;                 #set the SMTP port
$mail->Username   = "";                  #your gmail username
$mail->Password   = "";                  #Your gmail password
$mail->From       = "";                  #your gmail id
$mail->FromName   = "";                  #your name
$mail->Subject    = "Subject of the mail";
$mail->WordWrap   = 50;
$mail->AddAddress("recipient mail id","recipient name");
$mail->IsHTML(true); // send as HTML
echo "Mailer Error: " . $mail->ErrorInfo;
echo "Message has been sent";


You can also send mail with attachments.For more info refer the documentation of PHP Mailer.


Change SMTP Host,port,authentication only if sure of what you are doing.

How To Create an Alias in Wamp

When you install wamp, www will be the default folder to put your site and it will be accessed by http://localhost/site-name.But how can one run site that exists outside www folder.Here ‘s the simple solution

Create a folder in any one of your parititons.Here i have created a folder called trunk in C:\ drive.

  • Right click the wamp icon click and go Apache->Alias directories->add an alias


A new command window will be opened

  • Enter the only(without ant relative or absolute path) the name of the folder that you created and hit enter.


  • Now specify the path where the folder is located and hit enter.

Example: c:/trunk/

Thats it alias created.Site can be accessed with this url http://localhost/trunk.Store all the files in the folder that you created.