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.

comments powered byDisqus