315 | | |
316 | | |
317 | | |
| 315 | == Special Postgresql Issues == |
| 316 | |
| 317 | === Allowing Remote Connections === |
| 318 | {{{ |
| 319 | sudo vim /etc/postgresql/8.3/main/postgresql.conf |
| 320 | #listen_addresses = ‘localhost’ |
| 321 | #to |
| 322 | listen_addresses = ‘<ip address of oils server>’ |
| 323 | |
| 324 | sudo vim /etc/postgresql/8.3/main/pg_hba.conf |
| 325 | #edit pg_hba.conf to reflect file snippet at and of section |
| 326 | |
| 327 | #restart |
| 328 | su postgres |
| 329 | pg_ctl restart -D /data/postgresql/8.3/main -l /<path_to_log_file>/<my_logfile> |
| 330 | |
| 331 | }}} |
| 332 | |
| 333 | === Installing JSON::XS === |
| 334 | |
| 335 | {{{ |
| 336 | which gcc |
| 337 | |
| 338 | #If you don't, install one: |
| 339 | |
| 340 | apt-get update |
| 341 | apt-get install gcc |
| 342 | |
| 343 | perl -MCPAN -e 'CPAN::Shell?install(“JSON::XS”)' |
| 344 | }}} |
| 345 | |
| 346 | |
| 347 | |