Post
Topic
Board Mining (Altcoins)
Re: Optimize your freshes in lighttpd
by
tp30st
on 02/06/2014, 16:58:19 UTC
A great user in our pool [ poochiboy ] offered these tips to enhance the speed of minera lighttp refreshes:
Most of the lighthttpd optimization pulled from here:http://c-mobberley.com/wordpress/2013/05/18/raspberry-pi-lighttpd-optimisation-for-wordpress-owncloud-and-more/

Install Fast CGI
Code:
sudo apt-get install php5-cgi
sudo nano /etc/php5/cgi/php.ini
Uncomment the line where it says:
Code:
;cgi.fix_pathinfo=1
to show
Code:
cgi.fix_pathinfo=1


Install PHP APC
Code:
sudo apt-get install libpcre3-dev php-pear php5-dev build-essential
sudo pecl install apc
sudo nano /etc/php5/cgi/conf.d/apc.ini

Add the following lines to the file
.
Code:
extension=apc.so
apc.enabled=1
apc.shm_size=30
Now restart lighttpd

Code:
sudo service lighttpd restart

These optimizations sped up my refreshes like night and day.  

EDIT: forgot the fast CGI install, many applogies: sudo apt-get install php5-cgi

I have only "/etc/php5/cli/conf.d/apc.ini" but none "/etc/php5/cgi/conf.d/apc.ini" path on my RPi Sad

Same here.

Sorry guys, I left off installing fast cgi, which installs the file we modify: sudo apt-get install php5-cgi

Excellent. I did it, I SSH in, really not sure If I noticed a decrease since I am using a class10 sd card. It might be a little bit faster but for me not much? I am truly not sure.

I did, do a back of my img afterwards to keep the settings if I need to reimage the sd card. Glad I got a 1TB hdd, it is very handy. 15 gig images, the size of my sd card.

I think this update/install/compile process took roughly around 10 minutes or so. It had to compile a few things.

Everything went smoothly. Thanks!

I'm getting a "503- Service Not Available" error after following these steps. Any suggestions?