# 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:** 47

<div class="post-metadata">

**Author:** ![sampsakuronen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sampsakuronen/32/114926_2.png) [@sampsakuronen](https://meta.discourse.org/u/sampsakuronen)\
**Post date:** [14 Settembre 2014, 7:25am UTC](https://meta.discourse.org/t/phpbb-3-importer-old/17397/47 "2014-09-14T07:25:29Z")

</div>

**Thank you alot Gerhard! And of course everyone involved in making of this script!**

The script is currently creating the topics and posts and everything seems fine so far. It was just that I was new with Docker, so I wasn’t familiar about the idea of working inside a container.

**My contribution is this:**

1. Be sure to run the script inside the container with `cd /var/discourse/ && ./launcher ssh app`
2. Check your table prefix in the converter script: replace `phpbb_` with your own phpBB3 table prefix. Be cautious about renaming, as there are things that don’t co-operate with this simple solution.
3. If you want to connect to a remote mySQL server, ensure that it’s accessible externally (you can check if it is with `nmap <ip-address>`, [guide to opening it up](http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html))

And I also made the Docker-compatible script into a **oneliner** for an easy fire-and-forget:

> apt-get update && apt-get install libmysqlclient-dev -y && git clone [GitHub - nlalonde/ruby-bbcode-to-md: Convert BBCode to Markdown. · GitHub](https://github.com/nlalonde/ruby-bbcode-to-md.git) /tmp/ruby-bbcode-to-md && cd /tmp/ruby-bbcode-to-md && gem build ruby-bbcode-to-md.gemspec && gem install ruby-bbcode-to-md-0.0.13.gem && su - discourse && echo “gem ‘mysql2’” \>\> /var/www/discourse/Gemfile && echo “gem ‘ruby-bbcode-to-md’, path: ‘/tmp/ruby-bbcode-to-md’” \>\> /var/www/discourse/Gemfile && exit && cd /var/www/discourse && bundle install --no-deployment --path vendor/bundle && su - discourse && cd /var/www/discourse && RAILS\_ENV=production bundle exec ruby script/import\_scripts/phpbb3.rb bbcode-to-md

P.s. Perhaps the whole migration “framework” could use a Readme, the basic flow as well as these specific migration scripts. Also the punbb3 script should have a lower batch size by default (10 or 100 I think).

---

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