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

 

Putting the root of the site where you want it

Do you remember config.site? We had this inside:


  $this->baseurl = "http://exosmose.localdomain/~dacode/daroot"; 

     


This indicates the root of the file hierarchy of the daCode application. To ease installation, we will use a symlink.


  $ cd /home/dacode/public_html 
    $ ln -s /home/dacode/daCode/src/htdocs daroot 
     


or if you wish to use dacodeconfig (recommanded if you use GNU/Linux) :


  $ cd /home/dacode/public_html 
    $ ln -s /home/dacode/daCode/build/htdocs daroot 
     


If you have the Unix rights, you may change your Apache vision vision at will. Chose 'baseurl as you want, and the place 'daroot' where Apache seeks it. We will see some exemple, but let's move our symlink first, for readability's sake:


  $ mv daroot /tmp/ 
     


Mr Foo whishes to have daCode at home?


$this->basehref = "http://exosmose.localdomain/~bidule/daroot"; 
    $ cp -va /tmp/daroot ~bidule/public_html/ 
  
     


Mr Foo wants to change the name?


$this->basehref = "http://exosmose.localdomain/~bidule/phpnuke"; 
    $ cd ~bidule/public_html/ && mv daroot phpnuke 
  
     


Mr Foo wants to put daCode in the limelight?


$this->basehref = "http://exosmose.localdomain/~bidule"; 
    $ cd ~bidule 
    $ mv public_html public_html.old  
    $ cp -va /tmp/daroot ./ 
    $ mv daroot public_html