Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: SugarOS Apache Linux PHP Oracle 10g R2

  1. #1
    gmilliken is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    12

    Default SugarOS Apache Linux PHP Oracle 10g R2

    I'm working on getting SugarCRM OS to work on Oracle 10gR2.

    I would really appreciate any information, tips, bugs, problems, advice etc. I will post any information howto's etc. that I uncover.

    I'm a developer and Oracle DBA, I am working on the Gentoo linux platform.

    Thanks,

    George
    gmilliken@availmedia.com

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: SugarOS Apache Linux PHP Oracle 10g R2

    SugarOS doesn't support Oracle databases. You would need to code all the DB access stuff yourself in order to get it to work with Oracle.

    The Enterprise edition does support Oracle, but it is a paid-for product.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    gmilliken is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    12

    Default Re: SugarOS Apache Linux PHP Oracle 10g R2

    I am going to document the things I find as I go, and the questions I have. Hopefully this will generate some discussion. This might be more suitable for a blog or wiki, but since I don;t actually have a good idea of how to get SugarCRM OS working on Oracle 10g R2 (maybe it's easy?) I decided to post my progress.

    If it is easy and I missed something in the docs -- someone please take pity on me and enlighten me. Otherwise......here goes......

    My test box is up and running as follows:

    gentoo linux 64 bit Intel kernel 2.6.20 compiled from source
    Oracle 10g R2 Enterprise
    PHP Version 5.2.2-pl1-gentoo
    SugarOS-4.5.1e
    Apache 20020903


    -------
    PHP Configure Info (I see my curl support is no active, nor is mysql. Curl I need to fix, mysql is off by choice)
    ------
    ./configure' '--prefix=/usr/lib64/php5' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/lib64/php5/man' '--infodir=/usr/lib64/php5/info' '--sysconfdir=/etc' '--cache-file=./config.cache' '--with-libdir=lib64' '--disable-cli' '--with-apxs2=/usr/sbin/apxs2' '--with-config-file-path=/etc/php/apache2-php5' '--with-config-file-scan-dir=/etc/php/apache2-php5/ext-active' '--without-pear' '--disable-bcmath' '--without-bz2' '--disable-calendar' '--disable-ctype' '--without-curl' '--without-curlwrappers' '--disable-dbase' '--disable-exif' '--without-fbsql' '--without-fdftk' '--disable-filter' '--enable-ftp' '--without-gettext' '--without-gmp' '--disable-hash' '--disable-ipv6' '--disable-json' '--without-kerberos' '--enable-mbstring' '--with-mcrypt' '--without-mhash' '--without-msql' '--without-mssql' '--with-ncurses' '--with-openssl' '--with-openssl-dir=/usr' '--disable-pcntl' '--disable-pdo' '--without-pgsql' '--disable-posix' '--without-pspell' '--without-recode' '--disable-shmop' '--without-snmp' '--enable-soap' '--enable-sockets' '--without-sybase' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--disable-tokenizer' '--enable-wddx' '--with-xmlrpc' '--with-xsl' '--disable-zip' '--with-zlib' '--disable-debug' '--enable-dba' '--without-cdb' '--with-db4' '--without-flatfile' '--with-gdbm' '--without-inifile' '--without-qdbm' '--without-freetype-dir' '--without-t1lib' '--disable-gd-jis-conv' '--without-jpeg-dir' '--without-png-dir' '--without-xpm-dir' '--without-gd' '--without-mysqli' '--with-oci8' '--with-readline' '--without-libedit' '--without-mm' '--without-sqlite' '--with-pic'

    I am able to connect to Oracle from JDBC Thin Client from any box, and from SQLNET from any box (or locally). I can also connect to the Enterprise Manager (via http) and iSQLPLUS (via http). Therefore....Oracle is 'up'.

    Likewise I can demonstrate that apache and php are working.

    Sugars installed in the /var/www/..../htdocs and it works (at least as far as getting to the installer.php Setup Wizard Step 2 screen via http). Although the installer complains that mysql is missing.

    The installer.php says these things are broken:
    Writable Session Save Path () Not A Valid Directory
    Optional Components Status
    IMAP Module Not found: InboundEmail and Campaigns (Email) require the IMAP libraries. Neither will be functional.
    cURL Module Not found: Sugar Scheduler will run with limited functionality.

    OKAY lets start fixing things.......



    Preliminary greping reveals the following files mention the work 'oracle'. Let's see what specifically is giong on in these first. I also see that install.php mentions mysql as a default database.

    ./data/SugarBean.php
    ./modules/EditCustomFields/EditView.php
    ./modules/EditCustomFields/Save.php
    ./modules/Studio/EditCustomFields/Save.php
    ./modules/Activities/OpenListView.php
    ./modules/Administration/expandDatabase.php
    ./modules/Administration/repairDatabase.php
    ./modules/Administration/RepairTeams.php
    ./modules/Administration/language/en_us.lang.php
    ./modules/Administration/DstFix.php
    ./modules/UpgradeWizard/uw_utils.php
    ./modules/DynamicFields/templates/Fields/TemplateField.php
    ./modules/DynamicFields/templates/Fields/TemplateFloat.php
    ./include/database/MysqlHelper.php
    ./include/database/DBHelper.php
    ./include/database/DBManager.php
    ./include/utils/db_utils.php
    ./include/ListView/ListViewDisplay.php
    ./include/utils.php
    ./install/seed_data/entreport_SeedData.php
    ./install/language/ja.lang.php
    ./install/language/en_us.lang.php
    ./install/language/pt_br.lang.php
    ./install/language/fr_fr.lang.php
    ./install/language/es_es.lang.php
    ./install/language/ge_ge.lang.php

  4. #4
    gmilliken is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    12

    Default Re: SugarOS Apache Linux PHP Oracle 10g R2

    Angel,

    Since this is open source I am undaunted by the task of fixing it. Since I work in a company that is dedicated to open source, and in fact all our servers and desktops are built by compiling linux from source code, I am not too upset that it doesn't work. I'll fix it.

    Then we can all enjoy a version of Sugar that works on Oracle, if we choose to use it.

  5. #5
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: SugarOS Apache Linux PHP Oracle 10g R2

    That would be a pretty cool contribution. I'll try to help you test if possible.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  6. #6
    gmilliken is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    12

    Default Re: SugarOS Apache Linux PHP Oracle 10g R2

    Thanks Angel. I think we can do it. After all, that's what open source is all about. Some folks say Oracle and Open Source Sugar is an oxymoron but for us and many others Oracle is part of the landscape so getting our open source tools to work with it makes sense.

    It's true that Oracle Admin is complicated, but given that you are committed to Oracle already then supporting MySQL or other databases adds grief and complexity.

    Without debating the merits of Brand X Database versus Brand Y I find myself in a pure Oracle shop, that is open source (where possible).

    We license Oracle, we buy other things too, like hardware, pencils, electricity etc.

    But where we can we use open source.

    So, enough of the soap box......on with the show.

    Is there anyone we know who has Oracle and Sugar working that can tell us about the config without violating any non-disclosures or license agreements?

  7. #7
    gmilliken is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    12

    Default Re: SugarOS Apache Linux PHP Oracle 10g R2

    OK so it looks like the Open Source version has allowances for Oracle access. For instance in ./modules/EditCustomFields/Editview.php there is this comment:

    //mysql max is 64, allow for few additional chars added by sugar.
    //oracle max is 30,
    $name_max_length=60;
    if ($GLOBALS['db']->dbType=='oci8') {
    $name_max_length=26;
    }
    $image_path = 'themes/'.$theme.'/images/';

    What they are talking about here is that Oracle wants object names (tables, columns, whatever....to be 30 characters max.

    The code was written to allow for that.

    So it may be some simple config changes and it should work. Maybe just in the php.ini

    Hmmmmmm.....

  8. #8
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: SugarOS Apache Linux PHP Oracle 10g R2

    If you do a search for oci8 in all of the files in Sugar you'll find these blocks in numerous files. The code has been removed there for the OS version. You'll probably want to add your code there as well as add your own OracleManager.php and OracleHelper.php in include/database.

    Good luck!

  9. #9
    gmilliken is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    12

    Default Re: SugarOS Apache Linux PHP Oracle 10g R2

    OK thanks. It looked to be like some code was 'redacted' particularly where there are large numbers of blank lines right around Oracle comments.

  10. #10
    Join Date
    Feb 2007
    Location
    San Jose, CA
    Posts
    1,169

    Default Re: SugarOS Apache Linux PHP Oracle 10g R2

    Hi all,

    It's the Podcast Lady here. We recorded a short podcast a little while ago that explains how we build the different editions of Sugar (OS/Pro/Enterprise), and it goes into detail about why you see those blank lines.

    Check it out here!

    Podcast Lady out.
    Susie Williams

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 2009-12-02, 04:04 PM
  2. PHP Warnings after install add-in Module
    By kgeving in forum Help
    Replies: 1
    Last Post: 2006-08-08, 05:54 PM
  3. Errors after upgrade
    By mturany in forum Help
    Replies: 0
    Last Post: 2006-04-24, 04:40 AM
  4. ERROR in 4.01
    By rateck in forum Help
    Replies: 3
    Last Post: 2006-02-02, 10:00 PM
  5. Problem during web-based setup
    By JerkyChew in forum Help
    Replies: 15
    Last Post: 2005-06-09, 02:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •