-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Certainly! Here's a step-by-step guide on how to access the application:
-
Install XAMPP: Make sure XAMPP is installed on your PC. You can download it from the official website: XAMPP.
-
Check PHP Version: Ensure that PHP version 5 and above is installed on your system. You can check your PHP version by running the following command in the command prompt:
php -v
-
Create a Database: Open XAMPP and start the Apache and MySQL services. Then, create a new database in phpMyAdmin or any MySQL client tool.
-
Import Database.sql: Locate the
Database.sqlfile in thesqlfolder of the application. Import this SQL file into the database you just created. -
Configure Database Connection: Open the
config.phpfile in the application's folder and set the database configuration parameters such as hostname, username, password, and database name.// config.php $database = new Connection('database_host', 'database_username', 'database_password', 'database_name');
-
Set Environment Variable: Add the PHP executable path to the system environment variables. For example, set the path to
C:\xampp\php. -
Run the Application: Open the command prompt and navigate to the folder where the application is located. Run the following command:
php -S localhost:3000
This command starts a built-in PHP web server on
localhost:3000. -
Access the Application: Open a web browser and navigate to
http://localhost:3000to access the application.
Ensure that all the mentioned steps are followed carefully to successfully set up and run the application. If any issues arise, double-check the configurations and make necessary adjustments.
Important Notice: Application Placement
To ensure proper functionality, please note that the application must reside in the root folder of the current domain. The web server should be configured to serve the application directly from the domain's root.
Please follow these steps:
-
Move Application to Root: Ensure that all the application files and folders are placed directly in the root directory of your web server.
-
Configure Web Server: Adjust your web server configuration to point to the root folder of your application. For Apache, this might involve updating the virtual host configuration.
-
Restart Web Server: After making changes, restart your web server to apply the configuration.
-
Access the Application: Once the application is correctly placed in the root folder and the web server is configured accordingly, you should be able to access the application directly from the domain.
If you encounter any issues or have questions, feel free to reach out for assistance. Thank you!