Getting Started - rwth-acis/Anatomy2.0 GitHub Wiki
[TOC]
- Cloning
git
repository https://github.com/rwth-acis/Anatomy2.0 - Setup of
php
-http
server (e.g. Apache Server) - Setup of
MySQL
server - Setup of
MySQL
database with this SQL-script - Registration of a new Learning Layers user-account
- Registration of a the localhost-webpage in Learning Layers as described here
- Create
/src/config/config.php↑
- Create
/src/widgets/gallery.xml↑
and/src/widgets/showcase.xml↑
- Installation of
GitHub Desktop™
- Cloning https://github.com/rwth-acis/Anatomy2.0 with
git
- Installation of
XAMPP™
- Running
XAMPP™
Control Panel - Starting
Apache
andMySQL
- Configuring
phpMyAdmin
(included inXAMPP™
), see here - Creating a
MySQL
-database, the name is not important - Creating the needed tables in the database by executing this SQL-script
- Registration of a new Learning Layers user-account
- Registration of a the localhost-webpage in Learning Layers as described here
- Configuring a virtual host as described here
- Copying
/src/config/config_placeholder.php↑
to/src/config/config.php↑
- Editing
/src/config/config.php↑
, see the link for more detail - Hosting ROLE-widgets from localhost on http://role-sandbox.eu/ is not trivial and thus not used
-
sudo apt-get install git
(22MB) -
git clone https://github.com/rwth-acis/Anatomy2.0
(< 50MB) -
sudo apt-get install php5 php5-mysql
(30MB) -
sudo apt-get install mysql-server
(95MB), setting the root-password during installation ℹ To avoid launching theMySQL
-server on system startup, comment out"start on…"
in/etc/init/mysql.conf↑
-
the database should have started automatically. If not:
sudo service mysql start
ℹ Personally I prefer
-
sudo apt-get install nautilus-open-terminal
(<1MB) -
nautilus -q && nautilus &
(restartnautilus
) - rightclick in folder →
⌨e
(Open in Terminal)
ℹ
-
sudo apt-get install emma
(1MB), a graphicalMySQL
-client - Connecting to local database with
emma™
by modifyinglocalhost
connection and setting the previously chosen database-password - Creating new database, name is not important
- Creating the needed tables in the database by executing this SQL-script in the query-tab
- Registration of a new Learning Layers user-account
-
Registration of a the localhost-webpage in Learning Layers as described here, using
http://localhost:105/src/views/login_callback.php
as redirect url. The port (e.g.105
) can be freely chosen, only adapting/start_anatomy2.0.sh↑
and/src/config/config.php↑
is necessary - Copying
/src/config/config_placeholder.php↑
to/src/config/config.php↑
- Editing
/src/config/config.php↑
, choosing following values:-
baseUrl
:http://localhost:105
-
admins
: adding a usable email-address as given in the example -
oidcClientId
: the client id returned from the Learning Layers self registration service -
host
:localhost
-
database
: the chosen databse name -
user
: probablyroot
-
password
: the chosen password
-
- Opening terminal in cloned folder → executing script
./start_anatomy2.0.sh↑
, will start localphp
-server andmysql
-server (if not already started) - Visiting
localhost:105
in browser, that's it! - Hosting ROLE-widgets from localhost on http://role-sandbox.eu/ is not trivial and thus not used
See also http://www.php.de/tutorials/42725-virtual-hosts-vhosts-einrichten-unter-windows.html
Note: $XAMPP_ROOT
is the directory you installed XAMPP into. You have to replace $XAMPP_ROOT
by the actual directory name.
- Open
$XAMPP_ROOT/apache/conf/httpd.conf↑
- Make sure
Include conf/extra/httpd-vhosts.conf
is not commented out - Open
$XAMPP_ROOT/apache/conf/extra/httpd-vhosts.conf↑
- Insert the following code (Note, that you can replace
ServerName anatomy
by another name). Instead ofC:/Homepage
put the absolute path to your local Anatomy2.0 git repository.
<Directory C:/Homepage>
Require all granted
</Directory>
<VirtualHost *:80>
DocumentRoot $XAMPP_ROOT/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/Homepage
ServerName anatomy
</VirtualHost>
- Uncomment
NameVirtualHost *:80
- Open
C:\WINDOWS\system32\drivers\etc\hosts↑
in a text editor - Add
127.0.0.1 3dmodels.local
after127.0.0.1 localhost
(make sure lines are not commented out) (You may not be allowed to save the file to this directory. You may then just save anywhere else and copy the file back with administrator rights) (You have to restart Apache for changes in config files to take effect)