# phpBB 3 Importer (old)

**URL:** <https://meta.discourse.org/t/phpbb-3-importer-old/17397>\
**Category:** Feature\
**Created:** [9 Luglio 2014, 6:57pm UTC](https://meta.discourse.org/t/phpbb-3-importer-old/17397 "2014-07-09T18:57:02Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [3 Agosto 2014, 9:56pm UTC](https://meta.discourse.org/t/phpbb-3-importer-old/17397/14 "2014-08-03T21:56:07Z")

</div>

You need to set the Rails environment:  
`RAILS_ENV=production sudo -E -u discourse ruby phpbb3.rb`

Also, you can avoid the repetitive `sudo` cruft by becoming the `discourse` user instead of editing and running these scripts as `root`. Just run `su - discourse` after entering the container.

---

_[View the full topic](https://meta.discourse.org/t/phpbb-3-importer-old/17397)._
