- run
git clone https://github.com/Dilloncarley/CiteRite
- cd into
CiteRite
and runmkdir config
- create a file named
config.php
and fill in appropriate values:
<?php
$config_array = array(
'debug' => true,
'templates.path' => 'templates',
'dbHost' => '',
'dbUser' => '',
'dbPass' => '',
'dbName' => ''
);
?>
- Ensure you have Composer Dependency manager and run
composer install
Run php -S localhost:8888 -t public public/index.php
to serve the site
- Do steps from Local Installation, if you haven't already.
- Take all contents of the
CiteRite/public
folder and place them in yourpublic_html
folder. - Delete the
CiteRite/public
folder. - Place the
CiteRite
folder with its contents, in the directory above thepublic_html
folder. - Edit the
.htaccess
file located in theCiteRite
folder.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
RewriteCond %{HTTP_HOST} !^pluto.cse.msstate.edu$ [NC] <--- put your domain in place of pluto.cse.msstate.edu
RewriteBase /~dc1829/ <------put any subfolders you have (This example: pluto.cse.msstate.edu/~dc1829/public_html)
</IfModule>
- Move the
.htaccess
file from above to yourpublic_html
folder