Koozali.org: home of the SME Server

uploads path for ozticket

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
uploads path for ozticket
« on: October 15, 2006, 05:06:38 PM »
I am trying to get ozticket to load attachments with tickets and so far I have been unable to, this is what I have done to install osticket, I may need some info on how to get attachments working

I downloaded the latest osticket from http://osticketcommunity.ath.cx/files/builds/osticket_community/ostcv-latest.tar.gz

http://www.osticketcommunity.ath.cx/


This is How I installed osticket

Created an ibay ticket

chown -R www.www /home/e-smith/files/ibays/ticket/html

unpack the files into osticket ibay

Chmod config.php 777

chmod 777 /home/e-smith/files/ibays/ticket/html/config.php

Create a database in MySQL

mysql -e "create database osticketdb"

mysql -e "grant all privileges on osticketdb.* to osticket@localhost identified by 'pickapassword'"

mysql -e "flush privileges"



http://mydomain.com/ticket/setup.php

and follow the setup procedures


chmod 644 /home/e-smith/files/ibays/ticket/html/config.php

chmod 755 /home/e-smith/files/ibays/ticket/html/

chmod 755 /home/e-smith/files/ibays/ticket/html/automail.pl

all php files 644

chmod 644 /home/e-smith/files/ibays/ticket/html/*.php

I would like to create an uploads dir for attachments, these are the commands I have tested so far

/sbin/e-smith/db accounts setprop sugar PHPBaseDir /home/e-smith/files/ibays/ticket/:/uploads


/sbin/e-smith/signal-event ibay-modify ticket

expand-template /etc/httpd/conf/httpd.conf

/etc/rc.d/init.d/httpd-admin restart

none of these have worked, is there anything else I could try

Thanks, Russell
.........

Offline JonB

  • *
  • 351
  • +0/-0
uploads path for ozticket
« Reply #1 on: October 16, 2006, 01:34:30 AM »
OsTicket uploads images temporarily into /tmp.

You need to do:

Code: [Select]
/sbin/e-smith/db accounts setprop ticket PHPBaseDir /home/e-smith/files/ibays/ticket/:/tmp

/sbin/e-smith/signal-event ibay-modify ticket


Jon
...

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
uploads path for ozticket
« Reply #2 on: October 16, 2006, 03:19:04 AM »
Thanks Jon, that did the trick

Russell
.........

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
uploads path for ozticket
« Reply #3 on: October 16, 2006, 06:05:48 AM »
Jon, do you know how to make the attachments available to all user by any chance.

I would like if someone was to create a ticket that they also could add an attachment as well if needed, currently only admin or logged on user can add attachments.

Thanks, Russell
.........

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: uploads path for ozticket
« Reply #4 on: October 16, 2006, 04:07:18 PM »
Quote from: "fixit"

chown -R www.www /home/e-smith/files/ibays/ticket/html


www.www permissions are an invitation for crackers to rewrite your website. PHP applications only need to *write* into a few directories, and only they should have write permission for user www.

Quote

Chmod config.php 777

chmod 777 /home/e-smith/files/ibays/ticket/html/config.php


You should never set 777 permissions on any file. 777 means that you abandon any control over the content of that file. I'm sure that's not what you want. I think you want that file to be temporarily writable by user 'www', then read-only.