dev + troubleshooting guide

This commit is contained in:
Claude 2013-04-16 16:45:46 +02:00
parent f390ffe580
commit ebacb30b46
2 changed files with 48 additions and 0 deletions

9
doc/DEVELOPMENT.md Normal file
View File

@ -0,0 +1,9 @@
You want to improve Stikked? Always welcome! Send us your pull request and you will be honoured in AUTHORS.md.
Some guidelines:
* For PHP only files (not views/themes), please run the PHP Beautifier (http://pear.php.net/package/PHP_Beautifier) with the following parameters:
```bash
php_beautifier --indent_tabs -l "IndentStyles(style=bsd) ArrayNested() NewLines(before=function:T_CLASS:if,after=T_COMMENT) ListClassFunction()"
```
* Other people may modify your contribution. Don't take that personal; we all want to improve Stikked. Your input is always welcome!

View File

@ -0,0 +1,39 @@
Stikked troubleshooting guide
-----------------------------
### Apache
#### 404 Not Found after creating a Paste
Rewrite rules must be enabled in httpd.conf.
### Nginx
#### 502 Bad Gateway
PHP FastCGI must be running. Here's my /etc/init.d/php-fgci config:
```bash
#!/bin/bash
FASTCGI_USER=www-data
FASTCGI_GROUP=www-data
ADDRESS=127.0.0.1
PORT=9000
PIDFILE=/var/run/php-fastcgi.pid
CHILDREN=6
PHP5=/usr/bin/php5-cgi
/usr/bin/spawn-fcgi -a $ADDRESS -p $PORT -P $PIDFILE -C $CHILDREN -u $FASTCGI_USER -g $FASTCGI_GROUP -f $PHP5
```
You can adapt that to your system.
### Lighttpd
### Cherokee
Still have a problem?
---------------------
Report an issue at GitHub, and we will add your problem to this guide.