Programmer's Procedure to Set Up a New Site
These are the steps for setting up a new website using the Cy Think framework, tools and components. This procedure is for programmers because some steps involve changes to the program code. It is included with the general system help files because the first five steps are things the owner of the new website must do to get things started.
Many steps in the setup procedure require password-protected access. Also, later steps in the procedure require specialized knowledge of systems and programming in general and the Cy Think methodology in particular. The Cy Think methodology is intended to give the website owner the maximum level of control possible over their website. At the same time, Cy Think intends to make this control as easy and understandable as possible.
If you are the Cy Think customer or represent the Cy Think customer, the first five steps are directed to you. Please note that you create the password for your website and you retain full control of the website. You must give Cy Think the password for Cy Think to work on the site and make changes to the site. Cy Think will not change the password. If, at any time, you want Cy Think to cease making changes to the website, you only need to change the password.
These are the steps.
-
Connect to 1and1 and purchase a website. You must buy a Linux website with MySQL database support. This is currently $9.99 per month and the minimum term is three (3) months. As part of this step you will create a password for access to your new website.
-
You may need to wait an hour or more for 1and1 to complete the setup procedure on their part and send you your account number.
-
Connect to 1and1 and order your domain name. This is currently included in your website purchase at 1and1. Your domain is the user friendly name like mydomain.com.
-
It will take 24 hours or more for your domain name to be fully activated.
-
You must pay Cy Think the service fee and provide Cy Think with the account number and password. The remaining steps will be completed by Cy Think in accordance with the agreement between you and Cy Think. The agreement lists all your requirements and specifies which requirements are to be completed in return for the fee paid for building your website. The service fee includes at least two and sometimes three telephone or face-to-face meetings to resolve problems and complete the engagement to your satisfaction.
-
Connect to 1and1
-
Set up FTP and change the FTP password, if you would like to make it easier to remember. Record the password in the password file. Note the time. But, continue with the next step since it may take 30 minutes for the new password to become effective.
-
Create the main database. Note the time. But, continue with the next step since it will take 5 minutes or more for the database to appear.
-
Create a Webmail account for admin, e.g. admin@customer.com.
-
Stay connected to 1and1.
-
Create a local site directory for the site. E.g. D:\customer\site
-
Copy the starter configuration files from D:\CyThink\coreCMS\config to the new local site directory. These are some of the files.
-
site.css, print.css, press.css
-
*.gif
-
office.jpg
-
index.htm, bodypart.txt, feedback.txt, index.txt, menuctrl.txt, menudata.txt, picrings.txt, robots.txt, search.txt, sysparms.txt, registration.txt, login1.txt, login2.txt.
-
Copy the My folder and its contents from D:\CyThink\coreCMS\ to the new local site directory.
-
Copy the JshDATA.pm file from the selected source to the new local site directory.
-
Customize these graphic elements.
-
Create office.jpg approx. 1000px by 756px in size.
-
Apply transparent effect (50%) to office.jpg
-
Create icon.gif approx. 92px by 92 px in size.
-
Edit site.css.
-
Change background-image, if necessary.
-
Change the link colors, if necessary.
-
Make any other needed changes.
-
Edit menuctrl.txt.
-
Verify ...
-
Make any other needed changes.
-
Edit menudata.txt: Change menu label for members.pl to Admin. Remove extra content in menu #1.
-
Click Content, select Configuration Files and click Continue.
-
Select menudata.txt. Click "Edit"
-
Change menu label for members.pl to Admin.
-
Remove everything in menu #1 except the index.htm, feedback.htm, contact.htm, search.htm, members.pl
-
Edit bildable.txt.
-
Verify ...
-
Make any other needed changes.
-
Edit registration.txt.
-
Verify ...
-
Make any other needed changes.
-
Edit login1.txt.
-
Verify ...
-
Make any other needed changes.
-
Edit login2.txt.
-
Verify ...
-
Make any other needed changes.
-
Edit sysconfg.txt. Make sure it contains the following core pages. index.htm, feedbackXXX.htm (one for each feedback page), contact.htm, search.htm.
-
By now the database should be ready. Note the time. Change the database password, if you would like to make it easier to remember. Record the password in the password file.
-
Note the Database Name, User Name and Password or leave the window open on the desktop.
-
Edit JshDATA.pm in the local site directory and change the Database Name, User Name and Password. Also, change the value of the encryption key.
-
By this time, FTP should be ready. Log onto FTP for the first time and FTP the files from the site directory to the remote site.
-
FTP the following files from D:\CyThink\coreCMS to the root directory on the remote site.
-
My (the folder)
-
*.js
-
*.pl
-
*.pm
-
Delete index.html from the server.
-
Verify that the copied index page appears.
-
Change permissions on .pl files (755) Use ctrl to select all .pl files give owner rwx, give group and other execute only.
-
Verify that the login form appears. This verifies the permissions were set properly for members.pl.
-
Use saved SQL queries to create the CMS tables in database.
-
Login to new system & access phpMyAdmin
-
Click on the database name, then click on the SQL tab.
-
Browse for a recent D:\CyThink\coreCMS\sql\alltables_year_month_day.sql.
-
If conditions indicate, verify the contents of the file with UltraEdit and remove the CREATE DATABASE and USE commands from the sql file.
-
Click Go
-
Repeat using D:\CyThink\coreCMS\code_add_code.sql.
-
Stay logged on to phpMyAdmin
-
Create the programmer account on the new site
-
Go to site
-
Click Admin
-
Register as a new user
-
Go back to phpMyAdmin.
-
Open the user table and change usertype to programmer
-
Note the user ID and password (e.g. 100WaySal)
-
Logon to the new site and change the user ID to your preference.
-
Logon to the new site with the new user ID and change the password to your preference
-
Logon with the new user ID and password.
-
Add some appropriate values for usertype2.
-
Verify the list of editable configuration files.
-
Click Pages and System Configuration Files Add / Remove
-
Select bodypart.txt, menuctrl.txt, menudata.txt, picrings.txt, robots.txt and sysparms.txt. Then, click "Update File List".
-
Verify the list of editable files.
-
Click Pages and Configure Editable Files (based on TXT files)
-
These files should be selected. If needed, make changes and then click "Update File List". Editable files include editable.txt, index.txt, search.txt, sysconfg.txt
-
Verify the content of robots.txt
-
Click Content, select Configuration Files and click Continue.
-
Select robots.txt and click "Edit the File"
-
Change the comment
-
Other changes, as needed.
-
Verify the content of menuctrl.txt.
-
Click Content, select Configuration Files and click Continue.
-
Select menuctrl.txt and click "Edit the File"
-
Remove menu items, as needed
-
Change column values to 0 except for programmer & admin.
-
Change admin values as appropriate.
-
Other changes, as needed.
-
Update Parameters (Parms)
-
Click Parms.
-
Change the title
-
Change the subtitle
-
Select page_style of inset or fullwidth.
-
Change the icon_alttext
-
Activate fields and tables appropriate to the needs of the customer.
-
Other changes, as needed.
-
Edit the file D:/CyThink/coreCMS/sql/code_add_codes.sql as needed.
-
Close the phpmyadmin window. Log out of the Control Panel.
-
Access phpMyAdmin on the destination host control panel: Login >> MySQL Administration >> phpMyAdmin.
-
Click the database name at the top of the list of tables.
-
Click SQL in the row of tabs at the top of the page.
-
Browse for the command file using the Browse button in the lower half of the page.
-
Select the file, click Open and then click Go.
-
Examine the results and fix as needed. If copying the code table, be sure the "codecode-codecode" row is present.
-
Close the phpmyadmin window. Log out of the Control Panel.
-
Edit the table to get the codecode values.
-
Execute / Import the table into the new system.
-
To activate the feedback page, create an inboxtype of "Feedback." If there are to be more than one feedback page, create one inboxtype for each feedback page.
-
Note the key for each feedback type.
-
For each additional feedback type, manually edit a feedbackXXX.txt as follows.
-
Clone the feedback.txt file for each feedback type. In each feedback.txt file, put the corresponding key in the "ProductOrService" hidden field value.
-
FTP the feedbackXXX.txt files to the site.
-
If needed, add the code values for the "codecode" of usertype2.
-
Republish all HTML
-
If you made sysconfg.txt editable, change it back.
-
Republish all HTML
-
Configure editable ??
-
Uncheck sysconfg.txt, buildable.txt & editable.txt
-
Add pages according to what was agreed with the customer.
-
Republish all HTML
This procedure is abbreviated and high level. Programmers should apply their knowledge and experience to supply any missing details.
|