Follow these steps to set up and run the FormFarm project on your local machine using XAMPP.
- XAMPP installed on your system.
- The project files are located in
e:\xampp\htdocs\FormFarm.
- Open the XAMPP Control Panel.
- Click Start for both Apache and MySQL modules.
- Ensure the Status icons turn green.
- Open your web browser and go to
http://localhost/phpmyadmin/. - Click on the New button in the left sidebar to create a new database.
- Enter
formfarmas the database name and click Create. - Click on the newly created
formfarmdatabase. - Click on the Import tab at the top.
- Click Choose File and navigate to your project directory:
e:\xampp\htdocs\FormFarm\database\migrations\schema.sql. - Click Import (at the bottom of the page).
- Open
e:\xampp\htdocs\FormFarm\config\database.php. - Ensure the settings match your XAMPP MySQL credentials (usually
rootwith no password).
return [
'host' => 'localhost',
'dbname' => 'formfarm',
'user' => 'root',
'pass' => '',
];- Open your browser and navigate to:
http://localhost/FormFarm/ - The project's
.htaccesswill automatically route you to thepublic/folder.
- 404 Error: If you see a "Not Found" error, ensure you are accessing the project via
http://localhost/FormFarm/. The project is configured to handle the subdirectory automatically, but accessing it viahttp://localhost/will not work unless you move the files to the roothtdocsfolder. - Database Connection Error: Double-check the
config/database.phpfile and ensure MySQL is running in XAMPP. - Port Conflict: If Apache fails to start, check if another application (like Skype or VMware) is using port 80 or 443.