Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: fixit 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
-
OsTicket uploads images temporarily into /tmp.
You need to do:
/sbin/e-smith/db accounts setprop ticket PHPBaseDir /home/e-smith/files/ibays/ticket/:/tmp
/sbin/e-smith/signal-event ibay-modify ticket
Jon
-
Thanks Jon, that did the trick
Russell
-
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
-
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.
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.