Install with CLI

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
j12t
Registered User
Posts: 2
Joined: Wed Dec 06, 2017 8:46 pm

Install with CLI

Post by j12t » Wed Dec 06, 2017 9:04 pm

Having discovered the command-line interface [1], I am hoping I can perform a complete install from the command-line, without ever going through the browser. Unfortunately, I don't get very far. My steps:
  • Download zip file
  • Unzip zip file
  • cd <dir>
  • php bin/phpbbcli.php
Regardless of what arguments I give this command, I get:

Code: Select all

PHP Fatal error:  Uncaught Symfony\Component\DependencyInjection\Exception\RuntimeException: A string value must be composed of strings and/or numbers, but found parameter "core.table_prefix" of type NULL inside string value "%core.table_prefix%oauth_tokens". in .../phpBB3/vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php:219
Stack trace:
#0 [internal function]: Symfony\Component\DependencyInjection\ParameterBag\ParameterBag->Symfony\Component\DependencyInjection\ParameterBag\{closure}(Array)
#1 .../phpBB3/vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php(226): preg_replace_callback('/%%|%([^%\\s]+)%...', Object(Closure), '%core.table_pre...')
#2 .../phpBB3/vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php(171): Symfony\Component\DependencyInjection\ParameterBag\ParameterBag->resolveString('%core.table_pre... in .../phpBB3/vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php on line 219
If I install the app through the web interface, and then invoke the command-line, it works fine. If I put a table_prefix into config.php, then the "must be installed already" logic triggers, and I get missing table errors from the database backend. So that doesn't get me far.

How do I make this work?

This is version 3.2.1 on Arch Linux, using PHP 7.1.12.

Thanks.



[1] https://area51.phpbb.com/docs/dev/3.1.x ... arted.html

User avatar
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 23945
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: Install with CLI

Post by Paul » Wed Dec 06, 2017 9:20 pm

You need to use the phpbbcli.php in the install/ directory.
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

j12t
Registered User
Posts: 2
Joined: Wed Dec 06, 2017 8:46 pm

Re: Install with CLI

Post by j12t » Thu Dec 07, 2017 7:57 am

Thanks, Paul, this indeed works.

I didn't realize there were two identically-named, but different executables in the same zip file. Not exactly obvious ...

Badhon_raj
Registered User
Posts: 141
Joined: Wed Jan 04, 2012 6:33 pm

Re: Install with CLI

Post by Badhon_raj » Fri Dec 29, 2017 6:02 am

Paul wrote:
Wed Dec 06, 2017 9:20 pm
You need to use the phpbbcli.php in the install/ directory.
can you please instruct the steps and command line syntax to use if I want to install via cli?
The php phpbbcli.php install -h didn't help much
What should be inside the config-file?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 18426
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Install with CLI

Post by Mick » Fri Dec 29, 2017 9:52 am

@Badhon_raj: Please start your own topic especially as this one is marked as solved Image.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.
Forza Garibaldi

Badhon_raj
Registered User
Posts: 141
Joined: Wed Jan 04, 2012 6:33 pm

Re: Install with CLI

Post by Badhon_raj » Fri Dec 29, 2017 10:57 am

Mick wrote:
Fri Dec 29, 2017 9:52 am
@Badhon_raj: Please start your own topic especially as this one is marked as solved Image.
ok, since this topic was related and it google returned this topic when I searched, I presumed it'd make more sense to ask in this topic.
I'll go ahead and open another topic with same title.

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: AntonioGPS, canonknipser, Charlie_M, Froddelaar, GanstaZ, seantree, Serenity Joe, xmetal and 34 guests