- XAMPP v8.2.12 (includes PHP 8.2.12) - Download Link
- MySQL database (included with XAMPP)
- Locate your XAMPP's
htdocs
directory (default:C:/xampp/htdocs
) - Place the entire
association-manager
project folder directly in thehtdocs
directory- Correct path should be:
C:/xampp/htdocs/association-manager
- Correct path should be:
- Start XAMPP's MySQL service
- Open phpMyAdmin (
http://localhost/phpmyadmin
) - Create a new database for the project
- Import the database structure and data:
- Select your newly created database
- Click on "Import" in the top menu
- Choose the
TDW.sql
file - Click "Go" to import the database structure and data
-
Navigate to
app/config/database.config.php
-
Update the database connection parameters with your local settings:
// Example configuration const DB_ENGINE = "mysql"; const DB_HOST = "localhost"; const DB_PORT = "3306"; const DB_NAME = "association_manager"; const DB_USERNAME = "root"; const DB_PASSWORD = "";
-
The project uses a BASE_URL constant defined in
app/config/app.config.php
:const BASE_URL = "http://localhost/association-manager/public/";
-
Important: If you place the project in a different location, you must update this URL to match your setup
- The URL should point to the
public
folder in your project - Always use HTTP protocol (e.g.,
http://
) instead of file system paths - Make sure the path matches your actual project location relative to the web server root
- The URL should point to the
- Start
XAMPP
'sApache
andMySQL
services - Access the project through your web browser using the BASE_URL
- Default:
http://localhost/association-manager/public/
- Default:
If you encounter any PHP extension-related errors while running the project:
- Locate your php.ini file:
- Default path:
C:/xampp/php/php.ini
- Default path:
- Open the file in a text editor
- Find the extension mentioned in the error message (e.g.,
extension=pdo_mysql
) - Remove the semicolon (;) at the start of the line to uncomment and enable the extension
- Save the file and restart the Apache service in XAMPP
- If you see a 404 error, verify that:
- The project folder is directly in
htdocs
- The BASE_URL constant matches your actual project location
- Apache service is running
- The project folder is directly in
- For database connection errors:
- Verify your database credentials
- Ensure MySQL service is running
- Confirm the database exists and has been properly imported
- Check that the database name in database.config.php matches the one you created
- For PHP extension errors:
- Note the exact extension name from the error message
- Enable it in php.ini as described in section 6
- Make sure to restart Apache after any php.ini changes