Advertisement:

Author Topic: [ask] Installing Osclass in different directory folder  (Read 6793 times)

arzidan

  • Newbie
  • *
  • Posts: 15
[ask] Installing Osclass in different directory folder
« on: September 10, 2013, 06:19:54 pm »
Hi, I just downloaded the osclass script a week ago.
Is there anyone can help me how can I install osclass in different directory folder. e.g www.domain.com/osclass/
But home  page is www.domain.com
just like wordpress, we can put wordpress installation in different folder. Is it possible we do it with Osclass ?

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: [ask] Installing Osclass in different directory folder
« Reply #1 on: September 10, 2013, 07:06:49 pm »
Of course, any website. you have to complete only the domain with the correct directory (folder name where you wish to install).

yourdomain.com / folderName

Is that you looking to know?

arzidan

  • Newbie
  • *
  • Posts: 15
Re: [ask] Installing Osclass in different directory folder
« Reply #2 on: September 10, 2013, 07:16:14 pm »
Sorry for my english, I mean we put all osclass files in another directory www.domain.com/osclass
but the homepage is still www.domain.com
So people don't need to go to www.domain.com/osclass to access my website.
in wordpress, we put a modified files in root directory

index.php
.htaccess


can we do the same with Osclass ? Thanks

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: [ask] Installing Osclass in different directory folder
« Reply #3 on: September 10, 2013, 07:35:43 pm »
Well .. I am unaware of this method. Could only recommend a redirect on the index page to redirect the dominio.com to domini.com / folderOsclass.

But is not the solution you're looking for.

I do not use wordpress ...
Sure that someone knowledgeable here will help you.   :)

arzidan

  • Newbie
  • *
  • Posts: 15
Re: [ask] Installing Osclass in different directory folder
« Reply #4 on: September 10, 2013, 07:46:40 pm »
Thanks for the attention Fog, at least people will understand what I am asking now  :)

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [ask] Installing Osclass in different directory folder
« Reply #5 on: September 10, 2013, 08:16:58 pm »
You already have Osclass installed in your root folder? If so, you just need to move all Osclass files and folders to a new /osclass folder.

Then edit config.php in /osclass, locate line starting with:

define('REL_WEB_URL'...

Change it to point to the new osclass folder:

define('REL_WEB_URL', '/osclass/');

And below:

define('WEB_PATH', 'http://your.domain.com/osclass/');

Of course replace this "your.domain.com" with your real domain.

Regards

arzidan

  • Newbie
  • *
  • Posts: 15
Re: [ask] Installing Osclass in different directory folder
« Reply #6 on: September 10, 2013, 08:44:26 pm »
Thanks Teseo,

What do I have to do with empty root folder then?
should I create new file or duplicate any file from folder /osclass?

 :)

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [ask] Installing Osclass in different directory folder
« Reply #7 on: September 10, 2013, 09:01:49 pm »
Hmm... I assumed you wanted the root folder reserved for some other thing, but if not so, just create a generic, content-empty index.html (to avoid folder contents being listed when entering straight to the domain), or include there some kind of index with links pointing to your different software installations (Osclass, WordPress...). Also, your favicon, maybe an .htaccess to define some general rules... ???

Regards

arzidan

  • Newbie
  • *
  • Posts: 15
Re: [ask] Installing Osclass in different directory folder
« Reply #8 on: September 10, 2013, 09:19:17 pm »
Thanks again Teseo,

sorry if you didn't get it.
as a sample, my blog www.motohood.com
I put all wp istallation files and folders in different directory : www.motohood.com/site
but visitor only need to go to www.motohood.com to access my blog
I copied 2 files from my wp folder and modified them then put them in root folder

Can we do the same with Osclass installation?

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: [ask] Installing Osclass in different directory folder
« Reply #9 on: September 10, 2013, 09:31:05 pm »
 :) Sorry to intervene, but i'm curious. I think I get what you want, or else I'm confused. But how does one domain can display two different scripts at the same time?

arzidan

  • Newbie
  • *
  • Posts: 15
Re: [ask] Installing Osclass in different directory folder
« Reply #10 on: September 10, 2013, 10:06:58 pm »
there's only 1 script,WP. 2 files in root folder is to call wp installation in different folder.
the index,php in root folder only contains:

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./site/wp-blog-header.php');




arzidan

  • Newbie
  • *
  • Posts: 15

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: [ask] Installing Osclass in different directory folder
« Reply #12 on: September 10, 2013, 10:21:42 pm »
There was this sense that I was referring. From what I understand, this file that acts as index is not publicly visible, it works as a redirect from a directory to the main domain.(Moving a Root install to its own directory)

The question is: how does this file you will understand if the user wants to visit the blog, or if you want to visit osclass within the same domain in question. I judge that this is not possible without a menu with links that point to your visitor choose between the blog and osclass. As mentioned @teseo before.  :)

arzidan

  • Newbie
  • *
  • Posts: 15
Re: [ask] Installing Osclass in different directory folder
« Reply #13 on: September 10, 2013, 10:31:18 pm »
I will install only osclass in my another domain I recently bought. it's www.mogenesia.com but I don't want to install it in root folder. just like www.motohood.com

I am not good in php. I did it with my www.motohood.com by following instruction in
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
May be anyone in this forum can help me with this.

Thanks

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [ask] Installing Osclass in different directory folder
« Reply #14 on: September 10, 2013, 11:18:52 pm »
index.php in root folder:

Code: [Select]
<?php

// Redirect to Osclass folder/
header("Location: " '/osclass/index.php');

?>


Of course you'll still need to make the changes in config.php I spoke of above.

Regards