Ispconfig stop working after installing gitorious local server

Discussion in 'Installation/Configuration' started by pytr, Apr 15, 2013.

  1. pytr

    pytr New Member

    Hello everyone,

    I have very serious problem and I think It will have simple solution. Unfortunatelly I can't figure it out.

    After installing gitorious on my server running centos 6.3 and ispconfig 3, my ispconfig web interface is not accessible, and every single website I had setted up is having error 403 forbidden access. Also ftp connection report error forbiden access.

    In error log is:
    Code:
    [Mon Apr 15 01:30:28 2013] [error] [client ] (13)Permission denied: access to / denied
    [Mon Apr 15 01:30:28 2013] [error] [client ] (13)Permission denied: access to /error/error.html denied
    
    Gitorious install script do:
    Code:
    #!/bin/sh
    
    #!/bin/bash
    if ! [ $(id -u) = 0 ]; then
       echo "You should run this script as root/superuser."
       exit 1
    fi
    
    echo "Starting the Gitorious installation..."
    
    echo "Setting Gitorious hostname..."
    ./change_hostname.sh
    
    echo "Disabling SELinux..."
    sed -i "s/enforcing/disabled/" /etc/selinux/config
    setenforce 0
    
    echo "Installing Ruby, RubyGems and Puppet..."
    yum install -y ruby ruby-devel rubygems
    gem update --system
    gem install -v 1.8.25 rubygems-update && ruby `gem env gemdir`/gems/rubygems-update-1.8.25/setup.rb
    gem install -y --no-ri --no-rdoc puppet -v=2.7.11
    
    if [ "`cat modules/gitorious/manifests/database.pp | grep DB_PASSWORD`" ]; then
        echo "Randomizing db password in puppet recipe..."
        NEW_PASSWORD=$(dd if=/dev/random bs=1 count=4 2>/dev/null | sha256sum | head -c 40)
        sed -i "s/DB_PASSWORD/$NEW_PASSWORD/" modules/gitorious/manifests/database.pp
        sed -i "s/DB_PASSWORD/$NEW_PASSWORD/" modules/gitorious/files/config/database.yml
        echo "Db password updated."
    fi
    
    echo "Applying Puppet recipe (will take a while, please be patient)..."
    ruby apply_puppet_recipe.rb
    PUPPETRESULT=$?
    [ $PUPPETRESULT -ne 0 ] && echo "Installation failed." && exit
    echo "Puppet recipe applied successfully."
    
    echo "Creating the database..."
    cd /var/www/gitorious/app && bin/rake db:drop db:create db:migrate VERBOSE=false
    echo "Database created."
    
    echo "Building Thinking Sphinx index..."
    cd /var/www/gitorious/app && bin/rake ts:rebuild VERBOSE=false
    echo "Index created."
    
    echo "Randomizing cookie_secret..."
    NEW_TOKEN=$(dd if=/dev/random bs=1 count=4 2>/dev/null | sha256sum | head -c 40)
    sed -i "s/cookie_secret:.*/cookie_secret: $NEW_TOKEN/" /var/www/gitorious/app/config/gitorious.yml
    echo "Rails cookie randomized."
    
    echo "Restarting services"
    restart_gitorious
    
    # Anonymous pingback on install
    curl -s http://getgitorious.com/installer_completed > /dev/null
    
    echo "--------------------"
    echo "Your installation of Gitorious Community Edition is complete."
    echo "This installer is created and supported by Gitorious AS."
    echo "For professional, long-term support, please consider Gitorious Enterprise Edition."
    echo "http://gitorious.com"
    echo "--------------------"
    
    I didn't change hostname.

    I don't care that ispconfig dont work right now. I do care about websites.

    So far my internet research point to user/group permission to website files.

    here is ls -l of my web folder:
    Code:
    drwxr-xr-x  6 web2 client1    4096 12.*led 21.08 app
    drwxr-xr-x  3 web2 client1    4096 12.*led 21.07 css
    drwxr-xr-x  2 web2 client1    4096 14.*dub 15.47 error
    -rwxr-xr--  1 web2 client1    3128 31.*říj 10.32 favicon.ico
    drwxr-xr-x  9 web2 client1    4096 12.*led 19.26 icms
    -rw-r--r--  1 web2 client1 2031616 12.*led 17.27 icms3.sql
    drwxr-xr-x  4 web2 client1    4096 28.*bře 17.01 images
    -rwxr-xr-x  1 web2 client1     598 31.*říj 10.35 index.php
    drwxr-xr-x  6 web2 client1    4096  6.*bře 12.14 jobs
    drwxr-xr-x  3 web2 client1    4096 12.*led 21.07 js
    drwxr-xr-x 10 web2 client1    4096 10.*led 15.12 kelly
    drwxr-xr-x  3 web2 client1    4096 12.*led 21.00 libs
    drwxrwxrwx  2 web2 client1    4096 12.*led 21.06 log
    drwxr-xr-x  8 web2 client1    4096  6.*pro 09.01 projekty
    -rwxr-xr-x  1 web2 client1      60 31.*říj 10.32 robots.txt
    drwxr-xr-x  2 web2 client1    4096 14.*dub 00.30 stats
    drwxrwxrwx  3 web2 client1    4096 12.*led 21.09 temp
    -rw-r--r--  1 web2 client1     135  3.*led 10.41 test.php
    -rwxr-xr-x  1 web2 client1     685 31.*říj 10.32 web.config
    
    My passwd file:
    Code:
    root:x:0:0:root:/root:/bin/bash
    bin:x:1:1:bin:/bin:/sbin/nologin
    daemon:x:2:2:daemon:/sbin:/sbin/nologin
    adm:x:3:4:adm:/var/adm:/sbin/nologin
    lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
    sync:x:5:0:sync:/sbin:/bin/sync
    shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
    halt:x:7:0:halt:/sbin:/sbin/halt
    mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
    uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
    operator:x:11:0:operator:/root:/sbin/nologin
    games:x:12:100:games:/usr/games:/sbin/nologin
    gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
    ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
    nobody:x:99:99:Nobody:/:/sbin/nologin
    dbus:x:81:81:System message bus:/:/sbin/nologin
    vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
    rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin
    abrt:x:173:173::/etc/abrt:/sbin/nologin
    saslauth:x:499:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
    postfix:x:89:89::/var/spool/postfix:/sbin/nologin
    qpidd:x:498:499:Owner of Qpidd Daemons:/var/lib/qpidd:/sbin/nologin
    haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
    ntp:x:38:38::/etc/ntp:/sbin/nologin
    rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
    nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
    sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
    tcpdump:x:72:72::/:/sbin/nologin
    oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
    apache:x:48:48:Apache:/var/www:/sbin/nologin
    mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
    ldap:x:55:55:LDAP User:/var/lib/ldap:/sbin/nologin
    petr:x:500:500::/home/petr:/bin/bash
    mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
    smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
    clam:x:497:495:Clam Anti Virus Checker:/var/lib/clamav:/sbin/nologin
    amavis:x:496:494::/var/spool/amavisd:/sbin/nologin
    named:x:25:25:Named:/var/named:/sbin/nologin
    webalizer:x:67:67:Webalizer:/var/www/usage:/sbin/nologin
    mailman:x:41:41:GNU Mailing List Manager:/usr/lib/mailman:/sbin/nologin
    vmail:x:5000:5000::/var/vmail:/bin/bash
    getmail:x:5001:5001::/etc/getmail:/bin/bash
    ispapps:x:5002:5003::/var/www/apps:/bin/bash
    ispconfig:x:5003:5004::/usr/local/ispconfig:/bin/bash
    web1:x:5004:5005::/var/www/clients/client2/web1/./home/web1:/bin/false
    web2:x:5005:5006::/var/www/clients/client1/web2/./home/web2:/usr/sbin/jk_chrootsh
    web3:x:5006:5007::/var/www/clients/client3/web3:/bin/false
    web5:x:5007:5006::/var/www/clients/client1/web5:/bin/false
    web6:x:5008:5008::/var/www/clients/client4/web6:/bin/false
    web7:x:5009:5009::/var/www/clients/client5/web7/./home/web7:/usr/sbin/jk_chrootsh
    web8:x:5010:5010::/var/www/clients/client6/web8/./home/web8:/usr/sbin/jk_chrootsh
    web12:x:5011:5006::/var/www/clients/client1/web12/./home/web12:/usr/sbin/jk_chrootsh
    web13:x:5012:5006::/var/www/clients/client1/web13:/bin/false
    web14:x:5013:5005::/var/www/clients/client2/web14/./home/web14:/usr/sbin/jk_chrootsh
    gnokii:x:495:493:Gnokii system user:/:/sbin/nologin
    web17:x:5014:5011::/var/www/clients/client7/web17/./home/web17:/usr/sbin/jk_chrootsh
    gitosis:x:493:491:git repository hosting:/var/lib/gitosis:/bin/sh
    nginx:x:492:490:Nginx web server:/var/lib/nginx:/sbin/nologin
    git:x:5015:5015::/var/www/gitorious:/bin/bash
    sphinx:x:491:489:Sphinx Search:/var/lib/sphinx:/bin/bash
    memcached:x:490:488:Memcached daemon:/var/run/memcached:/sbin/nologin
    redis:x:489:487:Redis Server:/var/lib/redis:/sbin/nologin
    
    My group file:

    Code:
    root:x:0:root
    bin:x:1:root,bin,daemon
    daemon:x:2:root,bin,daemon
    sys:x:3:root,bin,adm
    adm:x:4:root,adm,daemon
    tty:x:5:
    disk:x:6:root
    lp:x:7:daemon,lp
    mem:x:8:
    kmem:x:9:
    wheel:x:10:root
    mail:x:12:mail,postfix
    uucp:x:14:uucp
    man:x:15:
    games:x:20:
    gopher:x:30:
    video:x:39:
    dip:x:40:
    ftp:x:50:
    lock:x:54:
    audio:x:63:
    nobody:x:99:
    users:x:100:
    dbus:x:81:
    utmp:x:22:
    utempter:x:35:
    floppy:x:19:
    vcsa:x:69:
    rpc:x:32:
    abrt:x:173:
    cdrom:x:11:
    tape:x:33:
    dialout:x:18:
    qpidd:x:499:
    saslauth:x:76:
    postdrop:x:90:
    postfix:x:89:
    haldaemon:x:68:haldaemon
    ntp:x:38:
    rpcuser:x:29:
    nfsnobody:x:65534:
    stapdev:x:498:
    stapusr:x:497:
    sshd:x:74:
    cgred:x:496:
    tcpdump:x:72:
    oprofile:x:16:
    slocate:x:21:
    stapsys:x:157:
    apache:x:48:
    mysql:x:27:
    ldap:x:55:
    petr:x:500:
    mailnull:x:47:
    smmsp:x:51:
    clam:x:495:
    amavis:x:494:
    named:x:25:
    webalizer:x:67:
    mailman:x:41:
    vmail:x:5000:
    getmail:x:5001:
    sshusers:x:5002:web1,web2,web3,web5,web6,web7,web8,web12,web13,web14,web17
    ispapps:x:5003:apache
    ispconfig:x:5004:apache
    client2:x:5005:apache
    client1:x:5006:apache
    client3:x:5007:apache
    client4:x:5008:apache
    client5:x:5009:apache
    client6:x:5010:apache
    screen:x:84:
    gnokii:x:493:
    client7:x:5011:apache
    gitosis:x:491:
    nginx:x:490:
    git:x:5015:
    sphinx:x:489:
    memcached:x:488:
    redis:x:487:
    puppet:x:5016:
    

    Please help me, If I won't make it work tonight I will have to reinstall whole server that means really really stress.

    Thank you for any advices and tips.
     

Share This Page