Electrical – Lamp base out of wood, containing wires. Is there a safe way

electricalfire-hazardwood

I want to build a lamp socket base out of wood. In general I'd have a total of three lamps sockets hanging from it, which I'd feed through drill holes and would wire together in a hollowed out part of the wood.

 _________________
|_________________|  <- wooden board/slab
   |     |     |
   |     |     |
   O     O     O  <-lamp sockets

This means electrics and flammable material together.Naturally, this brings up some concerns as I don't want to burn down my house.
Is this in general a bad idea, or how can I achieve this in a safe way?

Additional info
View from top on hollowed out fixture with cable canal:

    cable feeds from bulbs     
        ↓      ↓       ↓
     ____________________
    |                    |
    |   O------O------O  | 
    |____________________|
               ↑      
         wiring all together 

Best Answer

I know you've seen LED replacement "bulbs" that screw in, and you know those fail. What is failing isn't the LED. It's the conversion power supply which converts 230V to 3V for the LEDs, which tend to be built very cheaply. You could fix them, but it's not worth it. Don't let that scare you away from LED tech. The actual LED emitters proper have an extremely long service life. They will not burn out, probably in our lifetimes.

So anytime you're homebrewing a lamp, the right answer is to use LEDs because LEDs use low-voltage and run cool. There's a quasi-standard for projects like yours, to use 12 volts DC -- the LEDs won't run directly on that, but there are lots of ways to buy 12 volt LED modules that simply contain three LEDs and a resistor. The resistor will last as long as the LEDs.

To power that, you use a common, commercial off the shelf 230V-12V "wall wart" type power supply, which is listed by the relevant safety agencies - BSI, TUV, UL, whoever you use. (CE is pretty worthless when dealing with China). That means you are never touching mains voltage. An electrical short could still cause a fire, but 99% of such fire-starters are arcing faults across open connections, and 12V doesn't really like to arc. All the "failable" electronics are in the wall-wart, all the rest is wires, LEDs and resistors. The wall-wart will be what fails, just swap it.