CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • unable to install civicrm 2.1 froms svn
Pages: [1]

Author Topic: unable to install civicrm 2.1 froms svn  (Read 2297 times)

rampkrm

  • Guest
unable to install civicrm 2.1 froms svn
July 30, 2008, 08:33:57 am
i am trying to install civicrm 2.1 and drupal 6.2 on php 5 and mysql 5. after installation complete i am getting error "Page Not Found" error in drupal and i cannot access even drupal after installing. can any one help me..

Thanks in advance,
Ram

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: unable to install civicrm 2.1 froms svn
July 30, 2008, 11:18:01 pm

I dont see modules being mentioned below. The link is from DRUPAL_ROOT/sites/default/civicrm.settings.php to ~/svn/civicrm/civicrm.settings.php

While you are at it, you can also create a symlink from DRUPAL_ROOT/sites/all/modules/civicrm to ~/svn/civicrm

feel free to ping us on IRC if you need help. You can get onto IRC from the web by using this link:

http://embed.mibbit.com/?server=irc.freenode.net&channel=%23civicrm&forcePrompt=true

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

rampkrm

  • Guest
Re: unable to install civicrm 2.1 froms svn
July 30, 2008, 11:36:32 pm
toddchris,

i got the same problem and i just placed civicrm.settings.php in default folder. i don't know whether this is correct or not but this solves my problem.

rampkrm

  • Guest
Re: unable to install civicrm 2.1 froms svn
July 31, 2008, 02:03:01 am
i got several errors but finally i am able installed and running civicrm 2.1 from svn with drupal 6.3. below is the process i fallowed to install i think it may be useful to the viewers.

i fallowed the link http://wiki.civicrm.org/confluence/display/CRMDOC/Installing+CiviCRM+from+subversion+(SVN)+repository

fallwoing are the small changes in the steps. it works for me.

NOTE: You need PHP5 installed and working (note also you must have php-xml installed if your distribution does not include DOMXML support in the mail PHP executable, as is the case in Fedora). If you are using a Mac and don't want to compile your own PHP build, download and install the latest version of MAMP (Mark Liyanage's PHP/Apace set does not include SOAP support).

This document is primarily for developers who want to install and run code directly from subversion.

   1. Check out CiviCRM code from the repository to a local directory

      mkdir ~/svn
      cd ~/svn
      svn checkout http://svn.civicrm.org/civicrm/trunk civicrm

          * Make sure you are picking up the right svn version. The example above picks up the 'trunk' directory which is the current development version. For a branch version you would replace 'trunk' with the branch directory (e.g. for v2.0 use http://svn.civicrm.org/civicrm/branches/v2.0).
          * Note that ALL CiviCRM releases are checked into a branch (and then merged into trunk)
   2. Create a settings file for your installation.

      cd civicrm
      cp templates/CRM/common/civicrm.settings.php.sample.tpl civicrm.settings.php

   3. Edit civicrm.settings.php with your site values, read the comments carefully. Note that the tpl file is a template markup file.
          * If using Drupal, be sure to set define( 'CIVICRM_UF_FRONTEND', 0 )
   4. Create a new file called settings_location.php at the civicrm top level and add the following php fragment.

      <?php

      // the directory name for your 'sites' location in drupal. We use the below location
      // along with drupal 'conf_init()' function to figure out where the settings files
      // are located. This is primarily used when we hit CiviCRM outside of 'Drupal' (via mail/soap
      // etc)
      define( 'CIVICRM_CONFDIR', '/home/lobo/public_html/drupal/sites' );

      ?>
    Note change the value of CIVICRM_CONFDIR, place your site value here

   5. Create a symbolic link from DRUPAL_ROOT/sites/default/civicrm.settings.php to ~/svn/civicrm/civicrm.settings.php (note that we need a default site for GenCode.php)

   6. copty the civicrm.settings.php to default/ directory
   
   7. Run the code generation script.

      cd xml
      php GenCode.php

          * This should echo lots of stuff on the screen. You can ignore those messages (assuming they are not errors or warnings). If there are errors/warnings (most likely with path / bad values), please fix and rerun GenCode.php
          * if you do an update from the svn repository, you will need to run GenCode.php again (most likely). The schema might have changed also, so you might have to reload the database
   8. Create a file called civicrm-version.txt at ~/svn/civicrm. The file contents should be the string "Drupal PHP5"
   
   9. remove civicrm.settings.php from default/ directory.

   10. You are all set. Now follow the normal manual install instructions.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: unable to install civicrm 2.1 froms svn
July 31, 2008, 12:35:03 pm
call  phpinfo in a script, it will display what modules are installed on your PC.

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: unable to install civicrm 2.1 froms svn
July 31, 2008, 02:45:33 pm

might be easier for you to wait for an alpha release. We expect to have an alpha release early next week.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: unable to install civicrm 2.1 froms svn
August 01, 2008, 01:41:17 am
Hi,

Yes, svn will make the upgrades easier (you only have to update the db when needed, the code is handled)

I did stuggle quite a bit to have it working, at the end, what I did was a normal install next to the svn one, so I had a working solution to compare to, on the same machine.

X+

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • unable to install civicrm 2.1 froms svn

This forum was archived on 2017-11-26.