admin:website
Differences
This shows you the differences between two versions of the page.
| admin:website [2011/07/06 12:42] – created jwarrior | admin:website [2011/07/06 12:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Website ====== | ||
| + | |||
| + | credentials for the new environment | ||
| + | |||
| + | ssh access for the server | ||
| + | superuser/ | ||
| + | normal web doc access/ | ||
| + | |||
| + | these credentials work fine using putty on the 216 address | ||
| + | |||
| + | control panels | ||
| + | |||
| + | General Serverpoint Panel (colo/ | ||
| + | This control panel is for updating the reverse dns (PTR records), and hard rebooting of the server. | ||
| + | http:// | ||
| + | |||
| + | |||
| + | Server Management Panel (plesk-based) | ||
| + | This control panel is for overall management of the software environment for the VPS. There’s a single “subscription” installed, which is basically like a management domain for a set of websites. | ||
| + | |||
| + | https:// | ||
| + | |||
| + | |||
| + | |||
| + | FTP/ | ||
| + | Credentials for updating | ||
| + | |||
| + | Needs from Seth: | ||
| + | |||
| + | (from NVWebhosting.doc) | ||
| + | |||
| + | Here's what the environment looks like at the moment: | ||
| + | -currently using about 12GB disk space for web content and product downloads | ||
| + | -apache + php (and PHP cli for some cron-based tasks) | ||
| + | -uses basic apache htpasswd files for product downloads, and a limited amount of redirect/ | ||
| + | -mysql (one DB, but its large (~900MB) most of it is in phpBB | ||
| + | -no need for email (its handled via google apps) | ||
| + | -dns hosting | ||
| + | -need a SSL vhost for some admin web interfaces, but the rest of the site would live on a plain http webhost. | ||
| + | -access to update files (sftp) looks like sftp may be there | ||
| + | |||
| + | Filesystem Layout for new webhost | ||
| + | (from Filesystemlocationsfornewwebhost.doc) | ||
| + | |||
| + | / | ||
| + | instantiations.com/ | ||
| + | httpdocs/ | ||
| + | downloads/ | ||
| + | docs/ | ||
| + | forums.instantiations.com/ | ||
| + | licensing.instantiations.com/ | ||
| + | www.qualityeclipse.com/ | ||
| + | pd/ | ||
| + | phplib/ | ||
| + | conf/ | ||
| + | vhost.conf < | ||
| + | forums.instantiations.com/ | ||
| + | licensing.instantiations.com/ | ||
| + | conf/ | ||
| + | vhost.conf < | ||
| + | www.qualityeclipse.com/ | ||
| + | |||
| + | |||
| + | Smalltalk Public Web Assets and Administration | ||
| + | (from CopyofSmalltalkWebAssetsandAdministration.doc) | ||
| + | |||
| + | Introduction | ||
| + | This document covers the details of the public web assets for the Instantiations smalltalk company, primarily the web hosting and operations. | ||
| + | |||
| + | Does NOT cover internal web resources, like fogbugz, google apps, etc. | ||
| + | Webhosting Admin | ||
| + | Webhosting is through ServerPoint. | ||
| + | |||
| + | We have an account with the ISP/ | ||
| + | |||
| + | http:// | ||
| + | |||
| + | We’re currently using a VPS, which is akin to a vmware OS installed under our control (without direct access to specific hardware). | ||
| + | server management panel on our (virtual) server: | ||
| + | https:// | ||
| + | |||
| + | As a component of the overall management, there’s also a constrained account setup for dealing with the assets of instantiations website. | ||
| + | insta r0ck4rt11 | ||
| + | |||
| + | Our superuser account on the server: | ||
| + | root | ||
| + | |||
| + | I’ll have the passwords tracked in another document. | ||
| + | Virtual Hosts | ||
| + | The old virtual hosts config was native to apache. | ||
| + | |||
| + | Systemwide changes made from a terminal (rather than thru plesk): | ||
| + | |||
| + | Modified / | ||
| + | include_path = " | ||
| + | |||
| + | Installed the php-mysqli package, which was missing from the installation set: | ||
| + | root# yum install php-mysqli | ||
| + | |||
| + | |||
| + | Plesk auto-manages the apache configuration. | ||
| + | |||
| + | / | ||
| + | < | ||
| + | < | ||
| + | php_admin_flag engine on | ||
| + | php_admin_flag safe_mode off | ||
| + | php_admin_value open_basedir none | ||
| + | </ | ||
| + | < | ||
| + | php_admin_flag engine on | ||
| + | php_admin_flag safe_mode off | ||
| + | php_admin_value open_basedir none | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | / | ||
| + | / | ||
| + | < | ||
| + | < | ||
| + | php_admin_flag engine on | ||
| + | php_admin_flag safe_mode off | ||
| + | php_admin_value open_basedir none | ||
| + | </ | ||
| + | < | ||
| + | php_admin_flag engine on | ||
| + | php_admin_flag safe_mode off | ||
| + | php_admin_value open_basedir none | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Settings permissions for the htpasswd files used by the download section of the website (done after configuring the password protected directorys in the plesk interface): | ||
| + | root# chmod o+x / | ||
| + | root# chown insta.apache / | ||
| + | root# chmod u+rx, | ||
| + | |||
| + | vhost: instantiations.com | ||
| + | document root: / | ||
| + | |||
| + | The following .htaccess file exists at the document root: | ||
| + | RewriteEngine On | ||
| + | |||
| + | # Canonical Hostname Fix (turned off for migration) | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | ############################################################################# | ||
| + | # Java spinoff fixes | ||
| + | ############################################################################# | ||
| + | # fix mime type for static long-term license (old java releases) | ||
| + | AddType application/ | ||
| + | # redirect license requests to the appengine license fullfillment | ||
| + | RewriteCond %{REQUEST_URI} ^/ | ||
| + | RewriteRule / | ||
| + | |||
| + | |||
| + | ############################################################################# | ||
| + | # Redirects | ||
| + | ############################################################################# | ||
| + | # ensure oldoldold forum requests get pushed to forums.instantiations.com | ||
| + | RedirectMatch permanent ^/ | ||
| + | #grab bag of SEO/old URL path redirects for VAST | ||
| + | RedirectMatch permanent ^/VAST$ / | ||
| + | RedirectMatch permanent ^/VAST/$ / | ||
| + | RedirectMatch permanent ^/ | ||
| + | RedirectMatch permanent ^/ | ||
| + | RedirectMatch permanent ^/ | ||
| + | RedirectMatch permanent ^/ | ||
| + | RedirectMatch permanent ^/ | ||
| + | RedirectMatch permanent ^/ | ||
| + | RedirectMatch permanent ^/ | ||
| + | RedirectMatch permanent ^/ | ||
| + | RedirectMatch permanent ^/ | ||
| + | |||
| + | |||
| + | Product downloads are interesting. | ||
| + | |||
| + | Through plesk, setting up the password protected directories for each product download is simple. | ||
| + | |||
| + | The filename patterns are as follows: | ||
| + | d..httpdocs@downloads@vaast | ||
| + | d..httpdocs@downloads@vast-base | ||
| + | d..httpdocs@downloads@vast-license | ||
| + | d..httpdocs@downloads@wbtt | ||
| + | d..httpdocs@downloads@wkbg | ||
| + | d..httpdocs@downloads@wkctrl | ||
| + | d..httpdocs@downloads@wbpro | ||
| + | d..httpdocs@downloads@wkpro | ||
| + | |||
| + | I have updated the / | ||
| + | |||
| + | need to look at this ^^^^ | ||
| + | Database Setup | ||
| + | |||
| + | Both the forum site and the licensing code require database backends, currently MySQL. | ||
| + | Forums | ||
| + | |||
| + | The phpBB-based forums are expecting a database named “phpBB”. | ||
| + | |||
| + | As this is a third party software suite, I’m not going to detail the schema and table natures. | ||
| + | |||
| + | DB: phpBB | ||
| + | user: forumuser | ||
| + | pass: psas#Xce | ||
| + | |||
| + | Licensing DB | ||
| + | |||
| + | The licensing system has a simple 2 table system, one representing the license holders and the other representing the actual licenses in a one-to-many association. | ||
| + | |||
| + | CREATE TABLE `account` ( | ||
| + | `id` int(11) NOT NULL auto_increment, | ||
| + | `username` varchar(100) collate utf8_unicode_ci NOT NULL, | ||
| + | `email` varchar(100) collate utf8_unicode_ci default NULL, | ||
| + | `company` varchar(100) collate utf8_unicode_ci default NULL, | ||
| + | `password` varchar(100) collate utf8_unicode_ci default NULL, | ||
| + | `fullname` varchar(100) collate utf8_unicode_ci default NULL, | ||
| + | `source` varchar(100) collate utf8_unicode_ci default NULL, | ||
| + | PRIMARY KEY (`id`), | ||
| + | UNIQUE KEY `username` (`username`), | ||
| + | KEY `email` (`email`), | ||
| + | KEY `company` (`company`), | ||
| + | KEY `fullname` (`fullname`), | ||
| + | KEY `source` (`source`) | ||
| + | ) ENGINE=MyISAM AUTO_INCREMENT=4209 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
| + | |||
| + | CREATE TABLE `license` ( | ||
| + | `id` int(11) NOT NULL auto_increment, | ||
| + | `acct_id` int(11) NOT NULL, | ||
| + | `productcode` varchar(100) collate utf8_unicode_ci default NULL, | ||
| + | `startdate` datetime default NULL, | ||
| + | `enddate` datetime default NULL, | ||
| + | `source` varchar(100) collate utf8_unicode_ci default NULL, | ||
| + | PRIMARY KEY (`id`), | ||
| + | KEY `acct_id` (`acct_id`), | ||
| + | KEY `productcode` (`productcode`), | ||
| + | KEY `startdate` (`startdate`), | ||
| + | KEY `enddate` (`enddate`), | ||
| + | KEY `source` (`source`) | ||
| + | ) ENGINE=MyISAM AUTO_INCREMENT=12024 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
| + | |||
| + | Effort is made to ensure all input coming into and out of the system is UTF-8 format. | ||
| + | |||
| + | There are also three tables containing information from a legacy system (download_oldcontrol, | ||
| + | |||
| + | NOTE: The DB credentials are baked into the DBLayer.php library. | ||
| + | |||
| + | DB: vastlicense | ||
| + | user: vastlicense | ||
| + | pass: xbr34xjT!! | ||
| + | |||
| + | The db vastlicense may be all we need to backup. Need root password for mysqlbackup. | ||
| + | mysqldump -u root -ppassword vastlicense > someTimeStampedFileName.dmp | ||
| + | Implementation Details | ||
| + | |||
| + | Dreamweaver Template and setup | ||
| + | Drew can fill this in, or we can break it out into an independent document. | ||
| + | License System | ||
| + | The components of the licensing system: | ||
| + | ● licensing library | ||
| + | ● evaluation form | ||
| + | ● management interface | ||
| + | ● crontask that generates apache auth files | ||
| + | ● old control lookup | ||
| + | |||
| + | Licensing Library: | ||
| + | PHP library code that uses a simple ORM system. | ||
| + | |||
| + | Evaluation Form: | ||
| + | PHP form used by potential customers to request software evaluations. | ||
| + | |||
| + | Management Interface | ||
| + | Primitive templating system. | ||
| + | |||
| + | Crontask | ||
| + | schedule job that runs every ~10 minutes and regenerates the htpasswd files used by apache to restrict access to the downloads. | ||
| + | |||
| + | not sure what this ^^^ means | ||
| + | Old control lookup | ||
| + | There are several tables and one part of the management interface dedicated to the searching and presentiation of data from what’s commonly referred to as the “old control system”. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Forums | ||
| + | The forums site is currently a phpBB-based forum site. It has a short transition lifetime left, and the main topic areas will be pushing their discussions into other services (such as public google groups) as appropriate. | ||
| + | |||
| + | DMM comments | ||
| + | I have contacted Google Groups about converting phpBB to the new va-smalltalk group. | ||
| + | |||
| + | |||
| + | |||
| + | Questions for Seth: | ||
| + | What is the mysql root password? | ||
