See this for installing the parallel port driver. Port0 is only for output (12 lines) and Port1, input (5 lines).
Pin Port0 Port1
----- ----- -----
1 p0.8
2 p0.0
3 p0.1
4 p0.2
5 p0.3
6 p0.4
7 p0.5
8 p0.6
9 p0.7
10 p1.3
11 p1.4
12 p1.2
13 p1.1
14 p0.9
15 p1.0
16 p0.10
17 p0.11
18-25 GND
----- ----- -----
Port0: OUT only
Port1: IN only