Pictory,Apache2 and Imagebakery
Posted: 23 Aug 2020, 09:36
Hi guys,
So I was very excited to create an image with imagebakery and the Raspbian-Lite (Stretch) base image.
On first boot everything works as expected: I was asked to enter the type of RevPi (Core in my case), the serial number and MAC address. Then a reboot and all good so far.
However, it seems Pictory isn't loading. Upon a bit of investigation I realised that Apache2 fails to start. Something to do with a php_flag command. See below:
Dear RevPi-crew, any suggestions on getting apache2 to work and show Pictory? Is it related to the use of Raspbian-Lite?
Thanks
Koen
So I was very excited to create an image with imagebakery and the Raspbian-Lite (Stretch) base image.
On first boot everything works as expected: I was asked to enter the type of RevPi (Core in my case), the serial number and MAC address. Then a reboot and all good so far.
However, it seems Pictory isn't loading. Upon a bit of investigation I realised that Apache2 fails to start. Something to do with a php_flag command. See below:
I looked into the config file, and yes there are some php_flag commands to do with Pictory. But the only thing I could find on php_flag and apache2 is on this site: https://sites.google.com/site/gordoncol ... y-a-module and in all honesty - I'm not sure what to do with that.pi@RevPi12141:/var/www/pictory/projects $ sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-08-23 17:18:01 AEST; 14min ago
Process: 1112 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Aug 23 17:18:00 RevPi12141 systemd[1]: Starting The Apache HTTP Server...
Aug 23 17:18:01 RevPi12141 apachectl[1112]: AH00526: Syntax error on line 31 of /etc/apache2/sites-enabled/000-default.conf:
Aug 23 17:18:01 RevPi12141 apachectl[1112]: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
Aug 23 17:18:01 RevPi12141 apachectl[1112]: Action 'start' failed.
Aug 23 17:18:01 RevPi12141 apachectl[1112]: The Apache error log may have more information.
Aug 23 17:18:01 RevPi12141 systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 23 17:18:01 RevPi12141 systemd[1]: Failed to start The Apache HTTP Server.
Aug 23 17:18:01 RevPi12141 systemd[1]: apache2.service: Unit entered failed state.
Aug 23 17:18:01 RevPi12141 systemd[1]: apache2.service: Failed with result 'exit-code'.
Dear RevPi-crew, any suggestions on getting apache2 to work and show Pictory? Is it related to the use of Raspbian-Lite?
Thanks
Koen