Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules

Search

Donate to XOOPS!

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Git Google GUI hacks instant-zero jQuery module mygalleries news Nordic Olédrion oxygen PageRank PHP rmcommon security SEO simple-XOOPS Smarty sport tag Theme tutorial wiki WOX xoops XoopsEngine ZendFramework

New Users

Registering user

# 133946

HamptonUdolf

Welcome to XOOPS!
[Main Page]

DevWiki SharedXoopsForUser

From XOOPS Web Application System

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Category: Development

Let's say that you have uploaded all xoops files to /var/html/www, and want all other users to share these files.

First, for each of the virtual domains, create mainfile.php in which following constants are defined: XOOPS_CACHE_PATH, XOOPS_UPLOAD_PATH, XOOPS_THEME_PATH", XOOPS_COMPILE_PATH, XOOPS_THEME_URL, XOOPS_UPLOAD_URL

For example, mainfile.php of 'hogehoge' user will be something like below:

    define("XOOPS_CACHE_PATH", "/home/hogehoge/xoops/cache");
    define("XOOPS_UPLOAD_PATH", "/home/hogehoge/public_html/uploads");
    define("XOOPS_THEME_PATH", "/home/hogehoge/public_html/themes");
    define("XOOPS_COMPILE_PATH", "/home/hogehoge/xoops/templates_c");
    define("XOOPS_URL", "http://www.hogehoge.com/xoops");
    define("XOOPS_THEME_URL", "http://www.hogehoge.com/themes");
    define("XOOPS_UPLOAD_URL", "http://www.hogehoge.com/uploads");
    define('XOOPS_DB_PREFIX', 'xoops');
    define('XOOPS_DB_USER', 'hogehoge_xoops');
    define('XOOPS_DB_PASS', 'hogehoge');
    define('XOOPS_DB_NAME', 'hogehoge_xoops');

and the directory structure of the user will be like below:

   /home/hogehoge/xoops/mainfile.php
   /home/hogehoge/xoops/cache/ (chmod 777)
   /home/hogehoge/xoops/templates_c/ (chmod 777)
   /home/hogehoge/public_html/uploads/ (chmod 777)
   /home/hogehoge/public_html/themes/

Next, create symlink between the user directory and the directory where xoops core files are uploaded

ln -s /var/html/www /home/homehome/public_html/xoops

The final step is to modify the /var/html/www/mainfile.php file so that it will read mainfile.php placed under the user directory. If you are running Apache you can use $_SERVER['DOCUMENT_ROOT'] to get the directory of the user.


Back to Main Page

Retrieved from "http://xoops.org/modules/mediawiki/index.php/DevWiki_SharedXoopsForUser"

This page has been accessed 2,876 times. This page was last modified 01:02, 5 November 2011. Content is available under XOOPS Web Application System.