Welcome Guest, Not a member yet? Register   Sign In
Create install.php
#1

[eluser]Total Shop UK[/eluser]
I would like to create an auto install script for Total Shop UK eCommerce but not sure quite how to go about it.

Things that need to be configured

/application/config/config.php - Line 14
Code:
$config['base_url'] = "http://www.totalshopuk.com/";

/application/config/config.php - Line 44
Code:
$config['uri_protocol']    = "REQUEST_URI";

/application/config/database.php - Lines 40-43
Code:
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "username";
$db['default']['password'] = "password";
$db['default']['database'] = "totalshopuk";

Create .htaccess and set base
Code:
RewriteBase /

Import TotalShopUK.sql
Code:
...
CREATE TABLE IF NOT EXISTS `users` (
  `user_id` int(10) unsigned NOT NULL auto_increment,
  `user_date` datetime NOT NULL,
  `user_username` varchar(50) collate latin1_general_ci NOT NULL,
  `user_password` varchar(15) collate latin1_general_ci NOT NULL,
  `user_ip` varchar(15) collate latin1_general_ci NOT NULL,
  `user_active` tinyint(1) unsigned NOT NULL default '1',
  `user_level` tinyint(1) unsigned NOT NULL default '0',
  `user_title` varchar(10) collate latin1_general_ci NOT NULL,
  `user_firstname` varchar(255) collate latin1_general_ci NOT NULL,
  `user_surname` varchar(255) collate latin1_general_ci NOT NULL,
  `user_address1` varchar(255) collate latin1_general_ci NOT NULL,
  `user_address2` varchar(255) collate latin1_general_ci NOT NULL,
  `user_city` varchar(255) collate latin1_general_ci NOT NULL,
  `user_county` varchar(255) collate latin1_general_ci NOT NULL,
  `user_postcode` varchar(10) collate latin1_general_ci NOT NULL,
  `user_country` varchar(255) collate latin1_general_ci NOT NULL,
  PRIMARY KEY  (`user_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=2 ;
...

Set up users > admin
Code:
user_username='[email protected]'
user_password='password'
user_active=1
user_level=1

Set FCKEditor media path
/fckeditor/editor/filemanager/connectors/php/config.php - Line 34

Code:
$Config['UserFilesPath'] = '/fckeditor/media/';
#2

[eluser]n0xie[/eluser]
Take a look at PyroCMS installer. Should give you an idea.




Theme © iAndrew 2016 - Forum software by © MyBB