Category: Hosting

Jul 10 2009

PHP Blogger – How to make your blog PHP

In order to use PHP you will need to host your blog. Currently Google does not offer the option to run PHP blogger on their servers. The first step is to set up your host. Each host may be slightly different, but the idea will be the same. You will need a domain name and web host, I will use an example domain name

Once you have your web hosting and domain name set up, you will need to set up your host to allow Blogger to publish your blog via FTP or SFTP. Google recommends SFTP, which stands for secure FTP, most hosting companies offer SFTP as a standard feature. You will need a dedicated directory or sub domain and a FTP account for your blog.

Setting up the dedicated FTP account.

Log in to your host’s control panel and choose add a FTP account. You will want to add a new FTP account and call it blogger or something like that. So the FTP account name would look like this Choose a good password! Chances are the FTP account tool will automatically create the home directory for this new FTP account. In this case it would be /public_html/blogger. If you are going to use the directory method then your host should be completely set up. If you want to use a sub domain you will need to complete the next step.

Setting up the sub domain
A sub domain allows you to run many different web site under the same domain. i.e.,,, etc. This is the same as where everyone will get Log in to your host and choose the Sub Domain tool to create the sub domain. You want the sub domain and FTP account name to be the same. In this case the FTP account and the sub domain will be This will make things easier to manage.

Now you host is set up the next step is to set up your blogger account. Log in to the your blogger account.

Setting up blogger to a Classic Template.
In order to use FTP publishing you will need to revert to a classic template.
Go to the layout tab then edit HTML.
At the bottom of the page there will be a link Revert to Classic Template Click that link and choose OK to the pop up questions.

One thing to note is that you can not use blogger gadgets with the Classic Template. While this is a trade off your can do far more with PHP.

Setting up FTP/SFTP publishing.
Once you have changed to the classic template, you will find the option to set up FTP and SFTP publishing. Note, this option will not be available until unless you are using the classic template.

Click to Enlarge.

Click the FTP or SFTP link to open the page where you will need to enter your hosting information. The information needed is the same for FTP or SFTP.

FTP Server:
Blog URL : or
FTP Path : /

(Note: since the home directory of the FTP account is the location of the blog you only need to use the slash )

Blog Filename: index.php

This is where you tell blogger to publish your blog as a PHP blog.

Feed Filename: (use the default) atom.xml

FTP Username :
FTP Password : yourStongPassword.

Once you have this information entered click save settings.

There is one more setting you will need to change and that is the archiving settings. Click the Archiving tab in the sub menu of the Settings tab and you should see a text field for the Archive Filename, by default this will be archive.html you will need to change it to archive.php and click save settings.

Now click the republish now link that should have appeared at the top of the page. And you should see this.
Now you have a PHP blog, however it is still just HTML. But you now have the opportunity to execute PHP code on your blog.

WordPress Themes