1
TheEar
Installing on a sub domain
  • 2004/8/22 21:55

  • TheEar

  • Just popping in

  • Posts: 10

  • Since: 2004/8/22


Using XOOPS Version 2.0.7 The auto detected Physical and Virtual Paths do not seem to work.

Failed writing constant /home/www/xxxxxx.xxxxxxxxx.com.
Failed writing constant http://xxxxxx.xxxxxxxxx.com .
X being my site

Installing 2.0.7 on a domain works perfectly without problem.

Can XOOPS be installed on a SubDomain ?
If so is there something special or extra i should be doing ?
Thanks for any help !

2
kiwiguy
Re: Installing on a sub domain
  • 2004/8/22 22:41

  • kiwiguy

  • Friend of XOOPS

  • Posts: 295

  • Since: 2004/4/19


I have never had a problem installing XOOPS into a subdomain the virtual and physical path should be automatically picked up during installation.

Your virtual path should be: http://www.yoursite.com
Your physical path should be: /home/wwww/folder name of your site

Check that you have connectivity to your database and that your username and database name details are corrext make sure these folders are chmodded 777

mainfile.php
templates
cache
uploads
class

If you have done this then you should have no problems.

kiwiguy

3
TheEar
Re: Installing on a sub domain
  • 2004/8/22 23:33

  • TheEar

  • Just popping in

  • Posts: 10

  • Since: 2004/8/22


I did get the 4 green lights (below) however mainfile.php and the files in the folders were not set at 777

Directory uploads/ is writable.
Directory cache/ is writable.
Directory templates_c/ is writable.
File mainfile.php is writable

After changing those to 777 i still recieve the same errors.(below)


here are the results 1 green light 13 red same as before

File ../mainfile.php overwritten by ../mainfile.dist.php.
Failed writing constant /home/www/xxxxxx.xxxxxxxxx.com/.
Failed writing constant http://xxxxxx.xxxxxxxxx.com.
Failed writing constant mysql.
Failed writing constant xoops.
Failed writing constant xxxxxxxxx.com.
Failed writing constant xxxxxx_xoops.
Failed writing constant **********.
Failed writing constant xxxxxx_xoops.
Failed writing constant 0.
Failed writing constant 1.
Failed writing constant 2.
Failed writing constant 3.
Failed writing constant 0.


There is a conflict between the detected physical path (/home/www/xxxxxx.xxxxxxxxx.com) and the one you input.
Physical path must be a directory.
Virtual path is not a valid URL

My virtual path is http://xxxxxx.xxxxxxxxx.com gives you the index page and works when testing a regular HTML site so it should be a valid url.

I am unsure how to add a username to my database. making it thru my hosts Control panel adds the username to the database name with a _ (johndoe_database) and gives me the information for using the database. I believe i have input that information correctly.

any clues?

4
TheEar
Re: Installing on a sub domain
  • 2004/8/23 0:54

  • TheEar

  • Just popping in

  • Posts: 10

  • Since: 2004/8/22


Quote:
Check that you have connectivity to your database


Making a PHP file with only this info in it

If that is what you mean. it gives me a page with PHP info on it.

If you mean can i log into the database with a name and password. I believe i can, Clicking on it brings me to a MyPHPadmin login i put in the database user and pass and it looks like it logs in doesnt give a error anyway.

5
carnuke
Re: Installing on a sub domain
  • 2004/8/23 9:33

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


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');

6
TheEar
Re: Installing on a sub domain
  • 2004/8/23 23:30

  • TheEar

  • Just popping in

  • Posts: 10

  • Since: 2004/8/22


Thanks for all the help everyone. I believe i found the problem. The host i am using wants permissions for these

mainfile.php
templates
cache
uploads
class

set to 755 instead of 777.

they said all PHP files must be set to 644 or 755.

So i am gonna try that and hopefully it solves the problem

7
TheEar
Re: Installing on a sub domain
  • 2004/8/24 2:14

  • TheEar

  • Just popping in

  • Posts: 10

  • Since: 2004/8/22


Well i got it to work the problem was that files were in the wrong locations and some folders were empty. Not sure if this was my error, FTP error or what the deal was but its fixed.
Thanks again for the help

Login

Who's Online

373 user(s) are online (324 user(s) are browsing Support Forums)


Members: 0


Guests: 373


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits