Tuesday Exercise 2
From AIMSWiki
| Table of contents |
Overview
Play with the forums.
Objective
Learn how to post and admin the project forums.
Feedback
Supply links to the forums you have posted to from your team wiki page.
Procedure
Apache knows where to look for the MySQL library when PHP wants to use the database. But when executed via the command line interface (CLI), PHP does not (yet) know where to find the MySQL library. So we have to tell it. Edit the appropriate PHP configuration file:
sudo vim /etc/php5/cli/php.ini
Now remove the semicolon (the comment character) from this line (on or near line 1153):
;extension=mysql.so
This will tell PHP to load the MySQL library when PHP is called from the command line (below).
First create the forums by editing html/ops/create_forums.php to create a set of message boards.
cd ~/projects/wagtail/html/ops nano create_forums.php php create_forums.php
Go to the webpage of your project and post messages to the forums. All team members should post from their accounts. Choose roles for the different members and assign them.
First password protect the ops section of your project webpages. Create a file with the passwords to access the ops pages. You can do this in your home dir. htpasswd -c .htpasswd <user_name> Then add access control to the ops pages: cd <project_dir>/html/ops/ nano .htaccess AuthName "administration access" AuthUserFile <PATH_TO_.HTPASSWD> AuthGroupFile /dev/null AuthType Basic <limit GET POST> require valid-user </Limit> Then go to the ops pages: http://<your machine>.aims.ac.za/<projectname>_ops/. Login with the password you just created. Find the special user option page and assign roles to yourselves.
Then try out the forums again and see what have changed and what options you have now have.
Try to signup to another teams server and add messages to their forums.

