Windows Installation Guide
Installing ABCD in a Windows environment is most efficiently done using a web server package like XAMPP or WAMP. These packages install and pre-configure Apache and PHP, which are essential prerequisites for ABCD.
This detailed guide focuses on using these packages for a robust installation.
Step 1: Setting Up the Environment (XAMPP/WAMP)
-
Install a Local Server: Download and install a web server package. The most common options are:
- XAMPP: https://www.apachefriends.org/index.html
- WAMP: https://www.wampserver.com/en/ Follow the instructions of your chosen installer, using the default settings.
-
Enable Required PHP Extensions: ABCD requires certain PHP extensions to be active. To enable them, locate and edit your
php.inifile (in XAMPP/WAMP, you can usually access this through the program's control panel). Remove the semicolon (;) from the beginning of the following lines to uncomment them:extension=gd
extension=mbstring
extension=xsl
extension=xmlrpc
extension=yaz
extension=curl
extension=ldap
extension=zipIf a line does not exist, add it. Save the file and restart the Apache services for the changes to take effect.
Step 2: Download and Prepare ABCD Files
- Download the latest version of ABCD from the official GitHub repository.
- Unzip the downloaded file into a temporary folder.
- Inside the unzipped folder, you will find several directories. Make the following changes to prepare the files for Windows:
- Delete the
bases-examples_Linuxfolder. - Rename the
bases-examples_Windowsfolder tobases. - Delete the
cgi-bin_Linuxfolder. - Rename the
cgi-bin_Windowsfolder tocgi-bin. - The
extra,zz_installation, andzz_miscellaneousfolders can be deleted as they are not needed for execution.
- Delete the
You will now have three main folders ready for installation: bases, cgi-bin, and htdocs.
Step 3: Configure Apache (Virtual Host)
To ensure Apache knows how to serve the ABCD files, it is highly recommended to configure a "Virtual Host". This isolates the ABCD configuration from other sites you might host.
-
Locate the example
vhost_ABCD_9090_Windows.conffile that came in thezz_installationfolder of your download. -
Copy this file to your server's virtual hosts configuration folder. The location may vary:
- XAMPP:
C:\xampp\apache\conf\extra\ - WAMP:
C:\wamp\alias\
- XAMPP:
-
Edit the
vhost_ABCD_9090_Windows.conffile to ensure the paths are correct. The example file is pre-configured for a default structure (C:\ABCD\www), but you can adjust it if needed. Here is an example of the file's content:# Define the port and root path for easy relocation
Define ABCD_PORT 9090
Define ABCD_ROOT "/ABCD/www"
Listen ${ABCD_PORT}
<VirtualHost *:${ABCD_PORT}>
ServerName abcd.localhost
# Path to the ABCD PHP scripts
DocumentRoot "${ABCD_ROOT}/htdocs"
# Alias and permissions for the executables (cgi-bin)
ScriptAlias /cgi-bin/ "${ABCD_ROOT}/cgi-bin/"
<Directory "${ABCD_ROOT}/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi .exe
Require all granted
</Directory>
# Alias for the databases folder
Alias /docs/ "${ABCD_ROOT}/bases/"
<Directory "${ABCD_ROOT}/bases/">
Options -Indexes -FollowSymLinks +MultiViews
AllowOverride None
Require all granted
</Directory>
# Log files specific to this ABCD instance
CustomLog ${ABCD_ROOT}/logs/access_${ABCD_PORT}.log combined
ErrorLog ${ABCD_ROOT}/logs/error_${ABCD_PORT}.log
</VirtualHost> -
Activate the configuration: Open the main Apache configuration file (
httpd.conf) and ensure the line that includes the virtual host files is active (with no#at the beginning).# Virtual hosts
Include conf/extra/httpd-vhosts.conf
Step 4: Copying Files and Finalizing Installation
- Create the final folder structure: As defined in the Virtual Host file, create the following directory structure on your disk:
C:\ABCD\www. - Copy the ABCD folders (prepared in Step 2) into
C:\ABCD\www\. The final structure should be:C:\ABCD\www\basesC:\ABCD\www\cgi-binC:\ABCD\www\htdocs
- Create the logs folder: Create the
C:\ABCD\www\logsfolder so Apache can write the access and error log files. - Create the ABCD configuration file:
- Go to the
htdocs/centralfolder. - Copy the file
config.php.templateand rename the copy toconfig.php. - [cite_start]Open
config.phpin a text editor and review the settings, especially the path variables like$ABCD_path[cite: 13] [cite_start]and$db_path[cite: 13], to ensure they match your environment. This file is not overwritten during updates.
- Go to the
Step 5: Starting and Testing the Installation
- Restart the Apache services via the XAMPP or WAMP control panel to apply all new configurations.
- Open your web browser and navigate to the URL:
http://localhost:9090
You should see the login screen for the ABCD Central module.
Default Credentials:
-
Central Module:
- URL:
http://localhost:9090 - User:
abcd - Password:
adm
- URL:
-
Site Administration:
- URL:
http://localhost:9090/site/admin - User:
adm - Password:
x
- URL:
Final Recommendation: After logging in for the first time, immediately change the default passwords for all administrative users to ensure the security of your system.