Jump to content

Help with Understanding Php Server file thing for PhpFox


Recommended Posts

Hi, i'm installing Phpfox on my website and i've got to set up this php file but i don't quite understand it, if someone could tell me what i put in these fields would be greatly appreciated, thanks for just looking :)

 

<?php

global $_CONF;

 

$_CONF = array();

 

$_CONF['db']['host'] = '********';

$_CONF['db']['user'] = '********';

$_CONF['db']['pass'] = '********';

$_CONF['db']['name'] = '********';

 

$_CONF['path'] = dirname(dirname(dirname(__FILE__))).'/';

 

$_CONF['domain']          = '************';

$_CONF['host']            = $_CONF['domain'].'/';

$_CONF['http']            = '';

$_CONF['https']          = '';

$_CONF['rewrite_engine']  = true;

$_CONF['path_translated'] = true;

?>

 

 

Thankyou.

<?php

global $_CONF;

 

$_CONF = array();

 

$_CONF['db']['host'] = 'db host (i know)';

$_CONF['db']['user'] = 'db user (i know)';

$_CONF['db']['pass'] = 'Adam';

$_CONF['db']['name'] = 'myamazingpassword';

 

$_CONF['path'] = dirname(dirname(dirname(__FILE__))).'/';    <-- I DONT KNOW THIS

 

$_CONF['domain']          = 'WWW.MYWEBSITE.COM';

$_CONF['host']            = $_CONF['domain'].'/';                        <--    ??????????

$_CONF['http']            = 'WWW.MYWEBSITE.COM';

$_CONF['https']          = 'WWW.MYWEBSITE.COM';

$_CONF['rewrite_engine']  = true;

$_CONF['path_translated'] = true;

?>

 

if you could tell me what that Path file is for that'd be swell :)

I'm sorry that im new.

Leave that line as is, it will automatically define the path. phpFox should come with some form of documentation which explains what each of the $_CONFIG settings do.

 

The settings you want to concentrate on are the ones starting with $_CONF['db'] and $_CONF['domain']. That's it.

 

Edit, beaten to it ;)

hey thankyou for your replys.

 

<?php

global $_CONF;

 

$_CONF = array();

 

$_CONF['db']['host'] = '

p41mysql133.secureserver.net';

$_CONF['db']['user'] = 'myusername';

$_CONF['db']['pass'] = 'mypassword';

$_CONF['db']['name'] = 'databasename';

 

$_CONF['path'] = dirname(dirname(dirname(__FILE__))).'/';

 

$_CONF['domain']          = 'www.poundpup.net/muse';

$_CONF['host']            = $_CONF['www.poundpup.net/muse/'].'/';

$_CONF['http']            = 'www.poundpup.net/muse/';

$_CONF['https']          = 'www.poundpup.net/muse/';

$_CONF['rewrite_engine']  = true;

$_CONF['path_translated'] = true;

?>

 

 

 

before, i was told that line 11 of this php file was the error and now that i have entered this i only get a blank page.

i changed it so that the bottom of the php file is:

 

$_CONF['domain']          = 'www.poundpup.net/muse';

$_CONF['host']            = $_CONF['domain'].'/';

$_CONF['http']            = 'www.poundpup.net/muse/';

$_CONF['https']          = 'www.poundpup.net/muse/';

$_CONF['rewrite_engine']  = true;

$_CONF['path_translated'] = true;

?>

 

I'm sorry to be a trouble but i still get a blank screen :(

hey, i had a good search round the support area,

 

i found this, incase other people are having the same problem.

 

<?php

global $_CONF;

$_CONF = array();

$_CONF['db']['host'] = 'localhost or your mysql address';

$_CONF['db']['user'] = 'username';

$_CONF['db']['pass'] = 'password';

$_CONF['db']['name'] = 'databasename';

$_CONF['path'] = dirname(dirname(dirname(__FILE__))).'/';

$_CONF['domain'] = 'domainname.com';

$_CONF['host'] = $_CONF['domain'].'/';

$_CONF['http'] = 'http://';

$_CONF['https'] = 'http://';

$_CONF['rewrite_engine'] = true; (or whatever you currently use)

$_CONF['path_translated'] = true;

?>

 

 

that's how you're supposed to do it :)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.