here's a direct print of my mainfile.php (details changed of course. ) My testite here IS in a sub directory of the root like yours
In this case my sub-dir is aclled unity and my-account-name is the one my host issued to me on signup. dir-name is the one i created to connect with xoops. Notice how the directory name is actually a conbination of your account name also!!!Go to your mainfile.php on the server and enter your details directly. save the file and Visit your home page.
---------------------------
// include "xoops_shorturls.php";//
if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
define("XOOPS_MAINFILE_INCLUDED",1);
// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_ROOT_PATH', '/home/my-account-name/public_html/unity');
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_URL', 'http://lunarhouse.com/unity');
// Database
// Choose the database to be used
define('XOOPS_DB_TYPE', 'mysql');
// Table Prefix
// This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'.
define('XOOPS_DB_PREFIX', 'xoops');
// Database Hostname
// Hostname of the database server. If you are unsure, 'localhost' works in most cases.
define('XOOPS_DB_HOST', 'localhost');
// Database Username
// Your database user account on the host
define('XOOPS_DB_USER', 'my-account-name');
// Database Password
// Password for your database user account
define('XOOPS_DB_PASS', 'my-password');
// Database Name
// The name of database on the host. The installer will attempt to create the database if not exist
define('XOOPS_DB_NAME', 'my-account-name_dir-name');