What's on my mind

Basecamp Style Subdomains With CodeIgniter | Nettuts+

<div class="posterous_bookmarklet_entry">
  <div class='p_embed p_image_embed'>


nice tutorial

mail() function setup in php.ini

Today, I setup mail() function for php. One of the Developer told me,

can’t send mail with mail() function. Are you enable in php.ini ?

Oh! I think I need to setup mail() in our server.

I reply like that. But I don’t know how to enable it. I don’t worry about that because our server is Ubuntu. I found following link and I setup and then it’s OK. How nice ? Just take 30 minutes and problem has been solove. I love Ubuntu and opensource,too.

First we need to install exim4 look like that

$sudo apt-get install exim4

after that we need to config exim4

sudo dpkg-reconfigure exim4-config

I made setup by step with wizard. It’s easy. After that, I change php.ini in look like that.

sendmail_path = /usr/sbin/sendmail

OK. Done. Restart the apache and it’s working.

Enable PHP 5 in Lunarpages Hosting

I uploaded file and run in my lunarpages hosting. I can’t run and call to undefined function occur. It was OK in my localhost. So, I check the php version. Sure.. hosting was using PHP 4. I need to update php 5 because I am using PHP 5. First , I check in my cpanel and sure to enable PHP 5. It’s already installed. OK. I think I need to add .htaccess in the folder. I made .htaccess file and wrote following line

AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml

and then upload with ftp. Ok. Try to run again. WOw… It’s ok now. I found that .htaccess file from there.