Mac OS X Install Enquiry

Moderator: crythias

Locked
simonkwong
Znuny newbie
Posts: 4
Joined: 24 Jul 2011, 19:49
Znuny Version: 3.0.9
Real Name: Simon Kwong
Company: n/a

Mac OS X Install Enquiry

Post by simonkwong »

Can OTRS be installed in Mac OS X platform? Thanks
renee
Znuny expert
Posts: 241
Joined: 06 Feb 2009, 11:15
Znuny Version: 3.0.x
Company: Perl-Services.de
Contact:

Re: Mac OS X Install Enquiry

Post by renee »

I haven't tested it, but it should be doable. Perl is part of Mac OS X and AFAIK Apache and mod_perl can be installed with the package system of Mac OS. Then you can follow the installation instructions listed here: http://doc.otrs.org/3.0/en/html/manual- ... -otrs.html
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

Re: Mac OS X Install Enquiry

Post by MichaelR »

Or just install it on a proper OS. </troll>
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
simonkwong
Znuny newbie
Posts: 4
Joined: 24 Jul 2011, 19:49
Znuny Version: 3.0.9
Real Name: Simon Kwong
Company: n/a

Re: Mac OS X Install Enquiry

Post by simonkwong »

My setup as follows:

Preparation:
- show hidden folders in Finder:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

(Reference: http://superfancy.net/coding/php-mysql- ... x-leopard/)

- amend Macintosh HD > etc > hosts (optional) in Terminal
127.0.0.1 xxx

- create testing user accounts: admin, otrs…

- enable mod_perl
a) insert the following line into /etc/apache2/http.conf:
LoadModule perl_module libexec/apache2/mod_perl.so

b) creating a file named: /etc/apache2/other/perl.conf with the following contents:

<IfModule perl_module>
AddHandler cgi-script .pl
<IfModule dir_module>
DirectoryIndex index.pl index.html
</IfModule>
</IfModule>

c) restart apache:
sudo /usr/sbin/apachectl restart

(Reference: http://bixsolutions.net/forum/thread-11 ... html#pid66)


Installing Perl DBD, DBI::mysql Modules
- Reference: http://bixsolutions.net/forum/thread-8-page-2.html

- remark for manual install:
cd to each folder
sudo perl Makefile.PL
sudo make
sudo make test
sudo make install

If fail to install DBD::mysql, refer
http://www.blog.bridgeutopiaweb.com/pos ... -mac-os-x/

- Install GD-2.0.28, refer
https://bitbucket.org/pierrejoye/gd-libgd/downloads

Full Installation
=============

1. Enable Apache
System Preferences > Sharing > click Web Sharing

2. Setup Postfix (mail server)
Install MailServe for Lion

3. Install MySQL
- download mysql-5.5.19-osx10.6-x86_64.dmg

- add following commands to .bash_profile under home folder
alias mysql=/usr/local/mysql/bin/mysql
alias mysqldmin=/usr/local/mysql/bin/mysqladmin

4. Install OTRS
- follow OTRS 3.0 - Admin Manual (page 16 Installation from source (Linux, Unix))
- set permission of apache:
sudo chmod -R 777 /Library/WebServer

- set permission of OTRS:
sudo chmod -R 777 /opt/otrs
To avoid Warning
Message: Kernel/Config.pm isn't writable!
If you want to use the installer, set the Kernel/Config.pm writable for the webserver user!

- Configure Apache, refer OTRS-Wiki section 5 in "Installation of OTRS 3.0 on CentOS 5.5".

Remark:
Default layout of apache in Mac OS X
refer: http://wiki.apache.org/httpd/DistrosDef ... tpd_2.2.29:

Post install
-modify my.cnf, refer
http://stackoverflow.com/questions/9312 ... cket-bytes


---End---
Locked