Website for alloting hostel rooms written in PHP, using MySql for backend and deployed using Xampp. (Apache and MySql)
- To setup move the hostel folder to lampp/htdocs
cp hostel/* /opt/lampp/htdocs
- To enable phpmyadmin
cd /opt/lampp/etc/extra
- Edit httpd-xampp.conf to the following
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>
- Set password for phpmyadmin and mysql using
sudo /opt/lampp/lampp security
- Set the same password for variable db_pass in
validate.php
assign.php
allot.php
- Open phpmyadmin, login using password set above
- Create database
hostel_allotment
- Create table
users
with the following schema
id VARCHAR 13
Name VARCHAR 50
pass VARCHAR 8 (as we use ddmmyyyy format)
selected BOOLEAN default - As defined: 0
- Create table
rooms
with the following schema
hostel VARCHAR 3
room VARCHAR 6 (to support 290/11 format)
id VARCHAR 13 default - NULL
- Import CSVs into the database