- Stuff
- Friday, June 29th, 2007 at 1:18:26am MDT
- With mod_perl (speed!):
- =======================
- Add this to the mod_perl stuff section in httpd.conf
- [...]
- Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
- Alias /otrs/ "/opt/otrs/bin/cgi-bin/"
- <Location /otrs>
- SetHandler perl-script
- PerlHandler Apache::Registry
- Options ExecCGI
- PerlSendHeader On
- PerlSetupEnv On
- </Location>
- You may want to use a mod_perl startup script. Compiled modules on startup
- (speed!)! Use the mod_perl startup script which comes with otrs
- (scripts/apache-perl-startup.pl).
- - Change the default startup script location of your httpd to
- $OTRS_HOME/scripts/apache-perl-startup.pl in httpd.conf
- [...]
- # load all otrs modules
- Perlrequire /opt/otrs/scripts/apache-perl-startup.pl
- [...]
- Edit the scripts/apache-perl-startup.pl script:
- - Establish datababase connections on process startup (httpd).
- [...]
- use Apache ();
- use Apache::DBI ();
- Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs', 'some-pass');
- # Apache::DBI->connect_on_init($data_source, $username, $auth, \%attr)
- [...]
- - Change the otrs lib dir (if needed)!
- [...]
- # --
- # set otrs lib path!
- # --
- use lib "/path/to/otrs/";
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.