markwtaylor Posted May 8, 2014 Share Posted May 8, 2014 I downloaded a php application and am trying to get it to work, but cannot. First, the background: - I have a site that it working on this server, using the same MYSQL database as I will be using for this new application, so I know that MYSQL & php are both working fine - I am trying to install this new application in a subdirectory so as to keep it separate from my current production site - so, the current site is under public and I am trying to run this one under public/rvinventory I installed all of the new site files and directories into the public/rvinventory path and modified the MYSQL login credentials. The index.php is: <?php define("_LIBPATH","./lib/");require_once _LIBPATH . "site.php"; $site = new CSite("./site.xml",true);$site->Run(); ?> When I run this index, I get the HTTP 500 error. I know that I have access to this, as I copied my production site index.html file to this directory and can access it. What am I missing? Can I not run this additional site from within my current site? Quote Link to comment https://forums.phpfreaks.com/topic/288343-newbie-php-help/ Share on other sites More sharing options...
Ch0cu3r Posted May 8, 2014 Share Posted May 8, 2014 I get the HTTP 500 error. Check your server error logs and check for any errors to find the cause. Quote Link to comment https://forums.phpfreaks.com/topic/288343-newbie-php-help/#findComment-1478771 Share on other sites More sharing options...
markwtaylor Posted May 8, 2014 Author Share Posted May 8, 2014 (edited) Sorry, me=newbie. This is a hosted server at EarthLink. Can I access those logs? Any suggestions on where they might reside? Edited May 8, 2014 by markwtaylor Quote Link to comment https://forums.phpfreaks.com/topic/288343-newbie-php-help/#findComment-1478773 Share on other sites More sharing options...
Ch0cu3r Posted May 8, 2014 Share Posted May 8, 2014 Should be able to access it from your sites control panel? If not contact your web host for support. Alternatively try adding ini_set('display_errors',1); error_reporting(E_ALL); at the top of index.php (after the opening <?php tag) and to try an force the error message(s) to appear. Quote Link to comment https://forums.phpfreaks.com/topic/288343-newbie-php-help/#findComment-1478774 Share on other sites More sharing options...
markwtaylor Posted May 8, 2014 Author Share Posted May 8, 2014 (edited) EXCELLENT! This code to display errors gave me exactly what I needed. Now to get the error(s) fixed! Thank you SO much, Ch0cu3r Edited May 8, 2014 by markwtaylor Quote Link to comment https://forums.phpfreaks.com/topic/288343-newbie-php-help/#findComment-1478811 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.