Forums | Mahara Community
Support
/
[help] how to install mahara on byethost
02 October 2012, 22:11
i have register one host on byethost.com to make mahara social , so i have some error follow!!
- Mahara: Site Unavailable
please people tell me that , how to config file config.php to use most of the Mahara.as well as successfully installed
would like to thank everyone who came and helped me
my config.php
that not work , not comple install
<?php/** * Mahara: Electronic portfolio, weblog, resume builder and social networking * Copyright (C) 2006-2009 Catalyst IT Ltd and others; see: * http://wiki.mahara.org/Contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * @package mahara * @subpackage core * @author Catalyst IT Ltd * @license http://www.gnu.org/copyleft/gpl.html GNU GPL * @copyright (C) 2006-2009 Catalyst IT Ltd http://catalyst.net.nz * */
//// MAHARA CONFIGURATION FILE//// Copy this file from config-dist.php to config.php, and change the values in // it to suit your environment.//// Information about this file is available on the Mahara wiki:// http://wiki.mahara.org/System_Administrator's_Guide/Installing_Mahara#Create_Mahara's_config.php//
$cfg = new StdClass;
// database connection details// valid values for dbtype are 'postgres8' and 'mysql5'$cfg->dbtype = 'mysql5';$cfg->dbhost = '*****.byethost7.com';$cfg->dbport = null;$cfg->dbname = 'b7_*****_mahara';$cfg->dbuser = 'b7_*****';$cfg->dbpass = '*****';
// Note: database prefix is NOT required, you don't need to set one except if // you're installing Mahara into a database being shared with other // applications (this happens most often on shared hosting)$cfg->dbprefix = '';
// wwwroot - the web-visible path to your Mahara installation// Normally, this is automatically detected - if it doesn't work for you// then try specifying it here.// This value must end with a ///$cfg->wwwroot = 'http://*****.byethost7.com/';// If you want to serve all of your Mahara content via HTTPS, just set// $cfg->wwwroot to use HTTPS.//$cfg->wwwroot = 'http://*****.byethost7.com/';
// If you are using a proxy to force HTTPS connections, you will need to// enable the next line. If you have set this to true, ensure your wwwroot// is a HTTPS address.//$cfg->sslproxy = true;
// dataroot - uploaded files are stored here// This is a ABSOLUTE FILESYSTEM PATH. This is NOT a URL.// For example, valid paths are:// * /home/user/maharadata// * /var/lib/mahara// * c:\maharadata// INVALID paths:// * http://yoursite/files// * ~/files// * ../data//// This path must be writable by the webserver and outside document root (the // place where the Mahara files like index.php have been installed).// Mahara will NOT RUN if this is inside your document root, because// this is a big security hole.$cfg->dataroot = '*****.byethost7.com/maharadata';
// If set, this email address will be displayed in the error message if a form// submission is suspected of being spam. This reduces the frustration for the// user in the event of a false positive.$cfg->emailcontact = '';
// Set this to enable a secondary hash that is only present in the config file// $cfg->passwordsaltmain = 'some long random string here with lots of characters';
// When changing the salt (or disabling it), you will need to set the current salt as an alternate salt// There are up to 20 alternate salts// $cfg->passwordsaltalt1 = 'old salt value';
// closing php tag intentionally omitted to prevent whitespace issues
Edits to this post:
- Account deleted 02 October 2012, 23:40
02 October 2012, 23:54
Dinh,
I've removed your passwords and other identifying information from your post. You must now change your password for your database as the emails have already been sent out to people. In the future, be more careful please, otherwise you'll get hacked.
As for your configuration:
$cfg->dataroot needs to be the path in the operating system, not the path on the internet. If the directory your code is in is not the domain name and you don't know how to find out already, ask byethost.
Secondly, I visited the domain in your config and the full error given was:
Mahara requires permission to create database triggers, but is unable to do so. Please ensure that the trigger privilege has been granted to the appropriate user in your MySQL installation. For instructions on how to do this, see https://wiki.mahara.org/index.php/System_Administrator's_Guide/Granting_Trigger_Privilege
This means your database user needs to be able to make triggers. This is something that must be done in mysql. The url listed there, https://wiki.mahara.org/index.php/System_Administrator's_Guide/Granting_Trigger_Privilege tells you how to do this. Please try following the instructions.
Hope this helps, and please don't post your password on the internet!
Melissa
03 October 2012, 6:33
thank sir!
im think mahara not allow to install on bytehost.com , beacause im have do more way !
03 October 2012, 17:31
Hi Dinh Thong,
Are you Vietnamese?
If yes, you can write your question in Vietnamese and I am happy to answer it.
Son Nguyen
04 October 2012, 2:48
chào bạn Son Nguyen!
vậy bạn có thể chỉ mình cách cấu hình file config.php để cài được mahara trên byethost.com ko?? phải cài trên byethost không phải host khác , mình cảm ơn bạn nhiều nha!
04 October 2012, 10:32
Hi Melissa!
I've tried to grant triggering for my database in mysql following the command that you gave me, but I just recieved this message "#1045 - Access denied for user 'b1xx_xxxxxxxxx'@'%' (using password: YES)"
My command line "grant trigger on *.* to 'xxxxxxx'@'xxxxx.byethost14.com';"
Please correct me. Thank you! :)
04 October 2012, 4:28
A bad news for you, Thong. I try to install Mahara on byehost and i sure that: we can't install Mahara on the this host.
I solve very very problem and the final when mahara request Granting Trigger Privilege. I run SQL:
GRANT TRIGGER ON b10_11481852_mahara.* TO 'b10_11481852'@'localhost';
the phpMyadmin say me: " #1044 - Access denied for user 'b10_11481852'@'%' to database 'b10_11481852_mahara' "
ha ha, sorry guy!
Vietnamese: vậy đó bạn, thua 4 ly nước mía ức thật, hu hu
04 October 2012, 10:36
Chào 2 chú!! Làm ra chưa :-<. Mai là ngậm hành rồi :-<
04 October 2012, 14:09
kaka Dinh Thong, cai duoc chua, chi gium ae voi,
co gi pm wa yh nhe: hcc971
tui co viec gap o we, nen chua hoc bua nao ca
moi len TP
hic
ko bit gj luon, chuan bi nop bai roi, ma ko bjt gj ca
- «Previous page
- 1
- 2
- »Next page