Maarch installation on Ubuntu

Solved
achraf -  
mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   -
Hello,
I spent a long time installing the Open Source Maarch for electronic document management during a summer internship, but I haven't succeeded yet,
Considering that this software is not preconfigured for Ubuntu.
In fact, I installed the prerequisites (apache, php, and postgresql), and I followed the installation guide for Ubuntu below but I haven't managed to complete the installation.
I wonder if anyone has any ideas on how to install Maarch.
Thanks in advance.


-----------------------------------------------------------------------------------------------------------

-Retrieve the Maarch Entreprise packages:

wget https://sourceforge.net/projects/maarch/files/ -O /var/www/MaarchEntreprise-1.0.zip

# Unzip the archive:

unzip !$ -d /var/www/entreprise
# Complete the installation of directories:
mkdir /var/maarch /var/maarch/docservers /var/maarch/docservers/{documents,documents_ai,invoices,invoices_ai} /var/maarch/indexes

# Adapt the release:

rm /var/www/entreprise/apps/maarch_entreprise/{export,tmp}
mkdir /var/www/entreprise/{tmp,apps/maarch_entreprise/{export,tmp}}

# Configure permissions:

chown -R www-data:www-data /var/maarch
chmod -R 700 !$
chown www-data:www-data /var/www/entreprise/{tmp,apps/maarch_entreprise/tmp,modules/physical_archive/tmp_print}
chmod 700 /var/www/entreprise/{tmp,apps/maarch_entreprise/tmp,modules/physical_archive/tmp_print}

Modification of configuration files with the following variables:

## corepath=/var/www/entreprise/
## tmppath=/var/www/entreprise/tmp
## coreurl=http://127.0.0.1/entreprise/
## businessapppath=/var/www/entreprise/apps/maarch_entreprise/
## databaseserver=127.0.0.1
## databaseserverport=5432
## databasetype=POSTGRESQL
## databasename=maarch_entreprise
## databaseuser=postgres
## databasepassword=maarch
## tmppath(apps/maarch_entreprise)=/var/www/entreprise/apps/maarch_entreprise/tmp/
## path_to_lucene_index(letterbox_coll)=/var/maarch/indexes/letterbox_coll/
## path_to_lucene_index(coll_2)=/var/maarch/indexes/coll_2/
## MaarchDirectory=/var/www/entreprise/
## AutofolderingUrl=http://127.0.0.1/entreprise/modules/autofoldering/
## BASE_DIRECTORY=/var/www/entreprise/modules/full_text/
## INDEX_FILE_DIRECTORY=/var/maarch/indexes/letterbox_coll/
## MAARCH_TOOLS_PATH=/var/www/entreprise/apps/maarch_entreprise/tools/
## path(physical_archive)=/var/www/entreprise/modules/physical_archive/
cp /var/www/entreprise/core/xml/config.xml.default /var/www/entreprise/core/xml/config.xml
vim !$
cp /var/www/entreprise/apps/maarch_entreprise/xml/config.xml.default /var/www/entreprise/apps/maarch_entreprise/xml/config.xml
vim !$
vim /var/www/entreprise/modules/autofoldering/xml/config.xml
vim /var/www/entreprise/modules/indexing_searching/xml/config.xml
vim /var/www/entreprise/modules/full_text/xml/config_entreprise.xml
vim /var/www/entreprise/modules/physical_archive/xml/config.xml

# Creation and configuration of the database

su postgres
psql
ALTER USER postgres WITH ENCRYPTED PASSWORD 'maarch';
CREATE DATABASE maarch_entreprise WITH ENCODING = 'UTF8';
\connect maarch_entreprise
\i /var/www/entreprise/structure.sql
\i /var/www/entreprise/data.sql
\q
exit

7 réponses

mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   7 935
 
Can you tell us what is blocking you?
0
achraf
 
Hello,
Today I finally managed to run Maarch by replacing the folder name "/var/www/'entreprise'/maarch_entreprise/apps/maarch_entreprise" with "/var/www/'entreprise'/maarch_entreprise/apps/entreprise".

At this point, I can't get past the login.

I modified the database name as well as the password and the database parameters as indicated above in the file:
/var/www/entreprise/apps/maarch_entreprise/xml/config.xml

Then I created the database, and the program structure is built using the data.sql and structure.sql files.

In the users table, I inserted the following line:

INSERT INTO users (user_id, "password", firstname, lastname, phone, mail, department, custom_t1, custom_t2, custom_t3, cookie_key, cookie_date, enabled, change_password, delay, status)
VALUES ('ccharles', 'ef9689be896dacd901cae4f13593e90d', 'Charlotte', 'CHARLES', '+33 1 47 24 51', 'info@maarch.org', '', NULL, NULL, NULL, '2b67f8017119d7de32f300be3e97ccb4', '2008-09-10 15:09:23', 'Y', 'N', NULL, 'OK');

I'm stuck on the login page!!!!

The question is how can I connect?
Do I need an MD5 password, and how do I do that?

Thank you for your response.
0
mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   7 935
 
Honestly, it's hard to answer you because it depends on how maarch was programmed.

If it's like MySQL, the password is encrypted in the database and you can't insert it directly by typing the password in plain text. Maybe they use the PASSWORD function but nothing is certain... Example at the bottom of this page:
https://dev.mysql.com/doc/refman/8.0/en/adding-users.html

I'm a bit surprised that you have to manipulate the records directly in the database and that there isn't a simpler method provided in the installation procedure. Are you sure you haven't forgotten anything?

Good luck.
0
achraf
 
Hi Mamiemando,

I managed to log in by decrypting the password in MD5.

Anyway, thank you for your help, have a nice day.
0
mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   7 935
 
So, is your problem solved?
0
achrfinfo
 
Yes, I solved the problem, :)) thank you.
0
mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   7 935
 
Perfect, good luck :) I'm marking the subject as resolved.
0