Welcome, Guest
Username: Password: Remember me

TOPIC: 2 companies 1 server

2 companies 1 server 1 year 10 months ago #21634

  • newbeewan
  • newbeewan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hi,

I've got an hosted server where In installed dolibarr from the deb package (this is a debian squeeze).

My installation works perfecly, and I want to give the same possibility to my wife on the same server.

Her activity is completely different so it is not a multi-company model.

I want to make a new virtual host, but pointing to an other dolibarr configuration and an other database !

How to do that without breaking everything :dry: ?

Regards
The administrator has disabled public write access.

Re:2 companies 1 server 1 year 10 months ago #21639

  • i.dannati
  • i.dannati's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 66
  • Karma: 2
Here's how:

Open your control panel on your hosted web server...

Create a new subdomain
give that subdomain its own folder lets say public_html/companyb

Ftp/upload the dolibarr installation files into the new subdomain folder


Go back to your control panel on your hosted web server

Create a new database
create a new user for that database
assign user to that database with all permissions

open the Dolibarr install

http://yourwebsite/companyb

Install Dolibarr!!!

just make sure during install you give Dolibarr the new database information

*************

Now if your web host gives you the option to install Dolibarr from within the Control Panel then simply

create a new subdomain (with its own folder)

go to the software installation center to install the new Dolibarr instance

There should be a option there to define the installation folder

Choose the new subdomain folder and install

Good Luck!
The administrator has disabled public write access.

Re:2 companies 1 server 1 year 10 months ago #21647

  • newbeewan
  • newbeewan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Do you think is it possible to use the .deb install to do that (masking conf directory for example) ?

regards
The administrator has disabled public write access.

Re:2 companies 1 server 1 year 10 months ago #21650

  • i.dannati
  • i.dannati's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 66
  • Karma: 2
Hmm... Honestly I don't know

Who is your shared host?

Do you have to use the deb install?

Does your host provide a control panel?

How did you perform the previous deb install?


Typically even with linux servers (This is what I have) your given access to a Control panel and deb installs aren't necessary

My only concern is I don't know the full installation procedure via deb packages... From a quick glance they are made to be pretty much start - finish with very little user interaction.. If thats the case (I will most certainly verify later) then the only area of concern is the database setup...


Let me look into a bit and I'll post the full procedure (if Possible) here later on

Otherwise if I were you I would investigate Control Panel access via your shared web server. Thats the safest way I know of to perform multiple installs
The administrator has disabled public write access.

Re:2 companies 1 server 1 year 9 months ago #21651

  • newbeewan
  • newbeewan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
I tried to create a new virtual host reproducing the different ddolibarr directory...
My config file is this one :
# Apache config file for Dolibarr

<IfModule mod_alias.c>
Alias /dolibarr /usr/share/dolibarr/htdocs
</IfModule>

# You can also use dolibarr as a VirtualHost
#Mainly default parameters from the debian install
<VirtualHost *:80>
ServerName dolibarr.firstserver.net
ServerAdmin This email address is being protected from spambots. You need JavaScript enabled to view it.
DocumentRoot /usr/share/dolibarr/htdocs/
# Config files
<Directory /etc/dolibarr>
AllowOverride All
Order deny,allow
Allow from all
</Directory>
<Directory /var/lib/dolibarr/documents>
AllowOverride All
Order deny,allow
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/dolibarr.firstserver.net-error.log
CustomLog ${APACHE_LOG_DIR}/dolibarr.firstserver.net-access.log common
</VirtualHost>
<VirtualHost *:80>
ServerName dolibarr.mynewserver.com
ServerAdmin This email address is being protected from spambots. You need JavaScript enabled to view it.
DocumentRoot /usr/share/dolibarr/htdocs/
# Config files
<Directory /home/mynewserver/dolibarr>
AllowOverride All
Order deny,allow
Allow from all
</Directory>
<Directory /home/mynewserver/documents>
AllowOverride All
Order deny,allow
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/dolibarr.mynewserver.com-error.log
CustomLog ${APACHE_LOG_DIR}/dolibarr.mynewserver.com-access.log common
</VirtualHost>

# Directory for web pages
<DirectoryMatch /usr/share/dolibarr>
Order deny,allow
Allow from all
DirectoryIndex index.php
Options +FollowSymLinks +Indexes

ErrorDocument 401 /public/error-401.php
ErrorDocument 404 /public/error-404.php

<IfModule mod_php4.c>
php_flag magic_quotes_gpc Off
php_flag register_globals Off
</IfModule>

<IfModule mod_php5.c>
php_flag magic_quotes_gpc Off
php_flag register_globals Off
</IfModule>


# OPTIMIZE: To use gzip compressed files (for Dolibarr already compressed files).
# Note that constant MAIN_OPTIMIZE_SPEED must have a value with bit 0 set.
#AddType text/javascript .jgz
#AddEncoding gzip .jgz

# OPTIMIZE: To use gzip compression (on the fly).
# Note that you must also enable the module mod_deflate.
# You can also set this with constant MAIN_OPTIMIZE_SPEED and bit 2 set.
#TODO

# OPTIMIZE: To use cache on static pages (A259200 = 1 month).
# Note that you must also enable the module mod_expires.
#ExpiresActive On
#ExpiresByType image/x-icon A2592000
#ExpiresByType image/gif A2592000
#ExpiresByType image/png A2592000
#ExpiresByType image/jpeg A2592000
#ExpiresByType text/css A2592000
#ExpiresByType text/javascript A2592000
#ExpiresByType application/x-javascript A2592000
#ExpiresByType application/javascript A2592000

</DirectoryMatch>

# Directory for public pages
<DirectoryMatch /usr/share/dolibarr/htdocs/public>
AllowOverride All
Order deny,allow
Allow from all
</DirectoryMatch>



# Directory for data files
<DirectoryMatch /usr/share/dolibarr/documents>
AllowOverride All
Order deny,allow
Allow from all
</DirectoryMatch>

It is clause to work, but the 2 domains are pointing to the first configured database, and no installation process start for the 2d domain !
I think there is somthing wrong in my apache conf...
The administrator has disabled public write access.

Re:2 companies 1 server 1 year 9 months ago #21652

  • saxa
  • saxa's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 264
  • Karma: 5
You need install 2 dolibarr installs firstly, not with .deb but with .tgz, and then point your apache virtual host each to the proper install.
The administrator has disabled public write access.
Time to create page: 0.086 seconds