Hi everyone!
I'm trying to make from RuTorrent rTorrent Lighttpd CentOS a big happy family.
Perfoming these steps on just installed CentOS 5.4
Code:
yum update
yum remove cups cups-libs irda-utils
Code:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rm rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Now we have to configure security (enable WWW):
Code:
system-config-securitylevel-tui
Lighttpd & php instalation:
Code:
yum install lighttpd
Code:
yum install lighttpd-fastcgi php-cli
vi /etc/php.ini
Code:
cgi.fix_pathinfo = 1
Enabling SCGI
vi /etc/lighttpd/lighttpd.conf
Code:
server.modules = (
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
"mod_access",
"mod_scgi",
# "mod_cml",
# "mod_trigger_b4_dl",
# "mod_auth",
# "mod_status",
# "mod_setenv",
"mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
# "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_secdownload",
# "mod_rrdtool",
"mod_accesslog" )
[...]
#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi"
)
)
)
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/rpc.socket",
"check-local" => "disable"
)
)
)
Code:
service lighttpd restart
Let's check that php is functional
vi /srv/www/lighttpd/info.php
Code:
<?php
phpinfo();
?>and then http://you-server-ip/info.php
Code:
wget http://dag.wieers.com/rpm/packages/libsigc++20/libsigc++20-2.0.17-1.el5.rf.i386.rpm
rpm -Uhv libsigc++20-2.0.17-1.el5.rf.i386.rpm
Xmlrpc libtorrent and rtorrent instalation
Code:
rpm -Uhv http://www.fateyev.com/RPMS/RHEL5/i386/xmlrpc-c-1.14.8-1.el5.i386.rpm http://www.fateyev.com/RPMS/RHEL5/i386/xmlrpc-c-apps-1.14.8-1.el5.i386.rpm http://www.fateyev.com/RPMS/RHEL5/i386/libtorrent-0.12.6-1.el5.i386.rpm http://www.fateyev.com/RPMS/RHEL5/i386/rtorrent-0.8.6-4.el5.i386.rpm
ruTorrent instalation
Code:
yum install subversion
Code:
cd /srv/www/lighttpd/
svn checkout http://rutorrent.googlecode.com/svn/trunk/rtorrent
vi /srv/www/lighttpd/rtorrent/config.php
Code:
$scgi_port = 0;
$scgi_host = "unix:///tmp/rpc.socket";
~/.rtorrent.rc
Code:
check_hash = yes
enable_trackers = yes
encoding_list = UTF-8
scgi_local = /tmp/rpc.socket
If you have error while installing or runnig Lighttpd try this
Code:
mkdir -p /var/run/lighttpd/
chown lighttpd /var/run/lighttpd
Information sources:
http://www.howtoforge.com/installing-lighttpd-with-php5-and-mysql-support-on-centos-5.3
http://www.kernelhardware.org/lighttpd-and-centos-5/
http://www.fateyev.com/ru/blog/2009/libtorrent_el5_rpms
I'm trying to make from RuTorrent rTorrent Lighttpd CentOS a big happy family.
Perfoming these steps on just installed CentOS 5.4
Code:
yum update
yum remove cups cups-libs irda-utils
Code:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rm rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Now we have to configure security (enable WWW):
Code:
system-config-securitylevel-tui
Lighttpd & php instalation:
Code:
yum install lighttpd
Code:
yum install lighttpd-fastcgi php-cli
vi /etc/php.ini
Code:
cgi.fix_pathinfo = 1
Enabling SCGI
vi /etc/lighttpd/lighttpd.conf
Code:
server.modules = (
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
"mod_access",
"mod_scgi",
# "mod_cml",
# "mod_trigger_b4_dl",
# "mod_auth",
# "mod_status",
# "mod_setenv",
"mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
# "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_secdownload",
# "mod_rrdtool",
"mod_accesslog" )
[...]
#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi"
)
)
)
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/rpc.socket",
"check-local" => "disable"
)
)
)
Code:
service lighttpd restart
Let's check that php is functional
vi /srv/www/lighttpd/info.php
Code:
<?php
phpinfo();
?>and then http://you-server-ip/info.php
Code:
wget http://dag.wieers.com/rpm/packages/libsigc++20/libsigc++20-2.0.17-1.el5.rf.i386.rpm
rpm -Uhv libsigc++20-2.0.17-1.el5.rf.i386.rpm
Xmlrpc libtorrent and rtorrent instalation
Code:
rpm -Uhv http://www.fateyev.com/RPMS/RHEL5/i386/xmlrpc-c-1.14.8-1.el5.i386.rpm http://www.fateyev.com/RPMS/RHEL5/i386/xmlrpc-c-apps-1.14.8-1.el5.i386.rpm http://www.fateyev.com/RPMS/RHEL5/i386/libtorrent-0.12.6-1.el5.i386.rpm http://www.fateyev.com/RPMS/RHEL5/i386/rtorrent-0.8.6-4.el5.i386.rpm
ruTorrent instalation
Code:
yum install subversion
Code:
cd /srv/www/lighttpd/
svn checkout http://rutorrent.googlecode.com/svn/trunk/rtorrent
vi /srv/www/lighttpd/rtorrent/config.php
Code:
$scgi_port = 0;
$scgi_host = "unix:///tmp/rpc.socket";
~/.rtorrent.rc
Code:
check_hash = yes
enable_trackers = yes
encoding_list = UTF-8
scgi_local = /tmp/rpc.socket
If you have error while installing or runnig Lighttpd try this
Code:
mkdir -p /var/run/lighttpd/
chown lighttpd /var/run/lighttpd
Information sources:
http://www.howtoforge.com/installing-lighttpd-with-php5-and-mysql-support-on-centos-5.3
http://www.kernelhardware.org/lighttpd-and-centos-5/
http://www.fateyev.com/ru/blog/2009/libtorrent_el5_rpms