dokuwiki lighttpd and error 413
| April 1st, 2010I decided to setup dokuwiki, to use as a documentation and network diagram database, ( if you think any other open source tool is better for this purpose , please tell me so ) , anyways the install is super easy, and as usual my server is slitaz, just do a
tazpkg get-install php
which should install lighttpd too as your webserver, if it doesnt, install it separately,
tazpkg get-install lighttpd
Download dokuwiki’s latest version here http://www.splitbrain.org/projects/dokuwiki
extract it
copy it to /var/www and rename the directory to whatever you wish, i named it doc, so the directory structure is now /var/www/doc .
start lighttpd if not already started .
/etc/init.d/lighttpd start
then open up your browser and point to
http://localhost/doc/install.php
and follow the instructions to install it, you might need to do a
chown -R www:www /var/www/doc , if you get some permission errors.
thats it your done,
you can access your wiki at http://localhost/doc or http://yourip/doc
Once that was done i immediately showed to my colleagues who liked the concept of keeping a common storage for network diagrams and did’nt waste time in beginning to upload it there, and that’s where i hit a snag, No diagra, above 100kb would upload, i would get a error 413 entity too large. I could not figure out what was causing this error, i checked the php.ini upload and post settings as i knew that could be a problem from past experience, but everything was fine there. Finally this guy –> http://peyotest.blogspot.com/2009/12/lighttpd-php-file-upload.html saved the day. Turned out to be a lighttped error.
So if your getting a error 413 error add the following lines in /etc/lighttpd/lighttpd.conf
server.max-request = "100000000"
server.upload-dirs = ( "/tmp" )
server.network-backend = "write"