[mythtv-users] MythWeb: Apache won't start: "Invalid command 'php_value'"

Mike Bibbings mike.bibbings at gmail.com
Thu Aug 30 07:19:26 UTC 2018


On 30/08/18 05:02, Fred Hamilton wrote:
> I just upgraded from Ubuntu 16.04 to 18.04, and impressively MythTV is 
> working fine.
>
> Hit a snag with MythWeb, though.  When I try to start Apache, I get an 
> 'Apache won't start: "Invalid command 'php_value'" ' error.
>
> Fortunately that *exact* problem is covered in the MythWeb 
> documentation here 
> <https://www.mythtv.org/wiki/MythWeb#Apache_won.27t_start:_.22Invalid_command_.27php_value.27.22>.
>
> Unfortunately the recommended fix (a small edit 
> to /etc/conf.d/apache2) isn't working because 18.04 doesn't seem to 
> have an /etc/conf.d directory!
>
> I grepped around for a file containing "APACHE2_OPTS", but that didn't 
> turn up anything either.
>
> Now I'm out of ideas.
>
>
When I did an in-place upgrade of 16.04 to 18.04 mythweb failed to work 
due to php 7.2

The solution I used was:
sudo mv /etc/php/7.0/apache2/conf.d/20-mythweb.ini 
/etc/php/7.2/apache2/conf.d/20-mythweb.ini
sudo a2enmod php7.2 #to sort out apache2
sudo systemctl restart apache2


The "sudo mv /etc/php/7.0/apache2/conf.d/20-mythweb.ini 
/etc/php/7.2/apache2/conf.d/20-mythweb.ini" was necessary to fix the 
"Warning: Unknown: Input variables exceeded 1000. To increase the limit 
change max_input_vars in php.ini. in Unknown on line 0" when saving 
channels. The value in 20-mythweb.ini of 10000 caters for 620 channels, 
1000 only handles 62 channels.

Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20180830/b94891cc/attachment.html>


More information about the mythtv-users mailing list