Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/288343-newbie-php-help/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/288343-newbie-php-help/#findComment-1478774
Share on other sites

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.