Menu

Tree [r236] /
 History

HTTPS access


File Date Author Commit
 lib 2010-09-10 gagarineyaikhom [r223] Added sanity checks.
 resources 2010-09-20 gagarineyaikhom [r230] Added tutorial videos.
 .project 2010-05-16 gagarineyaikhom [r142] Major Revision
 README 2010-10-15 gagarineyaikhom [r235] Project concludes.
 README.developer 2010-02-25 gagarineyaikhom [r53] Added information for setting up proxy forwarding.
 about.html 2010-10-04 gagarineyaikhom [r234] Update information.
 add2dm.php 2010-03-17 gagarineyaikhom [r82] * Completed JSON encoding of MySQL errors.
 add2dr.php 2010-03-17 gagarineyaikhom [r82] * Completed JSON encoding of MySQL errors.
 arta.php 2010-08-24 gagarineyaikhom [r221] Grant read access to 'admin' created items.
 ch.php 2010-09-20 gagarineyaikhom [r228] Fixed email regular expression.
 chF.php 2010-09-10 gagarineyaikhom [r223] Added sanity checks.
 checkIntegrity.php 2010-01-03 gagarineyaikhom [r2] First working prototype for annotation display ...
 cl.php 2010-07-29 gagarineyaikhom [r196] Started adding support for ownership.
 clF.php 2010-05-16 gagarineyaikhom [r142] Major Revision
 cm.php 2010-07-29 gagarineyaikhom [r196] Started adding support for ownership.
 cmF.php 2010-05-16 gagarineyaikhom [r142] Major Revision
 cmo.php 2010-07-27 gagarineyaikhom [r171] Create model: code refinement and session requi...
 co.php 2010-07-29 gagarineyaikhom [r196] Started adding support for ownership.
 coF.php 2010-05-16 gagarineyaikhom [r142] Major Revision
 cr.php 2010-07-29 gagarineyaikhom [r196] Started adding support for ownership.
 crF.php 2010-05-16 gagarineyaikhom [r142] Major Revision
 create2DMarker.html 2010-03-05 gagarineyaikhom [r58] Added orientations. Now all models have orienta...
 create2DRegion.html 2010-03-05 gagarineyaikhom [r58] Added orientations. Now all models have orienta...
 create3DMarker.html 2010-01-03 gagarineyaikhom [r2] First working prototype for annotation display ...
 create3DMarker.php 2010-03-11 gagarineyaikhom [r72] Added update timestamp and creation date columns.
 createLayer.html 2010-03-07 gagarineyaikhom [r61] Major revision
 createModel.html 2010-03-05 gagarineyaikhom [r56] Model data are now stored in the ngembryo datab...
 createOrientation.html 2010-03-05 gagarineyaikhom [r58] Added orientations. Now all models have orienta...
 createResource.html 2010-01-03 gagarineyaikhom [r2] First working prototype for annotation display ...
 cri.php 2010-07-27 gagarineyaikhom [r174] Create resource item: code refinement and sessi...
 criF.php 2010-05-16 gagarineyaikhom [r142] Major Revision
 crs.php 2010-07-29 gagarineyaikhom [r196] Started adding support for ownership.
 crsF.php 2010-05-16 gagarineyaikhom [r142] Major Revision
 da.php 2010-07-29 gagarineyaikhom [r196] Started adding support for ownership.
 db.php 2010-07-27 gagarineyaikhom [r177] Code refinement.
 dev.php 2010-09-17 gagarineyaikhom [r225] Removed sanity check to fit existing user setti...
 dl.php 2010-07-29 gagarineyaikhom [r196] Started adding support for ownership.
 do.php 2010-07-29 gagarineyaikhom [r196] Started adding support for ownership.
 dr.php 2010-07-29 gagarineyaikhom [r196] Started adding support for ownership.
 dri.php 2010-05-16 gagarineyaikhom [r142] Major Revision
 ea.php 2010-07-30 gagarineyaikhom [r205] Added facility for editing annotation details.
 eaF.php 2010-07-30 gagarineyaikhom [r205] Added facility for editing annotation details.
 el.php 2010-07-30 gagarineyaikhom [r206] Minor changes to message.
 elF.php 2010-07-30 gagarineyaikhom [r202] Added facility for editing layer details.
 ers.php 2010-07-30 gagarineyaikhom [r203] Allow saving changes when title and author are ...
 ersF.php 2010-07-30 gagarineyaikhom [r200] Added facility for editing resource details.
 gar.php 2010-08-24 gagarineyaikhom [r221] Grant read access to 'admin' created items.
 get2DMarkers.html 2010-03-07 gagarineyaikhom [r61] Major revision
 get2DRegions.html 2010-03-07 gagarineyaikhom [r61] Major revision
 get3DMarkers.html 2010-01-03 gagarineyaikhom [r2] First working prototype for annotation display ...
 get3DMarkers.php 2010-01-03 gagarineyaikhom [r2] First working prototype for annotation display ...
 getModels.html 2010-03-05 gagarineyaikhom [r56] Model data are now stored in the ngembryo datab...
 getResource.html 2010-01-11 gagarineyaikhom [r18] Spelling mistake.
 gl.php 2010-09-17 gagarineyaikhom [r224] Bug fix: multiple users can create multiple ori...
 gm.php 2010-08-24 gagarineyaikhom [r221] Grant read access to 'admin' created items.
 gmd.php 2010-08-24 gagarineyaikhom [r221] Grant read access to 'admin' created items.
 gmo.php 2010-08-20 gagarineyaikhom [r220] Improved model retrieval.
 go.php 2010-08-24 gagarineyaikhom [r221] Grant read access to 'admin' created items.
 gr.php 2010-08-24 gagarineyaikhom [r221] Grant read access to 'admin' created items.
 grs.php 2010-08-24 gagarineyaikhom [r221] Grant read access to 'admin' created items.
 help.html 2010-05-06 gagarineyaikhom [r111] Update documentation.
 index.html 2010-07-13 gagarineyaikhom [r154] Major revision
 index.php 2010-08-24 gagarineyaikhom [r222] Redirection.
 login.php 2010-07-16 gagarineyaikhom [r159] Changed search facility so that search categori...
 loginForm.php 2010-10-21 gagarineyaikhom [r236] Request for additional messages!
 logout.php 2010-07-13 gagarineyaikhom [r154] Major revision
 move2dm.php 2010-03-17 gagarineyaikhom [r82] * Completed JSON encoding of MySQL errors.
 move2dr.php 2010-03-17 gagarineyaikhom [r82] * Completed JSON encoding of MySQL errors.
 ngembryo.php 2010-09-17 gagarineyaikhom [r225] Removed sanity check to fit existing user setti...
 onesearch.php 2010-08-24 gagarineyaikhom [r221] Grant read access to 'admin' created items.
 register.php 2010-09-20 gagarineyaikhom [r229] Information for registration.
 sF.php 2010-07-16 gagarineyaikhom [r159] Changed search facility so that search categori...
 search.php 2010-07-14 gagarineyaikhom [r157] Fixed search results bug when no match.
 urfa.php 2010-07-30 gagarineyaikhom [r207] Missing file to unlink resource from annotation.
 utils.php 2010-09-20 gagarineyaikhom [r228] Fixed email regular expression.

