I faced error while trying to install wikifab on AWS EB, I only can install mediawiki following the steps on the GitHub page, but when I get to running the PHP script everything goes wrong.
at this point I have media wiki running on Amazon Eb but
im stuck at METHOD #1 STEP #03
3. Add wikifab extensions and configuration
when I include >> include('LocalSettings.wikifab.php'); to LocalSettings.php, I get ERROR
but then I cannot run the PHP script after deployment since its amazon policy
According to Amzon Guides the only way to run the PHP script after deployment is to include a config file in new folder called /.ebextensions
and post the PHP command in for example /wikifab/.ebextensions/wikifab.config and after deployment, amazon will run the script but it didn't work for me
here is my example config but it came back with errors :
command: php maintenance/update.php
command: php maintenance/initWikifab.php --setWikifabHomePage
I GET THIS ERROR
The configuration file .ebextensions/dev.config in application version wikifab-1.0.1 contains invalid YAML or JSON. YAML exception: Invalid Yaml: while scanning for the next token found character '\t' that cannot start any token in "", line 5, column 1: command: php maintenance/initWi ... ^ , JSON exception: Invalid JSON: Unexpected character (c) at position 0.. Update the configuration file.
amazon guides I followed
can you please help, I only missing the last step which is running the PHP script, I have been working for days non stop to get it done (Im only Electrical Engineer with minimum CODE knowledge)