trunker Posted May 23, 2008 Share Posted May 23, 2008 Hello, I am a PHP noob and am moving a website over to my godaddy deluxe account. I have created the database, imported the tables etc and I am getting a lot of errors which look like a document root problem. Here is the site I am moving (in working condition) http://www.flbiz4sale.com Here is where I am moving it to and eventually point my records to: http://www.paradiseprotech.com/flbiz My configure.php file looks like this <?php define('DIR_DOCUMENT_ROOT', $HTTP_SERVER_VARS['DOCUMENT_ROOT']); define('DIR_INCLUDES', DIR_DOCUMENT_ROOT . '/includes/'); define('DIR_SHARED', DIR_INCLUDES . 'shared/'); define('DIR_TEMPLATES', DIR_INCLUDES . 'templates/'); define('DIR_CLASSES', DIR_DOCUMENT_ROOT . '/classes/'); define('DIR_CONNECTION', DIR_DOCUMENT_ROOT . '/Connections/'); define('DIR_SCRIPT_LIB', DIR_DOCUMENT_ROOT . '/ScriptLibrary/'); define('DIR_IMAGE_PATH', DIR_DOCUMENT_ROOT . '/images/'); include(DIR_SHARED . 'configure_site.php'); include(DIR_SHARED . 'functions.php'); ?> Any help will be greatly appreciated! Thanks! Trunk Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/ Share on other sites More sharing options...
jonsjava Posted May 23, 2008 Share Posted May 23, 2008 um...does godaddy allow globals? Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548417 Share on other sites More sharing options...
trunker Posted May 23, 2008 Author Share Posted May 23, 2008 No I don't think so that I why its failing? How could I change it to work? Thanks! Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548423 Share on other sites More sharing options...
jonsjava Posted May 23, 2008 Share Posted May 23, 2008 either edit your php.ini, or add this in an .htaccess file: php_flag register_globals on Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548427 Share on other sites More sharing options...
trunker Posted May 23, 2008 Author Share Posted May 23, 2008 OK I tried adding that line to the .htaccess file and then I got an internal server error. I then edited the php.ini file and changed global from off to on. But still experiencing the same symptoms... ??? Thanks Jon for the quick replies. T. Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548434 Share on other sites More sharing options...
trunker Posted May 23, 2008 Author Share Posted May 23, 2008 Jon, what I did was change register_globals = off to register_globals = on Is this correct? Thanks! Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548438 Share on other sites More sharing options...
BlueSkyIS Posted May 23, 2008 Share Posted May 23, 2008 did you restart apache after changing php.ini? Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548439 Share on other sites More sharing options...
wildteen88 Posted May 23, 2008 Share Posted May 23, 2008 The errors has nothing to do with register_globals. This line: define('DIR_DOCUMENT_ROOT', $HTTP_SERVER_VARS['DOCUMENT_ROOT']); should be: define('DIR_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT'] . 'flbiz/'); Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548449 Share on other sites More sharing options...
trunker Posted May 23, 2008 Author Share Posted May 23, 2008 OK I tried that and did not get any change...I thought that would work though, it makes sense. Any other ideas? Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548471 Share on other sites More sharing options...
trunker Posted May 23, 2008 Author Share Posted May 23, 2008 To specify what I tried, I tried changing the define line as suggested by the super mod. Blue - Can I restart godaddy's server? ??? Thanks! Trunk Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548476 Share on other sites More sharing options...
trunker Posted May 23, 2008 Author Share Posted May 23, 2008 Solved! Wildteen88 was right, just forgot a "/" in front of flbiz...I caught it and fixed it. Many Thanks for all the time you have saved me. What a great resource! Trunk Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548482 Share on other sites More sharing options...
wildteen88 Posted May 23, 2008 Share Posted May 23, 2008 You might want to fix your html/css as your layout is screwed in firefox. Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548490 Share on other sites More sharing options...
trunker Posted May 23, 2008 Author Share Posted May 23, 2008 One more question. Take a look at the link locations of the buttons here: http://www.paradiseprotech.com/flbiz/ When I change the DNS records over to flbiz4sale.com - Will that change the paradiseprotech.com link? - I sure hope so! Thanks! Trunk Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548492 Share on other sites More sharing options...
trunker Posted May 23, 2008 Author Share Posted May 23, 2008 Yeah I noticed that. Not really sure how to fix that one. Any suggestions. Thanks! Trunk. Link to comment https://forums.phpfreaks.com/topic/106995-document-root-issue-sub-directory-on-godaddy/#findComment-548494 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.