Installing BadgeEntry
- Make sure that you've completed the prerequisites and that your computers are connected to the network (via your router).
Download BadgeEntry and extract the file somewhere. Copy the contents of the resulting folder to your server's web root (Linux users: Be sure to copy across the file .htaccess which is most likely hiden by default). The web root (also called the document root) is the default place where your server looks to find web documents, such as BadgeEntry.
- If you use XAMPP, check the XAMPP website for instructions. For example, if you're a Windows user who installed XAMPP using the installer and accepting all the defaults, the web root would be
C:\Program Files\xampp\htdocs
. - If you use the version of Apache that's available from the Ubuntu Linux repositories, the web root is
/var/www/apache2-default
.
- If you use XAMPP, check the XAMPP website for instructions. For example, if you're a Windows user who installed XAMPP using the installer and accepting all the defaults, the web root would be
- Navigate to
<where you installed BadgeEntry>/system/application/config
and open the filedatabase-template.php
with a text editor such as Notepad on Windows or gedit on Linux. Do not use Microsoft Word! Edit the file to match your MySQL settings. The default should work with XAMPP. Remember the database name you configured. When you're finished, save the file, then rename it todatabase.php
- Create the database:
- Open up a command prompt (terminal) window (Windows users: Press <WinKey>R, then type
cmd
). - Windows users only: Assuming that you installed XAMPP in C:\Program Files\xampp, type
cd \progra~1\xampp\mysql\bin
. Adjust the command if necessary to reflect where you installed XAMPP. - Type
mysqladmin --user=your_username --password create BadgeEntry
and press <enter>. Substitute your MySQL username where indicated. If you're using XAMPP, the username isroot
and there's no password so you can omit the --password part. If you configured a database name other than BadgeEntry make the appropriate substitution.
- Open up a command prompt (terminal) window (Windows users: Press <WinKey>R, then type
Make a note of your IP address. If you don't know your IP address:
- Linux users: Open up a terminal and type
ifconfig
. Ignoring thelo
section, find where it says, "inet addr:x.x.x.x" where x is a number between 0 and 255. Most likely, your IP address will start with 192.168. NOTE: The IP address 127.0.0.1 isn't the one you're looking for. - Windows users: Open up a command prompt window (Start > Run > type
cmd
and hit <enter>) and typeipconfig /all
. Press <Enter>. Find your IP address there. It's a series of four numbers separated by dots, e.g., 192.168.1.100. Most likely it will begin with "192.168". Note that 127.0.0.1 is not what you're looking for. - If your server's IP address ever changes, you'll have to open up a browser on your server and navigate (using the new IP address) to the BadgeEntry settings screen, where you can update BadgeEntry. To prevent this problem from occurring, you can make sure your IP address doesn't change by either: (a) Making sure that you always turn your server on before any other computer on the network; or (b) configuring your server to use a static IP address.
- Linux users: Open up a terminal and type
- Open up a web browser and type
http://<your server's IP address>
. For example, if your server's IP address is 192.168.1.50, typehttp://192.168.1.50
. If you installed BadgeEntry in a folder below your web root, you'll have to include that, too. - If you did everything right, you should see the BadgeEntry setup screen. Follow the directions there to complete the installation.
- You're done! Yay! You can now access BadgeEntry from any computer on your network by opening a web browser and typing the same address that you used during the install.