Pictory,Apache2 and Imagebakery

Topics about the Software of Revolution Pi
Post Reply
KoenW
Posts: 24
Joined: 12 May 2019, 16:15
Answers: 0
Location: Sydney
Contact:

Pictory,Apache2 and Imagebakery

Post by KoenW »

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:
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'.
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.

Dear RevPi-crew, any suggestions on getting apache2 to work and show Pictory? Is it related to the use of Raspbian-Lite?

Thanks
Koen
User avatar
dirk
KUNBUS
Posts: 1925
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: Pictory,Apache2 and Imagebakery

Post by dirk »

Hi Koen, thank you for your rich an detailled feedback. We don't support the raspbian-lite image with imagebekery. Please use the standard image instead. You can build a minimal image with it.
User avatar
dirk
KUNBUS
Posts: 1925
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: Pictory,Apache2 and Imagebakery

Post by dirk »

Hi Koen, we have found an error in the Readme of the Imagebakery. We'll remove the "lite" image support.
User avatar
p.rosenberger
KUNBUS
Posts: 89
Joined: 03 Jul 2020, 11:07
Answers: 1

Re: Pictory,Apache2 and Imagebakery

Post by p.rosenberger »

This is a bug which doesn't only affect the minimal image. The dependency of the revpi-webstatus is incorrect. You can install the missing dependencies as follows:

Code: Select all

sudo apt-get install libapache2-mod-php
Best regards,
Philipp
User avatar
p.rosenberger
KUNBUS
Posts: 89
Joined: 03 Jul 2020, 11:07
Answers: 1

Re: Pictory,Apache2 and Imagebakery

Post by p.rosenberger »

We released a new version of the revpi-webstatus package (revpi-webstatus-1.2.9-2). The package has been uploaded to our package repository.
Post Reply