[Opensim-users] A grid statistics page
Shaun T. Erickson
ste at smxy.org
Sun Nov 2 04:37:23 UTC 2014
Okay, now I'm getting values and all table coordinates filled in. I had
to tell selinux to get out of the way, with this command:
setsebool -P httpd_can_network_connect on
-ste
On 11/2/14, 12:11 AM, Shaun T. Erickson wrote:
> I'm not sure why I'm getting a "permission denied".
>
> I put in a print statement to show me the value of $url, then tried to
> go to some of them in my browser. I get there fine and see an XML
> block with the various statistics in it. Why it doesn't like
> file_get_contents doing that, I don't know.
>
> -ste
>
> On 11/1/14, 11:56 PM, Shaun T. Erickson wrote:
>> Not so fast ...
>>
>> Before I get to pagination, I see there's something else that needs
>> fixing. About 50% of the values are missing and the other 50% are all
>> zero values.
>>
>> It seems I'm getting a 'permission denied' when this is run:
>>
>> $url = "http://$srv_host:$srv_port/monitorstats/$reg_uuid/";
>> $xml = file_get_contents ($url);
>>
>> Now to figure out why ...
>>
>> -ste
>>
>> On 11/1/14, 11:48 PM, Shaun T. Erickson wrote:
>>> It turns out that there was a php-mysqlnd rpm I could install in
>>> place of the php-mysql rpm I had installed. Once I did that, the
>>> code worked.
>>>
>>> Now, on to pagination. :)
>>>
>>> -ste
>>>
>>> On 11/1/14, 11:38 PM, Shaun T. Erickson wrote:
>>>> Jeff,
>>>>
>>>> I'm getting an error when I run it:
>>>>
>>>> PHP Fatal error: Call to undefined method
>>>> mysqli_result::fetch_all() in /var/www/html/stats/stats.php on line 43
>>>>
>>>> That would be this line:
>>>>
>>>> $result = $answ->fetch_all(MYSQLI_ASSOC);
>>>>
>>>> From perusing the web, it would seem my MySQL installation lacks
>>>> the mysqlnd driver, that this function relies upon.
>>>>
>>>> -ste
>>>>
>>>>
>>>> On 10/31/14, 11:43 PM, Jeff Kelley wrote:
>>>>> Let's build a nice grid overview like this one :
>>>>>
>>>>> http://www.pescadoo.net/tmp/gridstats.png
>>>> [SNIP]
More information about the Opensim-users
mailing list