posix_uname is disabled

Status
Not open for further replies.

Diez22

New Member
Messages
15
Reaction score
0
Points
0
On my site, http://fbcyouth.elementfx.com, I keep getting an error message when trying to load the main page of my MediaWiki. It says that posix_uname is disabled for security reasons. However, I have PHP v3. Why is this not working?
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Can you link to the error so we can debug?
 

Diez22

New Member
Messages
15
Reaction score
0
Points
0
The error is under the setup.php file, located at http://fbcyouth.elementfx.com/wiki/includes/setup.php. This link might give you a permission error, though, so if you go to the Ciroc server, its located at
Code:
/home/diez2/public_html/wiki/includes/setup.php

The part of the script you need is this:
Code:
$wgIP = false; # Load on demand
# Can't stub this one, it sets up $_GET and $_REQUEST in its constructor
$wgRequest = new WebRequest;
if ( function_exists( 'posix_uname' ) ) 
{       
$wguname = posix_uname();	
$wgNodeName = $wguname['nodename'];
} else {	
$wgNodeName = '';
}
 
Last edited:

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Posix_uname() is now enabled for versions 2 and 3 of PHP on all servers.

Reopen this if you have any more problems.
 
Last edited:
Status
Not open for further replies.
Top