You'd want to increase shared_buffers to take advantage of the extra memory, but I'm not sure if you'd want to use 50% of the system's memory. For a server running other services, I'd suggest keeping shared_buffers at 25% or less. Linux will allocate the unused RAM for disk cache fairly aggressively on its own, so you'll have a performance boost for both Postgres and PHP/Apache with the extra memory.