Friday, 26 August 2016

How to Setup the Ultimate Server for Affiliate Marketing

PART 1 – How to Setup the Ultimate Server for Affiliate Marketing

Originally published on 1st July, 2005

Programming on a laptop
Programming using a laptop computer
In this post I covered some nuts and bolts methods that will help make your datafeed site unique and I offered to provide working code for these examples if anyone was interested so here we go. In order for any of my examples to work you must have the following setup on your server.

You will need to have PHP and MySQL as well as access to cronjob and .htaccess. If you haven’t got cronjob don’t worry I will show you how to auto update your sites from any scheduler you run on your computer.

I like to make all my pages look static with no variables so I add this line to httpd.conf using a shell editor. (If you don’t have access to httpd.conf just add the line to .htaccess)

AddType application/x-httpd-php .htm .html

This tells the server to handle all files with a .htm or .html extension as PHP files allowing you to run PHP code on pages that appear static to search engines and visitors alike.

two more lines to add are:

Options +FollowSymlinks
RewriteEngine On

These will be covered later when we get into mod-rewrite so just add them for now.

You will also need to add a MySQL database on your server, create a user with full privileges and add the user to the database.

Next you will need to import your datafeed into a standardized database. I will continue in a new post as this next subject is going to take some space.

I used to write articles for a website called A Best Web which is closing down and I have decided to pull my articles from there and give them a new home here for posterity.

No comments:

Post a Comment