Library Management System on MVC architecture
- Clone the repository
- Get your LAMP setup . LAMP
-
Start mysql server
-
Setup DB from the file
DatabaseSetup.txt
-
Edit
sampleconfig.php
file with appropirate details in theconfig
directory and rename it toconfig.php
-
Database setup is done !
-
In the project root directory setup composer by the command
composer install
composer dump-autoload
-
Configure Vhost config file
-
Make sure Vhost module is enabled in
sudo nano /etc/httpd/conf/httpd.conf
before proceding to the next step
sudo nano /etc/httpd/conf/extra/httpd-vhosts.conf
-
Paste the
lib.local.conf
(Make sure you give the correct public directory and error log addresses) -
Add the server domain in the hosts file
sudo nano /etc/hosts
- Add
127.0.0.1 lib.local
(or your domain name) in the hosts
- Localhost : In the
public
directory, executephp -S localhost:<PORT>
to start the server - Vhost : Start server at your server name -
lib.local