Read Me

SETTING UP THE DEVELOPMENT ENVIRONMENT

1. Install Aptana (with the necessary plugins), Apache, PHP and MySQL.
2. Start Aptana and create workspace (without space in name).
3. Create the 'logs' directory inside Aptana workspace (for Apache logging).
4. Checkout 'ngembryo' codebase from the svn (https://ngembryo.svn.sourceforge.net/svnroot/ngembryo)
	NOTE: This will become the htdocs root directory of the apache server (see below).
5. Create MySQL database using the SQL script: ngembryo.sql.
	NOTE: File located at [svn-project]ngembryo/resources/database/
6. Create site www.ngembryo.org for the Apache server.
	a) sudo nano /etc/apache2/sites-available/ngembryo
	
	NameVirtualHost 192.168.1.64

	<VirtualHost 192.168.1.64>
        ServerAdmin gyaikhom@inf.ed.ac.uk
        ServerName  www.ngembryo.org
        ServerAlias ngembryo.org

        # Indexes + Directory Root.
        DirectoryIndex index.html
 
 		# This should be the project checked-out from the svn above.
        DocumentRoot /home/work/AptanaWorkspace/ngembryo/

        # Logfiles: uses the logs directory created inside Aptana workspace.
        ErrorLog  /home/work/AptanaWorkspace/logs/error.log
        CustomLog /home/work/AptanaWorkspace/logs/access.log combined
	</VirtualHost>
	
	b) sudo a2ensite ngembryo
	c) sudo /etc/init.d/apache2 reload
	d) The NGEmbryo web-site is accessed at http://192.168.1.64/index.html 

