YetiForce Server Setup and Configuration
There's a time and place for everything, maybe not now.
This guide supposes that you have already followed the Setting Up Your Environment guide. If you haven't done so, please refer to the Setting Up Your Environment guide before proceeding.
BE SURE TO FOLLOW CAREFULLY AND TROUGHLY
This guide is a step-by-step process to configure the YetiForce server. Please ensure you follow each step carefully to avoid any issues. THE THIRD STEP CANNOT BE SKIPPED.
Prerequisites
- SSH access to the server hosting YetiForce
- Administrative access to YetiForce admin panel
Step 1: Enable Web Service
Locate YetiForce Installation
- SSH into the server hosting YetiForce
- Use
lsandcdcommands to navigate to the YetiForce installation directory
Enable Webservice
- Open the configuration file:
config/Api.php - Modify the
$enabledServicesarray to include 'webservice'
/** List of active services. Available: dav, webservice */
public static $enabledServices = ['webservice'];
Step 2: Configure Custom Fields for Students Module
Login and Access Module Configuration
- Log into YetiForce admin panel
- Click on the gear icon in the top right corner
- In the left sidebar, select "Standard Modules"
- Choose "Edit Field"
Add PIN Field to Students Module
- In the top left search, select "Students" module and press Enter
- Click "Add Custom Field" on the right side of Basic Information
- Label Name: PIN
- Field Name: pin
- Length: 4
- Save the field
Add SID Field to Students Module
- Repeat the previous steps
- Create another custom field
- Label Name: SID
- Field Name: sid
- Length: 6
- Save the field
Repeat for Short Term Students
- Perform the same field addition process for the "Short Term Students" module
- Follow the same steps to add PIN and SID fields
Step 3 configure the apache server
Locate the Apache Configuration File
- SSH into the server hosting YetiForce
- Use
lsandcdcommands to navigate to the Apache configuration directory - Open the configuration file (should be in
/etc/apache2/apache2.conf) - find and edit the following configuration
<Directory /var/www/>
[... any other configuration ...]
AllowOverride All
[... any other configuration ...]
</Directory>
REMEMBER TO RESTART THE APACHE SERVER
After making the changes to the Apache configuration, you must restart the Apache server to apply the changes. Use the following command to restart the Apache server:
sudo service apache2 restart
Important Notes
- Ensure you have proper backup before making configuration changes
- Verify each step is completed correctly before proceeding
- Restart YetiForce services if required after configuration
tip
Always double-check your field names and lengths to maintain data integrity.