<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/serverdatabase/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/serverdatabase/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 02 Jul 2014 14:56:52 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/serverdatabase/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/serverdatabase/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="sdb-installation-and-configuration-guide"&gt;SdB Installation and Configuration Guide&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Author: Brendon Martino&lt;/li&gt;
&lt;li&gt;Date: 07/02/2014&lt;/li&gt;
&lt;li&gt;License: The GNU General Public License v3 (GPL v3)&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="os-setup"&gt;OS Setup&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Install and configure your base OS. I have used Fedora in this example.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;We will need several base package sets, including a few extra ones if we are using a VM: &lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;
* LAMP stack:
yum install httpd php-mysql php mysql mysql-server mysql-libs mysql-devel
&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Make sure you have the correct hostname and IP set on the server.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Edit your firewall (if needed) to allow traffic through port 80 (http).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check php, mysql versions:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;
 php -v
PHP 5.4.17 (cli) (built: Jul 12 2013 15:29:27) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

mysql -V
mysql  Ver 14.14 Distrib 5.5.32, for Linux (i686) using readline 5.1
 &lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Unzip the contents of the sdb project into the web directory:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;
su -
cd /var/www/html/
mkdir sdb
tar -xspvf sdbfiles-v7.October-28-2013.tar.gz ./sdb
ls -l ./sdb

-rw-rw-r--. 1 root root  17872 Oct 31 11:03 add_entry.php
.
.
.
-rw-rw-r--. 1 root root   8671 Oct 31 11:09 upload.php
 &lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Start mysql daemons:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;
service mysqld start
systemctl enable mysqld.service
 &lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Create a root account for mysql:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;
 bash# mysql -u root mysql
mysql&gt; UPDATE user SET Password=PASSWORD('your_password_goes_here') WHERE user='root';
mysql&gt; FLUSH PRIVILEGES; 
mysql&gt; exit;
 &lt;/pre&gt;
&lt;h1 id="configure-mysql-db"&gt;Configure Mysql DB&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Log into the mysql db and run the sql code to create the db we will be using.&lt;/li&gt;
&lt;li&gt;The inventory.sql fiel can be found under the dir: /var/www/html/sdb/data&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;
$ mysql -u root mysql -p

mysql&gt; CREATE DATABASE sdb;
mysql&gt; USE sdb;

* create tables listed in the inventory.sql file:

mysql&gt; CREATE TABLE users ( 
 uid INT NOT NULL AUTO_INCREMENT PRIMARY KEY, 
 username VARCHAR(15) NOT NULL, 
 password VARCHAR(15) NOT NULL, 
 restricted_data_access BOOLEAN NOT NULL DEFAULT 0,
 edit_rights BOOLEAN NOT NULL DEFAULT 0  
);

* repeat for all tables in the db in the inventory.sql file...

* add an admin user, etc:
INSERT INTO sdb.users VALUES (NULL, 'admin', 'admin_password_goes_here', TRUE, TRUE );

* ...everything else can be configured through the app.
 &lt;/pre&gt;
&lt;h1 id="fix-the-webroot"&gt;Fix the webroot&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Create a redirect so the server points all root traffic to the app:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;
cd /var/www/html
vi index.html



&lt;/pre&gt;
&lt;h1 id="test-the-webapp"&gt;Test the WebApp&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Surf to  &lt;a href="http://yourhostname/" rel="nofollow"&gt;http://yourhostname/&lt;/a&gt;  and login as admin.&lt;/li&gt;
&lt;li&gt;Test by creating users, data, etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="troubleshooting"&gt;Troubleshooting&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;If you can't get your webapp to work, check your firewall and selinux settings...&lt;/li&gt;
&lt;li&gt;Try a sample HTML page and make sure everything works before testing the sdb application.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brendon Martino</dc:creator><pubDate>Wed, 02 Jul 2014 14:56:52 -0000</pubDate><guid>https://sourceforge.net9c7d190b838d92cb443647a942266644dc1ea2ca</guid></item><item><title>Home modified by Brendon Martino</title><link>https://sourceforge.net/p/serverdatabase/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/serverdatabase/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
&lt;ul class="md-users-list"&gt;
&lt;li&gt;&lt;a href="/u/brendonmartino/"&gt;Brendon Martino&lt;/a&gt; (admin)&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;span class="download-button-53b41959d46bb404d0c0d707" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brendon Martino</dc:creator><pubDate>Wed, 02 Jul 2014 14:38:17 -0000</pubDate><guid>https://sourceforge.neteb72477fbf6e7d6b343283ceee62095a99f2b216</guid></item></channel></rss>