7. Values which could be different from the above.
	a) linux user: work
	b) Aptana workspace: AptanaWorkspace
		NOTE: Create workspace name without space.
	c) Apache log: AptanaWorkspace/logs
		NOTE: Create this directory after initialising Aptana Workspace.
	d) local host ip: 192.168.1.64

8. Setting up the image server using proxy forwarding.

---START: LINUX---
Step 1. Install Apache 2.0

$ sudo apt-get install apache2

Step 2. Install mod-proxy

$ sudo apt-get install libapache2-mod-proxy-html

Step 3. Enable mod-proxy

$ sudo a2enmod rewrite
$ sudo a2enmod proxy
$ sudo a2enmod proxy_http

Step 3. Edit etc/apache2/mods-enabled/proxy.conf

<IfModule mod_proxy.c>
        #turning ProxyRequests on and allowing proxying from all may allow
        #spammers to use your proxy to send email.
        ProxyRequests Off
        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Deny from all
                Allow from 127.0.0.1
        </Proxy>
        # Enable/disable the handling of HTTP/1.1 "Via:" headers.                                                                                                                      
        # Set the location and forwarding here.
        # Proxy for WoolzIIPViewer                                                                                                                                                                         
        # This is to use the Woolz image server from the HGU site.                                                                                                                                    
        <Location /ngembryo/fcgi-bin/wlziipsrv.fcgi>
                ProxyPass http://aberlour.hgu.mrc.ac.uk/fcgi-bin/wlziipsrv.fcgi
                ProxyPassReverse http://aberlour.hgu.mrc.ac.uk/fcgi-bin/wlziipsrv.fcgi
        </Location>

        # ("Full" adds the server version; "Block" removes all outgoing Via: headers)                                                                                                                      
        # Set to one of: Off | On | Full | Block                                                                                                                                                           
        ProxyVia On
</IfModule>

Step 4. Restart Apache2

$ sudo /etc/init.d/apache2 restart

---END: LINUX---

---START: Mac OSX (Snow Leopard)---
Step 1. Add, or edit, /etc/apache2/other/proxy.conf
Step 2. Add the contents in Step 3, above (Linux settings)
Step 3. Restart Apache2 server
$ sudo apachectl restart

---END: Mac OSX (Snow Leopard)---

REMARKS
1. Don't forget to set the correct permissions for ngembryo and its contents. Otherwise,
	some of the files may not be accessible from the web-server.
2. Create the mysql.lock file if it does not exists (as in Ubuntu)
	$ ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock


Database management

1. Transferring test data from one database (source) host to another (destination).

	a) Dump database:
	$ mysqldump -u <username> -p <dbname> > <dbname>.sql

	b) Import database:
	$ mysql -p -h <hostname> <dbname>  < <dbname>.sql


END OF DOCUMENT