Search content
Sort by

Showing 4 of 4 results by tp30st
Post
Topic
Board Mining (Altcoins)
Re: Optimize your freshes in lighttpd
by
tp30st
on 02/06/2014, 21:19:00 UTC
I'm getting a "503- Service Not Available" error after following these steps. Any suggestions?

Try doing a
Code:
sudo service lighttpd restart

503 is probably the lighttpd not running.

I did a restart of lighttpd and followed the guide exactly. I do have a backup image but would like to fix the web interface without downtime.

When you restart do you see:
[ ok ] Stopping web server: lighttpd.
[ ok ] Starting web server: lighttpd.

?

I get [ok] on both.

lighttpd is up, so take a look at /var/log/lighttpd/error.log  see if anything sticks out as the issue.  



Here's some of the output, as it just repeats.


2014-06-02 17:15:32: (mod_fastcgi.c.2829) fcgi-server re-enabled: unix:/var/run/php5-fpm.sock
2014-06-02 17:15:36: (mod_fastcgi.c.1732) connect failed: Permission denied on unix:/var/run/php5-fpm.sock
2014-06-02 17:15:36: (mod_fastcgi.c.3002) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
2014-06-02 17:15:38: (mod_fastcgi.c.3570) all handlers for /minera/index.php? on .php are down.
2014-06-02 17:15:38: (mod_fastcgi.c.2829) fcgi-server re-enabled: unix:/var/run/php5-fpm.sock
2014-06-02 17:15:40: (mod_fastcgi.c.1732) connect failed: Permission denied on unix:/var/run/php5-fpm.sock
2014-06-02 17:15:40: (mod_fastcgi.c.3002) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
2014-06-02 17:15:42: (mod_fastcgi.c.2829) fcgi-server re-enabled: unix:/var/run/php5-fpm.sock
2014-06-02 17:23:00: (mod_fastcgi.c.1732) connect failed: Permission denied on unix:/var/run/php5-fpm.sock
2014-06-02 17:23:00: (mod_fastcgi.c.3002) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
2014-06-02 17:23:02: (mod_fastcgi.c.2829) fcgi-server re-enabled: unix:/var/run/php5-fpm.sock
2014-06-02 17:23:08: (mod_fastcgi.c.1732) connect failed: Permission denied on unix:/var/run/php5-fpm.sock
2014-06-02 17:23:08: (mod_fastcgi.c.3002) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
2014-06-02 17:23:10: (mod_fastcgi.c.2829) fcgi-server re-enabled: unix:/var/run/php5-fpm.sock
2014-06-02 17:35:22: (mod_fastcgi.c.1732) connect failed: Permission denied on unix:/var/run/php5-fpm.sock
2014-06-02 17:35:22: (mod_fastcgi.c.3002) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
2014-06-02 17:35:24: (mod_fastcgi.c.2829) fcgi-server re-enabled: unix:/var/run/php5-fpm.sock

EDIT: I got it up. I had to fix permissions.
Thanks
Post
Topic
Board Mining (Altcoins)
Re: Optimize your freshes in lighttpd
by
tp30st
on 02/06/2014, 19:34:33 UTC
I'm getting a "503- Service Not Available" error after following these steps. Any suggestions?

Try doing a
Code:
sudo service lighttpd restart

503 is probably the lighttpd not running.

I did a restart of lighttpd and followed the guide exactly. I do have a backup image but would like to fix the web interface without downtime.

When you restart do you see:
[ ok ] Stopping web server: lighttpd.
[ ok ] Starting web server: lighttpd.

?

I get [ok] on both.
Post
Topic
Board Mining (Altcoins)
Re: Optimize your freshes in lighttpd
by
tp30st
on 02/06/2014, 18:09:24 UTC
I'm getting a "503- Service Not Available" error after following these steps. Any suggestions?

Try doing a
Code:
sudo service lighttpd restart

503 is probably the lighttpd not running.

I did a restart of lighttpd and followed the guide exactly. I do have a backup image but would like to fix the web interface without downtime.
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?