pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Working ganglia-webfrontend installation?



On 8/27/18 11:34 AM, Jason Bacon wrote:

Anyone out there have www/ganglia-webfrontend working with pkgsrc apache?

I'm getting the error below and I'm not seeing anything wrong with the configuration.

The web server works fine otherwise.

Thanks,

    JB

==========

[root@login.finch ganglia-webfrontend] 548: dir /usr/pkg/var/db/ganglia/dwoo/
total 0
0 drwxr-xr-x. 4 www www 35 Aug 27 11:14 .
0 drwxr-xr-x. 4 www www 30 Aug 27 11:14 ..
0 drwxr-xr-x. 2 www www  6 Aug 27 11:14 cache
0 drwxr-xr-x. 2 www www  6 Aug 27 11:14 compiled
[root@login.finch ganglia-webfrontend] 549: ps aux|grep http
root     28223  0.0  0.0  74844  2232 ?        Ss   11:15   0:00 /usr/pkg/sbin/httpd -k start www      28224  0.0  0.0 496976  4420 ?        Sl   11:15   0:00 /usr/pkg/sbin/httpd -k start www      28225  0.0  0.0 562512  4436 ?        Sl   11:15   0:00 /usr/pkg/sbin/httpd -k start www      28226  0.0  0.0 431440  4156 ?        Sl   11:15   0:00 /usr/pkg/sbin/httpd -k start root     28979  0.0  0.0 112704   956 pts/0    S+   11:25   0:00 grep --color=auto http

==========


       Sorry, you do not have access to this resource.

"); } try { $dwoo = new Dwoo($conf['dwoo_compiled_dir'], $conf['dwoo_cache_dir']); } catch (Exception $e) { print "


       There was an error initializing the Dwoo PHP Templating Engine:
       ". $e->getMessage() . "

       The compile directory should be owned and writable by the apache
       user.

"; exit; } # Useful for addons. $GHOME = "."; if ($context == "meta" or $context == "control") { $title = "$self ${conf['meta_designator']} Report"; include_once "./header.php"; include_once "./meta_view.php"; } else if ($context == "tree") { $title = "$self ${conf['meta_designator']} Tree"; include_once "./header.php"; include_once "./grid_tree.php"; } else if ($context == "cluster" or $context == "cluster-summary") { if (preg_match('/cluster/i', $clustername)) $title = "$clustername Report"; else $title = "$clustername Cluster Report"; include_once "./header.php"; include_once "./cluster_view.php"; } else if ($context == "physical") { $title = "$clustername Physical View"; include_once "./header.php"; include_once "./physical_view.php"; } else if ($context == "node") { $title = "$hostname Node View"; include_once "./header.php"; include_once "./show_node.php"; } else if ($context == "host") { $title = "$hostname Host Report"; include_once "./header.php"; include_once "./host_view.php"; } else if ($context == "views") { $title = "$viewname view"; include_once "./header.php"; include_once "./views_view.php"; } else if ($context == "compare_hosts") { $title = "Compare Hosts"; include_once "./header.php"; include_once "./compare_hosts.php"; } else if ($context == "decompose_graph") { $title = "Decompose graph"; include_once "./header.php"; include_once "./decompose_graph.php"; } else { $title = "Unknown Context"; print "Unknown Context Error: Have you specified a host but not a cluster?."; } include_once "./footer.php"; ?>

I discovered that my http.conf was actually not loading php7_mod, although the server displayed simple PHP files just fine and even supported simple debug code such as

<?php
$a="Hello";
print $1;
?>

With my limited knowledge of apache and php, I thought this meant my config was OK.

But after adding

    LoadModule php7_module lib/httpd/mod_php7.so

I got the following:

[root@login.finch php71] 586: apachectl -t
[Tue Aug 28 09:37:48.009689 2018] [php7:crit] [pid 11121:tid 47450741299968] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.
AH00013: Pre-configuration failed

Recompiling php71 and ap-php with the maintainer-zts option fixed it.

So the question now is, should maintainer-zts be enabled by default, or must everyone who wants PHP support build from source?

Since I'm building my own packages, I can work around this in my pbulk settings, but it may still be a problem for others.

Home | Main Index | Thread Index | Old Index