Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with installation #84

Closed
sebie opened this issue Nov 26, 2014 · 10 comments
Closed

Problems with installation #84

sebie opened this issue Nov 26, 2014 · 10 comments

Comments

@sebie
Copy link

sebie commented Nov 26, 2014

The installation instructions, I think, are incorrect.
After reading #80 I found out that you need a /tmp?
Would anyone mind writing a guide as to how to install it?

Thanks,

Sebie

@sebie sebie changed the title Problems with the installation Problems with installation Nov 26, 2014
@Mikaela
Copy link

Mikaela commented Nov 26, 2014

for me it was just cd /var/www/ and git clone https://github.com/sebsauvage/ZeroBin.git and configuring vhost to nginx (which is optional and git clone to web server directory should be enough).

My vhost configuration if it interests you is below.

server {
    listen 80;
    listen [::]:80;
    listen 443;
    listen [::]:443;

    root /var/www/ZeroBin/;
    index index.php index.html index.htm;

    server_name zero.mikaela.info zerobin.mikaela.info;

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ =404;
        autoindex off;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
       fastcgi_split_path_info ^(.+\.php)(/.+)$;
    #   # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
    #
    #   # With php5-cgi alone:
    #    fastcgi_pass 127.0.0.1:9000;
    #   # With php5-fpm:
       fastcgi_pass unix:/var/run/php5-fpm.sock;
       fastcgi_index index.php;
       #include fastcgi_params;
       include fastcgi.conf;
    }

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\.ht {
       deny all;
    }
}

@sebie
Copy link
Author

sebie commented Dec 1, 2014

Ok thanks for the reply, will try this later week (when I have time).

@Popolon
Copy link

Popolon commented Jan 27, 2015

In fact, you need to create two directories with writing permission for web server :

  • tmp
  • data

@sebie
Copy link
Author

sebie commented Jan 27, 2015

Mind providing steps on how you did it @sebsauvage ?

It would be appreciated greatly.

@Popolon
Copy link

Popolon commented Jan 28, 2015

Well, in my sense, this piece of software has great security concerns, because the directories tmp and data where you give the web server write permission countains (autogenerated) php scripts.

  • This means than you give permission to execute script on a directory where the webserver can write
  • This means than if there is a whole somewhere in the server applications that can be exploited, the attacker can place a script in this directory and will be able to execute it localy by a remote call.

@axilleas
Copy link

I didn't encounter this issue those two dirs were created automatically. Perhaps if the dir doesn't have the right permissions, it gets skipped.

@sebie
Copy link
Author

sebie commented Mar 15, 2015

Might try it again, if it is working for y'all.

@drewbeer
Copy link

if you are using nginx, you should deny web access to /data/ and /tmp/ that way they are not browsable.

@creafrog
Copy link

Oh yeah tks 4 patch drewbeer ;)

@sebie
Copy link
Author

sebie commented Jul 15, 2015

Thanks for the help, I got it working for what I needed.

@sebie sebie closed this as completed Jul 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants