Purchase a water inlet and dishwasher drain extension kit from your local hardware store or online. If you can't find a kit, you can buy each item separately.
Connect one end of your water inlet extension to the water supply near your sink and the other to the inlet valve on the back of your dishwasher. Make sure your connections are sound.
Connect one end of your drainage extension to the waste outlet of your machine, and the other to the trap or waste disposal system under your sink. Secure it in place with a jubilee clip.
Turn the water supply to your machine on, connect it to the power supply, and run a test cycle.