Set up general configurations including database and API credentials.
DB_HOST
, DB_USERNAME
, DB_PASSWORD
, and DB_NAME
to your database settings.CLIENT_ID
and CLIENT_SECRET
to your OAuth application credentials.REDIRECTURI
to the appropriate OAuth redirect URI.Configure database connection specifically for database interactions.
$host
, $username
, $password
, and $db_name
to match your database server details.Set up database connection for search operations and configure session settings.
session_set_cookie_params
with appropriate lifetime and flags.Adjust UI elements for different departments using style configurations.
$deptStyles
array to set custom backgrounds and logos for each department.Visit the Apache Friends website to download the latest version of XAMPP. Choose the version compatible with your operating system.
Run the installer and follow these steps:
C:/xampp
).Once installed, open the XAMPP Control Panel and start both Apache and MySQL to ensure they are functioning.
In the XAMPP Control Panel, you will see options to start Apache and MySQL:
This setup is necessary for running any web application that uses PHP and MySQL, like StoicCAD.
Download StoicCAD from its official source or GitHub repository. Extract the downloaded file into your htdocs folder located in the XAMPP installation directory. You might create a subfolder, e.g., stoiccad, to keep your installation organized.
Edit the configuration files in the stoiccad/config directory:
Open a web browser and navigate to http://localhost/stoiccad to access StoicCAD. Ensure all settings are correct to see StoicCAD running smoothly on your local server.
To make your XAMPP server accessible from the internet, you need to set up port forwarding in your router settings:
After setting this up, you can access your server from outside your local network by typing your external IP address into a browser.
Configure Apache to serve StoicCAD from a domain name:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/xampp/htdocs/stoiccad"
ServerName yourdomain.com
ServerAlias www.yourdomain.com
ErrorLog "logs/yourdomain.com-error.log"
CustomLog "logs/yourdomain.com-access.log" common
</VirtualHost>
To integrate StoicCAD modules like Stoic911, StoicMDT, and StoicTickets into your system with custom domain settings, you'll need to modify the iframe sources within their respective HTML files. Follow these instructions to update the `ui/index.html` for each module:
<iframe src="https://hosting.thestoicbear.dev/911/" title="MDT Form"></iframe>
<iframe src="https://yourdomain.com/911/" title="Stoic911"></iframe>
<iframe src="https://yourdomain.com/login.php" title="StoicMDT"></iframe>
This configuration allows your StoicCAD installation to seamlessly integrate with the specific setups you have for each module, ensuring that all parts of the system communicate correctly under your domain.