Catgasm's CGI script.
- Clone this repository
- Make sure you have all required libraries installed properly
- If needed, change the database and/or log path in
database.h
andlogger.h
- Compile it using
cmake .
followed bymake
- Copy the executable to your desired location
- e.g.
/usr/lib/cgi-bin/catAjax
- Configure your webserver to allow CGI scripts
- Example nginx config (place it somewhere in your 'server' block)
location /cgi-bin/ {
gzip off;
root /usr/lib;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
- Create your database with the
createDb.sh
script and copy it to the path you specified - DONE
<img src="cgi-bin/catCgi?type=cat">
If someone actually has set this up, please let me know :) Right now this is more like an instruction for myself so I don't forget.