""
Documentation daCode : daCode webmaster's guide
Chapitre 2. Installing daCode on localhost

 

Setting up a production site

 

The players

We set up a steering board for this. Who are the players?

  • apache (httpd): this is the daemon responsible of delivering the pages. For that task, it works with PHP and MySQL/PostgreSQL.

  • dacode: he is responsible for the debugging and upgrading the site. This task is not easy, and he will have the need for a specific machine to test the new versions, to fully understand the code, and to master CVS.

  • dagraf: this is the graphist. He does the design, the themes and creates the topics. He has to work with dacode, it might be usefull for them to create a unix group.

  • root: He has the responsibility for the correct working of the site, and is basically the Administrator (and still not the BOFH). He has to control that daCode does not endanger the correct workings of the server.



 

Unix setup

Root makes sure everything is OK with the permissions. /* TODO * to proofread * to test * to script */


  # grep dacode /etc/group  
dacode:x:508:dacode,dagraf 
    # tree -gifpu ~dacode 
 
[drwx------ dacode     root  ]  /home/dacode/daCode 
 
[drwx------   root     root  ]  /home/dacode/dacache 
[drwx------ apache     root  ]  /home/dacode/dacache/boxes 
[drwx------ apache     root  ]  /home/dacode/dacache/pages 
 
[-r-------- apache     root  ]  /home/dacode/daCode/src/phplib/config.site 
[lrwxrwxrwx   root     root  ]  /home/dacode/daroot -> /home/dacode/daCode/src/htdocs 
 
[drwx------ dacode     root  ]  *CVS* 
 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/htdocs 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/phplib 
 
[drwxr-xr-x dacode   dacode  ]  /home/dacode/daCode/doc 
[drwxr-xr-x dacode   dacode  ]  /home/dacode/daCode/doc/html 
[drwxr-xr-x dacode   dacode  ]  /home/dacode/daCode/doc/script 
[drwxr-xr-x dacode   dacode  ]  /home/dacode/daCode/doc/sgml 
 
[drwxr-xr-x dagraf   dacode  ]  /home/dacode/daCode/src/htdocs/images 
[drwxr-xr-x dagraf   dacode  ]  /home/dacode/daCode/src/htdocs/images/section 
[drwxr-xr-x dagraf   dacode  ]  /home/dacode/daCode/src/htdocs/images/themes 
[drwxr-xr-x dagraf   dacode  ]  /home/dacode/daCode/src/htdocs/images/themes/slashdot 
[-rw-r--r-- dagraf   dacode  ]  /home/dacode/daCode/src/htdocs/slashdot.css 
[-rw-r--r-- dagraf   dacode  ]  /home/dacode/daCode/src/htdocs/style.css 
[drwxr-xr-x dagraf   dacode  ]  /home/dacode/daCode/src/phplib/themes 
[drwxr-xr-x dagraf   dacode  ]  /home/dacode/daCode/src/phplib/themes/default 
[drwxr-xr-x dagraf   dacode  ]  /home/dacode/daCode/src/phplib/themes/slashdot 
 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/htdocs/admin 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/htdocs/board 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/htdocs/comments 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/htdocs/messages 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/htdocs/news 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/htdocs/poll 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/htdocs/users 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/htdocs/w 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/htdocs/wap 
[drwxr-xr-x dacode     root  ]  /home/dacode/daCode/src/htdocs/webcam