mythweb.conf stops httpd startup - 'php_value' not recognized

For discussion related to MythTV which doesn't belong in another forum.

Moderator: Forum Moderators

Post Reply
knutsondc
Junior
Posts: 19
Joined: Tue Apr 21, 2015 5:19 pm
United States of America

mythweb.conf stops httpd startup - 'php_value' not recognized

Post by knutsondc »

I recently upgraded my MythTV backend server from Fedora 26 to Fedora 27. After doing so, I found that httpd, the Apache web server version 2.4, would no longer start. Its failure message was
Starting httpd: Syntax error on line 100 of /etc/httpd/conf.d/mythweb.conf: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration [FAILED]
. A little research disclosed that the upgrade to Fedora 27 changes httpd from using the prefork MPM (Multi-Processing Module) by default to the event MPM and that mod_php does not work under the event MPM. I saw three suggested methods of correcting this problem: first, configure mythweb to use the php FastCGI Process Manager (FPM) instead of mod_php; second, reconfiguring httpd to once again use mod_php; and third, simply comment out the php_value and php_flag directives in mythweb.conf. I was in a hurry, so I chose the third option and commented out the php directives in mythweb.conf. The Apache server then started normally and MythWeb appears to be working correctly.

My question is this: is there any downside to commenting out those php directives? Could that break something sometime down the line? My knowledge of the Apache web server is pretty limited. I suppose the "right way" to address this issue is to configure MythWeb to make use of FPM, but I'd just as soon avoid the learning curve I'd need to climb to do that if the quick and dirty method I followed has no significant downsides.

I will appreciate any insights or suggestions anyone might have. Thanks!

Darron
Post Reply