Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

Having copied the software over and made changes to the files as dictated by the install instructions I am getting the following error:

 

Warning: file_get_contents(http://ex.plode.us/mod/searchping/elggping.php?pingtype=registernew&url=https%3A%2F%2Fextranet.qmgs.walsall.sch.uk%2Felgg%2F&profileurl=https%3A%2F%2Fextranet.qmgs.walsall.sch.uk%2Felgg%2F%25username%25&name=+-+E-Portfolios&rssurl=https%3A%2F%2Fintranet.aschool.anlea.sch.uk%2Felgg%2F%25username%25%2Frss&foafurl=https%3A%2F%2Fintranet.aschool.anlea.sch.uk%2Felgg%2F%25username%25%2Ffoaf) [function.file-get-contents]: failed to open stream: Connection refused in /usr/export/home/www/elgg/mod/explodeping/lib.php on line 33

 

Fatal error: Call to undefined function mb_detect_encoding() in /usr/export/home/www/elgg/lib/php-getttext/gettext.inc on line 101

 

 

 

 

If needs be I can post the .htaccess and config.php files?

 

 

Wes

Posted

Not that I know too?

 

I setup the db just now and then copied the files from the zip folder changed the files .htaccess and config.php to how they said in the instructions now I'm stuck?

 

 

Wes

Posted

NetBSD 3.1_STABLE

 

PHP Version 5.2.1

 

Elgg 0.8

 

 

Config.php:

 

<?php

// ELGG system configuration parameters.

 

// System constants: set values as necessary

// Supply your values within the second set of speech marks in the pair

// i.e., define("system constant name", "your value");

 

// Name of the site (eg Elgg, Apcala, University of Bogton's Social Network, etc)

 

$CFG->sitename = 'My Elgg site';

 

// A tagline for your site (eg 'Social network for Bogton')

 

$CFG->tagline = 'A social networking site';

 

// External URL to the site (eg http://elgg.bogton.edu/)

// NB: **MUST** have a final slash at the end

 

$CFG->wwwroot = 'https://extranet.ourschool.ourlea.sch.uk/elgg/';

 

// Physical path to the files (eg /home/elggserver/httpdocs/)

// NB: **MUST** have a final slash at the end

 

$CFG->dirroot = '/usr/export/home/www/elgg/';

 

// Email address of the system (eg [email protected])

 

$CFG->sysadminemail = '';

 

// Account 1, with username news, is initially administrator. This

// will be its initial password - UPON INSTALLATION, YOU SHOULD LOG

// IN AS NEWS AND CHANGE THE PASSWORD IMMEDIATELY.

 

$CFG->newsinitialpassword = 'password';

 

// Country code to set language to if you have gettext installed

// To include new languages, save their compiled .mo gettext

// file into languages/country code/LC_MESSAGES/

// (the file within this folder must be called elgg.mo)

// See https://launchpad.net/elgg/trunk/+pots/elgg for more

// translations.

 

$CFG->defaultlocale = 'en_GB';

 

// The following should be set to false if you don't want the

// general public to be able to register accounts with your

// Elgg site.

 

$CFG->publicreg = true;

 

// The following should be set to false if you don't want users

// to be able to invite new users into the system.

 

$CFG->publicinvite = true;

 

// Set this to a positive number to cap the number of users in your

// installation, for example if you're testing and only have a certain number

// of resources available to you.

 

$CFG->maxusers = 0;

 

// Set this to 1 to enable a walled garden - i.e., if you're not logged in,

// all you can see is the login page.

 

$CFG->walledgarden = 0;

 

// If the following string is non-blank, it must be present within

// the domains of email addresses of people signing up. For example,

// if you set it to yourinstitution.edu, a user with the email address

// [email protected] will be able to sign up.

// This rule will hold true for both public registrations and invitations

// from within the system (if either are enabled).

 

$CFG->emailfilter = "";

 

// The following sets the default access level within the Elgg

// site. Possible values include:

// PUBLIC :: available to everyone

// LOGGED_IN :: available to logged in users only

// PRIVATE :: available to the user only

 

$CFG->default_access = "LOGGED_IN";

 

// Set the following to true to force users to log in before they can post comments, overriding per-user option

// Handy sledgehammer-to-crack-a-nut to protect against comment spam.

$CFG->disable_publiccomments = false;

 

// dataroot. this is where uploaded files will go (and sessions for now)

// This should be OUTSIDE your wwwroot.

// NB: **MUST** have a final slash at the end

 

$CFG->dataroot = '/usr/export/home/data/';

 

// You may change these values to something else but you must ensure that

// the user the web server process runs as is able to read and write under

// these permissions.

//$CFG->directorypermissions = 0777;

//$CFG->filepermissions = 0666;

 

$CFG->dbtype = 'mysql'; // for now

$CFG->dbhost = 'localhost';

$CFG->dbuser = 'elgg1';

$CFG->dbpass = 'elgg1';

$CFG->dbname = 'elgg1';

$CFG->dbpersist = false;

 

// The following will assume all your database tables have this value at the start

// of their names. If you're upgrading from an earlier version of Elgg, you might

// need to set this to $CFG->prefix = '';

 

$CFG->prefix = 'elgg';

 

// performance and debugging

// Uncomment this to get sql errors sent to the webserver error log.

// $CFG->dblogerror = true;

 

// verbosity of PHP error message logging.

// set this to 2047 to get adodb error handling.

 

//$CFG->debug = 0; // don't log *any* error messages. previously this was the (unhelpful) default.

$CFG->debug = 7; // only basic errors. for production systems. equivalent to php (E_ERROR | E_WARNING | E_PARSE).

//$CFG->debug = 2047; // errors and notices. for development systems/debugging. equivalent to php E_ALL.

 

// Number of days to keep incoming RSS feed entries for before deleting them.

// A value of 0 disables automatic deletion.

 

$CFG->rsspostsmaxage = 0;

 

// Set this to 'admin' to only allow administrators to create new communities.

// You can set this to other user flags if you're told to by a plugin.

 

$CFG->community_create_flag = "";

 

// Username and password for the admin panel at /_elggadmin/

// To use the admin panel, these can't be left blank!

 

$CFG->adminuser = "";

$CFG->adminpassword = "";

 

//

// Capture performance profiling data

// define('ELGG_PERF' , true);

//

// Capture additional data from DB

// define('ELGG_PERFDB' , true);

//

// Print to log (for passive profiling of production servers)

// define('ELGG_PERFTOLOG' , true);

//

// Print to footer (works with the default theme)

// define('ELGG_PERFTOFOOT', true);

//

// EMAIL HANDLING

// $CFG->smtphosts= ''; // empty (sendmail), qmail (qmail) or hosts

// $CFG->smtpuser = ''; // if using smtphosts, optional smtpuser & smtppass

// $CFG->smtppass = '';

// $CFG->noreplyaddress = ''; // this will default to noreply@hostname (from wwwroot)

 

// CLAMAV HANDLING

//$CFG->runclamonupload = true;

//$CFG->quarantinedir = '/somewhere/the/webserver/can/write/to';

//$CFG->clamfailureonupload = 'actlikevirus'; // OR 'donothing';

//$CFG->pathtoclam = '/usr/bin/clamscan'; // OR '/usr/bin/clamdscan';

 

// TEMPLATES HANDLING

//$CFG->disable_usertemplates = true; // users can only choose from available templates

//$CFG->disable_templatechanging = true; // users can't change their template at all

//Templates root defaults to /mod/template/templates; if you change this, you will need

//to move or copy /mod/template/templates/Default_Template/ to the new location

//$CFG->templatesroot = '/some/path/'; // use on-disk templates instead of DB templates

 

//Template file handing is not currently recommended.

//$CFG->templatestore = 'db'; // 'db' (default) or 'files' (requires $CFG->templatesroot to be set)

 

// PROFILE LOCATION

//\$CFG->profilelocation = '$PARSEDCFG->templatelocation';

 

// set up some LMS hosts.

// --------------------------------------------------

// This array is KEYED on installid - the lms clients should identify themselves with this installid

// Token is required and should be shared with the lms client.

// Baseurl is required and will be used to link back to the lms.

// Name is optional and will be used to display a user friendly name. The institution name is a good choice.

// If this is not given, installid will be used instead.

// Confirmurl is optional (pings back confirmation of requests for signup and authentication.)

// Moodle's confirm url is http://yourmoodlehost.com/blocks/eportfolio/confirm.php

// But not all lms systems will implement this necessarily.

// Network address is optional (performs further checking on requests from the lms) & can be three different formats:

// A full exact address like 192.168.0.1

// A partial address like 192.168

// CIDR notation, such as 231.54.211.0/20

//

// $CFG->lmshosts = array('installid' => array('token' => 'sharedsecret', 'networkaddress' => 'xxx.xxx.xxx.xxx','confirmurl' => 'http://thelms.com/something.php', 'baseurl' => 'http://thelms.com', 'name' => 'Something Friendly'));

//

// Note that if you are going to allow file transfers between your lms and elgg using scp

// you will need to obtain the .pub part of an ssh key that the lms has been set up to use,

// and add it to the ~/.ssh/authorized_keys file for the user on this machine they need to connect to,

// and provide the lms with the username for that user.

// This user needs write access to {$CFG->dataroot}lms/incoming/ as that is where the incoming files will end up.

 

 

// For SSL feed *reading* support, Snoopy needs to know where the curl executable is.

// To disable, or if curl is not available (e.g. on Windows), set to false

//$CFG->curlpath = "/usr/bin/curl";

$CFG->curlpath = false;

 

// Whether to prevent users from changing their passwords.

// For use with an external authentication system that doesn't look at the elgg user's password.

// You'll probably want to disable registration and invites too.

$CFG->disable_passwordchanging = false;

 

// Some other $CFG variables found in codebase.

// They may or may not be config options. Some are just used for holding global data.

 

// $CFG->admin

// $CFG->allowobjectembed // boolean - whether to allow and tags through input-cleaning

// $CFG->auth // string - which auth plugin to use

// $CFG->cachetext

// $CFG->currenttextiscacheable

// $CFG->dbsessions

// $CFG->detect_unchecked_vars

// $CFG->filterall

// $CFG->framename

// $CFG->handlebounces // in commented-out code

// $CFG->ignoresesskey // in commented-out code

// $CFG->logsql

// $CFG->maxbytes

// $CFG->openid_comments_allowed

// $CFG->opentogoogle

// $CFG->pathtodu

// $CFG->perfdebug

// $CFG->pixpath

// $CFG->plugins->editor

// $CFG->plugins->tinymce

// $CFG->release

// $CFG->respectsessionsettings

// $CFG->secureforms

// $CFG->session_error_counter

// $CFG->sessioncookie

// $CFG->sessiontimeout

// $CFG->templatedir

// $CFG->tracksessionip

// $CFG->unzip

// $CFG->userlocale

// $CFG->version

// $CFG->zip

 

?>

 

 

 

Wes

Posted

has php been compiled with mbstring ?

 

#php -m | grep mbstring

 

As for the first error try and remove the expoldeping folder from mods. Put it somewhere outside the mods folder

Posted

Nothing comes up when php -m | grep mbstring is typed in.

 

I'll just make sure its not compiled and let you know!

 

....Nope not installed is there a way of just removing this out of the commands?

 

I removed that folder and that has removed the warning thanks!

 

 

Wes

Posted

You need to have php compiled with mbstring.

 

--enable-mbstring as an option if building from source.

 

The explodeping thing is that your network is not allowing the module to connect to the outside

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...