Results 1 to 3 of 3

Thread: How to change localhost/sugarcrm to http://???.com/sugarcrm

  1. #1
    etilley is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    20

    Smile How to change localhost/sugarcrm to http://???.com/sugarcrm

    I thought this was going to be an easy find in the forums - no luck.

    There are references to being able to change localhost/SugarCRM to http://www.somethingelse.com/SugarCRM via the $starturl parameters - but then there are other problems that seem to fallout everytime I see that solution offered.

    I have to make this change because of an apache glitch that denies a number of my virtual web servers access when I configure localhost to work for Sugar.

    As using http://www.somethingelse.com/SugarCRM is also a better solution for working with the Joomla bridges; how can I make this change to my installed Sugar without inviting disaster?

    First post - lets see ...

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: How to change localhost/sugarcrm to http://???.com/sugarcrm

    I do not really understand the problem.

    In config.php of Sugar you have an entry site_url which points to the star URL of the Sugar installation, e.g.
    http://www.somethingelse.com/SugarCRM in your case.

    In httpd.conf of apache you have a directory entry like this:

    Code:
    <Directory "D:/SUGAR-xampp/htdocs">
        #
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.2/mod/core.html#options
        # for more information.
        #
        Options Indexes FollowSymLinks Includes ExecCGI
        
        #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        AllowOverride All
    
        #
        # Controls who can get stuff from this server.
        #
        Order allow,deny
        Allow from all
    
    </Directory>
    That runs fine on my machine.

    The Sugar installer normally installs an index.php in your webserver root (htdocs) to redirect to the correct subdirectors with a content like this:

    Code:
    <?php
    	if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
    		$uri = 'https://';
    	} else {
    		$uri = 'http://';
    	}
    	$uri .= $_SERVER['HTTP_HOST'];
    	header('Location: '.$uri.'/sugarcrm/');
    	exit;
    ?>
    Something is wrong with the XAMPP Lite installation :-(
    All that allows the references you want, no need to set starturl.

    regards
    hk

  3. #3
    etilley is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    20

    Default Re: How to change localhost/sugarcrm to http://???.com/sugarcrm

    Nor do I honestly. If I don't specify that the virtual server address of the default Apache Virtual Host is the name of my box's DNS name (VMLinux), Apache selects another virtual server to display instead of vmlinux. So I can get localhost/SugarCRM OR vmlinux/SugarCRM to work - but not both.

    As I run 1) SugarCRM from a separate workstation from the server that I installed it on, and 2) I run a Joomla app that I soap-connect from a third machine server as well, it makes more sense to run Sugar as http://vmlinux/SugarCRM.

    I run on a linux Ubuntu 7.04 LAMP server and the Apache configuration is a little different than you win/Apache config:

    DocumentRoot /var/www/
    ServerAlias localhost
    DirectoryIndex index.php index.htm index.shtml index.html

    <Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    # This directive allows us to have apache2's default start page
    # in /apache2-default/, but still have / go to the right place
    #RedirectMatch ^/$ /apache2-default/
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </Directory>

    CustomLog /var/log/apache2/access.log combined
    ServerSignature Off

    So - my problem is not running header('Location: '.$uri.'/sugarcrm/'); // This works fine.

    My problem is that the soap connector for Joomla (running on a 3rd server) tries to connect to http://localhost/SugarCRM/soap.php and fails.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. View Change Log
    By markoa in forum Developer Help
    Replies: 0
    Last Post: 2007-10-13, 08:55 AM
  2. Module Builder Help - change name feild name
    By mtfrog77 in forum Developer Help
    Replies: 2
    Last Post: 2006-10-20, 03:16 PM
  3. How to change current_user system wide
    By ElChef in forum Developer Help
    Replies: 0
    Last Post: 2006-06-17, 10:47 AM
  4. Replies: 0
    Last Post: 2006-06-10, 04:09 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
  •