Linux install postgresql. Установка ubuntu server. sudo tasksel install lamp-server. ubuntu tasksel. добавляем их в software collection.