If you are getting a small flame, then make sure you are holding the pilot button down log enough to charge the thermocouple, some may take up to 20 seconds. if after this amount of time it does not stay lit then the thermocouple may need replacing or a good service will be required due to a blockage in the pilot head which is causing the pilot light to miss the thermocouple.
NHS GASMAN, March 2011