Ad4m Posted March 19, 2008 Share Posted March 19, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/ Share on other sites More sharing options...
trq Posted March 19, 2008 Share Posted March 19, 2008 They look pretty self explanitory. Its asking for your database host, username, password, name as well as your domain name. Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/#findComment-496076 Share on other sites More sharing options...
Ad4m Posted March 19, 2008 Author Share Posted March 19, 2008 <?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. Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/#findComment-496086 Share on other sites More sharing options...
trq Posted March 19, 2008 Share Posted March 19, 2008 It is used to find the path to this file itself. From there, $_CONF['path'] would be used throughout the application as the applications root. Don't change it unless you know what your doing. Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/#findComment-496091 Share on other sites More sharing options...
wildteen88 Posted March 19, 2008 Share Posted March 19, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/#findComment-496097 Share on other sites More sharing options...
Ad4m Posted March 19, 2008 Author Share Posted March 19, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/#findComment-496112 Share on other sites More sharing options...
wildteen88 Posted March 19, 2008 Share Posted March 19, 2008 This line: $_CONF['host'] = $_CONF['www.poundpup.net/muse/'].'/'; Should be, you should not need to modify that line: $_CONF['host'] = $_CONF['domain'].'/'; Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/#findComment-496129 Share on other sites More sharing options...
Ad4m Posted March 19, 2008 Author Share Posted March 19, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/#findComment-496156 Share on other sites More sharing options...
Ad4m Posted March 19, 2008 Author Share Posted March 19, 2008 i tried editing it, but it's the same with a blank screen Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/#findComment-496205 Share on other sites More sharing options...
wildteen88 Posted March 20, 2008 Share Posted March 20, 2008 Have a read of phpfox support page. phpfox should come with a web based installer by going to yoursite.com/install/install.php the installer will configure phpfox for you. Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/#findComment-496651 Share on other sites More sharing options...
Ad4m Posted March 23, 2008 Author Share Posted March 23, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/#findComment-498928 Share on other sites More sharing options...
wildteen88 Posted March 23, 2008 Share Posted March 23, 2008 Thats what you had originally! ??? Quote Link to comment https://forums.phpfreaks.com/topic/96943-help-with-understanding-php-server-file-thing-for-phpfox/#findComment-498946 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.