Installing and Configuring Alfresco Community Edition: A Comprehensive Guide — Parto 01
Deploying Alfresco Community Edition can be a complex process, but with the right steps, you can have a fully functional content management system up and running. This guide walks you through the setup of Samba shared disks, deployment of Alfresco Content Services using Ansible, and configuration of HAProxy for load balancing and session persistence.
ECM Storage Configuration
- Install Required Packages
dnf install cifs-utils -y
dnf install samba -y
- Firewall Configuration
Add Samba service to the firewall (permanent) and reload firewall:
firewall-cmd --permanent --zone=public --add-service=samba firewall-cmd --reload
LVM Partition and Group Creation
Steps:
- Create a new Partition using
fdisk /dev/sdb
tool and select partition type LVM
Command: n
Select: p (primary)
Partition number: 1
First sector: use default value
Last sector: use default value
Command: t
Selected partition: 1
Hex code: 8e
Selected partition: 1
Hex code: 8e
- Initialize the partition
/dev/sdb1
as an LVM physical volume
pvcreate /dev/sdb1
- Useful commands:
lvmdiskscan
//Scanning for Block Devices
pvdisplay
//Displaying Physical Volumes
pvscan
//Scans all supported LVM block devices
- Create volume group name
vg_newlvm
and add/dev/sdb1
partition into the group:
vgcreate vg_newlvm /dev/sdb1
- Create a logical volume called
centos7_newvol
that uses all of the unallocated space in the volume groupvg_newlvm
:
lvcreate --name centos7_newvol -l 100%FREE vg_newlvm
- Display the created logical volumes:
lvdisplay
- Format a newly created LVM with
mkfs
command:
mkfs.ext4 /dev/vg_newlvm/centos7_newvol
- Create the mount point and mount the new LVM:
mkdir -p /data
mount /dev/vg_newlvm/centos7_newvol /data
Samba Configuration
- Create a directory on the server to hold your shared files and folders (data).
* Create Samba user and system user:
useradd smb-user
groupadd smb-grp
usermod -aG smb-grp smb-user
smbpasswd -a smb-user
Change the folder permissions and owner:
chmod 770 /data
chown smb-user.smb-grp /data
Change the SELinux context to samba_share_t
:
semanage fcontext --add --type "samba_share_t" "/data(/.*)?"
restorecon -R /data
Note: Backup Samba config file before editing.
Samba config:
[shared] # samba_shared_config
path = /data # folder_path - mounted
read only = no
writable = yes
browseable = yes
guest ok = no
valid users = @smb-user # samba user
Restart Samba service:
systemctl restart smb
ECM Instance Configuration
Install Required Packages
dnf install -y cifs-utils
Create folder to be mounted with shared disk
mkdir /mnt/data
Auto mount the folder in fstab file
Edit /etc/fstab
to add:
//ECM_STORAGE_IP_ADDR/shared /mnt/data cifs user=ecm_storage,password=ecm_storage@,rw,uid=996,gid=992 0 0
Reboot System
reboot
Part 02 : https://medium.com/p/8a95c6fbf11
Part 03 : https://medium.com/p/bcde44232f59