wiki:setupnewuserongw106

notes for setting up a new development testing user

  • expire user
    adduser USER
    chage -d 0 USER
    
  • add to .bashrc
    export GENAPP=$HOME/genapp
    export PATH=$GENAPP/bin:$PATH
    
  • checkout
    svn co svn://svn.genapp.rocks/svn/base/genapp genapp
    svn co svn://svn.genapp.rocks/svn/base/genapptest USERtest
    
  • copy directives, appconfig .templates to .json and edit
  • mkdir tmp
  • link webpage
     cd /var/www/html
     ln -s /home/USERLOGIN/USERtest/output/html USERtest
    
  • edit httpd.conf and add user block at end
    Alias /USERtest /home/pri.patra/USERtest/output/html5
    <Directory /home/pri.patra/USERtest/output/html5>
       Options Indexes FollowSymLinks
       AllowOverride None
       Order Allow,Deny
       Allow from all
    </Directory>
    
  • and kill -HUP httpd-pid
  • add user to group apache
  • add user to sshd_config allowusers
  • fix permissions for webserver (after one run genapp.pl)
     cd ~
     mkdir USERtest/output/html5/results
     chmod g+w USERtest/output/html5/results
     chmod -R g+r *
     chgrp -R apache *
     find . -type d | xargs chmod g+x
    
  • editable one block
    edit .bashrc
    
    svn co svn://svn.genapp.rocks/svn/base/genapp genapp
    svn co svn://svn.genapp.rocks/svn/base/genapptest USERtest
    cd USERtest
    
    edit json
    
    genapp.pl
    cd ~
    mkdir USERtest/output/html5/results
    chmod g+w USERtest/output/html5/results
    chmod -R g+r *
    chgrp -R apache *
    find . -type d | xargs chmod g+x
    
Last modified 6 months ago Last modified on Aug 18, 2017, 11:38:55 AM