Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Changing folder location of OS Ticket

I am moving the website from /var/www/ to /var/www/support/

I did this and when I went to myurl.com/support/ it showed the setup page.

What do I have to reconfigure in order to move my website into another folder?

Comments

  • I don't have a 1.6ST installation anymore, but from what I remember the only settings that you might have to change would be the site url in Admin panel -> Settings -> Helpdesk URL. I moved 1.6ST many times and never encountered anything like you are suggesting. Are you sure that your copying over the config file?
  • ntozier;40738 said:
    I don't have a 1.6ST installation anymore, but from what I remember the only settings that you might have to change would be the site url in Admin panel -> Settings -> Helpdesk URL. I moved 1.6ST many times and never encountered anything like you are suggesting. Are you sure that your copying over the config file?
    Where is the config file located?

    Let me clarify one thing... I am moving all website files from /var/www to /var/www/support... BUT I am configuring Apache to point the root of the website to /var/www/support. So the URL of the website will not change. From the outside, there is no change. The only change is that I am moving the website up to a new folder.

    I am doing this because I have three websites on this server:
    matrix.website.org points to /var/www/matrix
    wiki.website.org points to /var/www/wiki
    support.website.org points to /var/www

    I want support to be moved to /var/www/support so that all three websites are in their own respective folders.

    I point apache like this:

    ServerName support.website.org
    ServerAlias support.website.com
    DocumentRoot /var/www/



    ServerName wiki.website.org
    ServerAlias wiki.website.com
    DocumentRoot /var/www/wiki/



    ServerName matrix.website.org
    ServerAlias matrix.website.com
    DocumentRoot /var/www/matrix/


    So I will be changing the Apache conf to:


    ServerName support.website.org
    ServerAlias support.website.com
    DocumentRoot /var/www/support
  • Here is the inside of my ost-config.php


    <?php
    /*********************************************************************
    ost-config.php

    Static osTicket configuration file. Mainly useful for mysql login info.
    Created during installation process and shouldn't change even on upgrades.

    Peter Rotich <peter@osticket.com>
    Copyright (c) 2006-2010 osTicket
    http://www.osticket.com

    Released under the GNU General Public License WITHOUT ANY WARRANTY.
    See LICENSE.TXT for details.

    vim: expandtab sw=4 ts=4 sts=4:
    $Id: $
    **********************************************************************/

    #Disable direct access.
    if(!strcasecmp(basename($_SERVER['SCRIPT_NAME']),basename(__FILE__)) || !defined('ROOT_PATH')) die('kwaheri rafiki!');

    #Install flag
    define('OSTINSTALLED',TRUE);
    if(OSTINSTALLED!=TRUE){
    if(!file_exists(ROOT_PATH.'setup/install.php')) die('Error: Contact system admin.'); //Something is really wrong!
    //Invoke the installer.
    header('Location: '.ROOT_PATH.'setup/install.php');
    exit;
    }

    # Encrypt/Decrypt secret key - randomly generated during installation.
    define('SECRET_SALT','REMOVED-BY-MODERATOR');

    #Default admin email. Used only on db connection issues and related alerts.
    define('ADMIN_EMAIL','support.website@REMOVED-BY-MODERATOR');

    #Mysql Login info
    define('DBTYPE','mysql');
    define('DBHOST','localhost');
    define('DBNAME','REMOVED-BY-MODERATOR');
    define('DBUSER','REMOVED-BY-MODERATOR');
    define('DBPASS',REMOVED-BY-MODERATOR');

    #Table prefix
    define('TABLE_PREFIX','ost_');

    ?>
  • You should just need to change the Apache config.
    shut down Apache.
    Move the files to the new location.
    Re-start Apache.
  • Thanks guys i will look into it and get back to you.
    Cheers
Sign In or Register to comment.