Migrated from GitLab wiki
@@ -0,0 +1,85 @@
|
||||
|
||||
|
||||
eStack website running on https://www.estack.com/ uses code igniter as framework.
|
||||
|
||||
To install on your local machine you need the following:
|
||||
|
||||
Note: This is installed on Windows Machine using XAMPP
|
||||
|
||||
1. Install XAMPP:
|
||||
|
||||
- Download XAMPP from the official website: [XAMPP Downloads](https://www.apachefriends.org/index.html).
|
||||
|
||||
- Run the installer and follow the on-screen instructions.
|
||||
|
||||
- During installation, choose the components (Apache, MySQL, PHP, phpMyAdmin).
|
||||
|
||||
2. Start XAMPP:
|
||||
|
||||
- Open the XAMPP Control Panel after installation.
|
||||
|
||||
- Start the Apache and MySQL services by clicking the “Start” button next to each.
|
||||
|
||||
3. - Clone code on `htdocs` folder inside your XAMPP installation directory. Eg. C:\xampp\htdocs
|
||||
|
||||
> git clone git@git.estack.com:rob/estack-public-site.git estack.com
|
||||
|
||||
|
||||
4. Configure CodeIgniter:
|
||||
|
||||
- Open the `application/config/config.php` file in your CodeIgniter project folder.
|
||||
|
||||
- Set the `base_url` to your local development environment. For example:
|
||||
|
||||
$config[‘base_url’] = ‘http://localhost/estack.com/';
|
||||
|
||||
5. Dump database `pm_www` on the server and import it on your phpmyadmin. Ask @rob to create one.
|
||||
|
||||
6. Configure Database:
|
||||
|
||||
- Open the `application/config/database.php` file.
|
||||
|
||||
- Update the database configuration with your MySQL settings:
|
||||
|
||||
$db[‘default’] = array(
|
||||
|
||||
‘dsn’ => ‘’,
|
||||
|
||||
‘hostname’ => ‘localhost’,
|
||||
|
||||
‘username’ => ‘root’,
|
||||
|
||||
‘password’ => ‘’,
|
||||
|
||||
‘database’ => ‘pms_www’,
|
||||
|
||||
// …
|
||||
|
||||
7. To make routing works add `.htacess` file on your local under on estack.com folder.
|
||||
|
||||
> RewriteEngine On
|
||||
|
||||
> #RewriteBase /
|
||||
|
||||
> RewriteCond %{REQUEST_FILENAME} !-f
|
||||
|
||||
> RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
||||
> RewriteRule (.*) index.php/$1
|
||||
|
||||
|
||||
6. Test the Setup:
|
||||
|
||||
- Open your web browser and navigate to `http://localhost/estacks.com/`.
|
||||
|
||||
Now you have successfully set up eStack with XAMPP on Windows.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user