Requirements:
- Apache (tested)
- PHP
- MySQL
Installation steps:
-
chmod /site_photo directory for 755 for directory and 655 for files
-
modify config.php
$protocol = "https://";
$rootpath = "domain name";$mysql_server = "<host_address>";
$mysql_username = "";
$mysql_password = "<mysql_password>";
$mysql_db = "<table_name>"; -
modify authenticate.php
$DATABASE_HOST = "<host_address>";
$DATABASE_USER = "<mysql_account>";
$DATABASE_PASS = "<mysql_password>";
$DATABASE_NAME = "<table_name>"; -
Add .htaccess to root directory for URLRewrite
AddType application/x-httpd-php .html .htm
RewriteEngine On
RewriteRule ^site/([^/])/([^/])$ /site.html?id=$1&sort=$2 [L]
RewriteRule ^phone/([^/])/([^/])$ /phone.html?site=$1&phone=$2 [L]
RewriteRule ^add/([^/])$ /addcustom.html?id=$1 [L]
RewriteRule ^report/([^/])/([^/])$ /report.php?id=$1&type=$2 [L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.)$ https://fqdn/$1 [R,L]
ErrorDocument 404 https://fqdn/404.html -
Import the export_template.sql to MySQL as the table template
-
default username: admin
default password: password