[mythtv-users] alt lightweight web servers for MythTV?
James Miller
gajs-f0el at dea.spamcon.org
Mon Apr 13 15:58:11 UTC 2015
On Sun, 12 Apr 2015, George Nassas wrote:
> Sorry to disappear, got busy for a bit. If you’re still stuck:
Thanks for following up on this, George. Yeah, I'm still stuck. Here's a
bit of additional background since my last post. Someone mentioned that,
since this is a Gentoo install, I need to be using webapp-config to set up
nginx. So I began looking into that. It took a fair amount of research and
experimentation before I was able to actually use webapp-config, but I
think I've finally managed to install nginx that way. In an unrelated
glitch, I had to diagnose a hardware issue that I think I've resolved by
replacing a flaky USB hub. So far as getting nginx to serve MythWeb, I'm
still stuck at the same point though.
Before getting into that, however, I want to ask here for some
clarification regarding php-fpm (as it is mentioned in the wiki--see
https://www.mythtv.org/wiki/MythWeb_on_Nginx). I've been under the
impression that I should be using this in conjunction with nginx, though
I'm now beginning to wonder, after a recent rereading of the wiki article,
whether it might not be optional. The wiki says "Nginx doesn't have PHP
support built in, and it must be configured for it. The old way was to use
fast-cgi. If you are using nginx, you are trying to get performance and
scalability. Forget FastCGI and install php-fpm." So is php-fpm a
requirement or an option, when one is trying to serve MythWeb using nginx?
> I think you're right, the elements are in place. For the "right"
> permissions you can do "ps aux | grep nginx" and take a look at the user
> column. There should be one master process owned by root and a couple of
> workers. On debian they're run as user "www-data", don't know about
> gentoo. Anyway the served files need to be either owned by that user or
When I run "ps aux | grep nginx" I get:
root 19013 0.0 0.0 30884 740 ? Ss 10:43 0:00 nginx:
master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx 19014 0.0 0.0 31316 3532 ? S 10:43 0:00 nginx:
worker process
root 19036 0.0 0.0 10756 2124 pts/1 S+ 10:46 0:00 grep
--colour=auto nginx
I believe I read somewhere that these files/folders need to be owned by
user nginx, so that's the way I told webapp-config to do the installation.
When, per the Gentoo wiki item on nginx, I run "curl http://localhost"
here's the output I get:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<base href="http://localhost/">
<title></title>
<link rel="icon" href="skin_urlimg/favicon.ico"
type="image/x-icon">
<link rel="shortcut icon" href="skin_urlimg/favicon.ico"
type="image/x-icon">
<link rel="apple-touch-icon" href="skin_urlimg/apple-touch-icon.png"
/>
<link rel="apple-touch-icon" sizes="72x72"
href="skin_urlimg/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="114x114"
href="skin_urlimg/apple-touch-icon-114x114.png" />
<link type="application/opensearchdescription+xml" rel="search"
href="tv/opensearch?type=xml" title="MythTV">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<script type="text/javascript">
<!--
//
-----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
//
-----------------------------------------------------------------------------
// -->
</script>
<link rel="stylesheet" type="text/css"
href="js/prototip/prototip.css">
<link rel="stylesheet" type="text/css" href="js/dialog/dialog.css">
<link rel="stylesheet" type="text/css" href="skin_url/style.css">
<link rel="stylesheet" type="text/css" href="skin_url/header.css">
<link rel="stylesheet" type="text/css" href="skin_url/menus.css">
<link rel="stylesheet" type="text/css"
href="skin_url/programming.css">
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript"
src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript"> jQuery.noConflict(); </script>
<script type="text/javascript" src="js/prototip/prototip.js"></script>
<script type="text/javascript" src="js/dialog/dialog.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/AC_OETags.js"></script>
<script type="text/javascript" src="js/table_sort.js"></script>
<script type="text/javascript">
<!--
//
-----------------------------------------------------------------------------
// - Setup variables for use with the recommend engines
//
-----------------------------------------------------------------------------
var recommend_enabled = <br />
<b>Fatal error</b>: Call to a member function query_col() on a non-object
in <b>/var/www/localhost/htdocs/mythweb/includes/utils.php</b> on line
<b>59<
/b><br />
Am I seeing an issue here such is addressed in this thread
http://lists.mythtv.org/pipermail/mythtv-users/2013-December/357920.html ?
Thanks
More information about the mythtv-users
mailing list