The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Hi,
Here's a small howto on installing Lighttpd with mod_h264_streaming, mod_flv_streaming and mod_secdownload for Adult Script Pro on CentOS. You will need to have ssh root access on the server where you want to install lighttpd. Before installing you need to make sure that the following folder is present:
/usr/src/redhat
If the above folder is not present you can create it (and its substructure) with the following command:
yum install rpm-build
To download and install the lighttpd source rpm you need to run the following commands:
wget -c http://repo.nixval.com/nixval-centos/5/updates/lighttpd-1.4.28-1.el5+h264.src.rpm
rpm -i lighttpd-1.4.28-1.el5+h264.src.rpm
cd /usr/src/redhat/SPECS
Before building the rpms you need to make sure you have the required dependencies installed:
yum install pcre-devel bzip2-devel zlib-devel readline-devel autoconf automake libtool gcc make gettext openssl-devel
To build the rpms you need to run the following commands:
cd /usr/src/redhat/SPECS
rpmbuild -ba --without lua --without ldap --without gdbm --without gamin lighttpd.spec
If everything worked out, and the above command did not return any errors you will be able to install the rpms from
/usr/src/redhat/RPMS/i386 for 32bit servers and /usr/src/redhat/RPMS/x86_64 for 64bit servers.
For streaming and hotlinking protection you only need the following rpms:
lighttpd-1.4.28-1+h264.x86_64.rpm
lighttpd-mod_h264_streaming-1.4.28-1+h264.x86_64.rpm
For running lighttpd as the main web server you also need:
lighttpd-fastcgi-1.4.28-1+h264.x86_64.rpm
The above examples are for a 64bit server.
Thats it :-)
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
i stop in this step
root@server1 [/usr/src/redhat/SPECS]# rpmbuid -ba --without lua --without ldap --without gdbm --without gamin lighttpd.spec
i get this msg
-bash: rpmbuid: command not found
Offline
There's a typo, it should be rpmbuild:
rpmbuild -ba --without lua --without ldap --without gdbm --without gamin lighttpd.spec
Offline
ok man is work this step to
now here?
If everything worked out, and the above command did not return any errors you will be able to install the rpms from
/usr/src/redhat/RPMS/i386 for 32bit servers and /usr/src/redhat/RPMS/x86_64 for 64bit servers.
For streaming and hotlinking protection you only need the following rpms:
lighttpd-1.4.28-1+h264.x86_64.rpm
lighttpd-mod_h264_streaming-1.4.28-1+h264.x86_64.rpm
For running lighttpd as the main web server you also need:
lighttpd-fastcgi-1.4.28-1+h264.x86_64.rpm
The above examples are for a 64bit server.
Offline
Do you have a 32 or 64bit system?
Offline
i dont know that . i ask my provider but they dont answer yet. is there any commend to find it?
Last edited by thiva7 (2011-07-09 13:56:19)
Offline
Could you post the output of uname -a please?
Offline
Linux server1.xporn4u.com 2.6.18-028stab070.14-ent #1 SMP Thu Nov 18 16:23:32 MSK 2010 i686 i686 i386 GNU/Linux
Offline
You have a 32 bit CPU. Your rpms should be in the i386 or i686 folder.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
ok adrian tnx....i finish with all steps....how i can setup lighttpd now??
Last edited by thiva7 (2011-07-13 15:31:57)
Offline
I will write a HOWTO for this today.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
when u will make HOWTO adrian?
Offline
There you go: http://forum.adultscriptpro.com/viewtopic.php?id=588 ))
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Thank you so much for the very nice post!
Anyway, how can I include mod_cache for lighttpd 1.4.28 running on CentOS 5.5 x86_64. Is there any mod_cache RPM package available for this?
Offline
I've never used mod_cache (will read docs about it ASAP), but i think its included in the RPM.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
I really like your HOWTO and I want mod_cache on my Lighttpd 1.4.28.... But I don't really know how to get this working..
Last edited by brandix (2011-08-07 13:48:41)
Offline
Hi Admin,
Thank you for having time to reply my post.
Only the lighttpd-1.4.26 ( http://repo.nixval.com/nixval-centos/5/ … x86_64.rpm ) has a mod_cache, but I'm running with your lighttpd-1.4.28 and I wouldn't like to reinstall it again because it is now working properly with your HOWTO..... How can I use the mod_cache on lighttpd-1.4.28?
I really need your help and thank you so much for having time reading my request..
Offline
Hi,
I am getting on the build step:
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd lighttpd-1.4.28
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (lighttpd-1.4.27-defaultconf.patch):'
Patch #0 (lighttpd-1.4.27-defaultconf.patch):
+ patch -p1 -b --suffix .defaultconf -s
+ echo 'Patch #1 (lighttpd-h264.patch):'
Patch #1 (lighttpd-h264.patch):
+ patch -p1 -b --suffix .defaultconf -s
+ /bin/cat
+ /bin/cat
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.46039
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd lighttpd-1.4.28
+ ./autogen.sh
./autogen.sh: running `libtoolize --copy --force'
You should update your `aclocal.m4' by running aclocal.
./autogen.sh: running `aclocal-1.9 -I m4'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake-1.9 --add-missing --copy --foreign'
./autogen.sh: running `autoconf'
configure.ac:1: error: possibly undefined macro: dnl
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:57: error: possibly undefined macro: AC_CHECK_HEADERS
configure.ac:71: error: possibly undefined macro: AC_DEFINE
configure.ac:108: error: possibly undefined macro: AC_CHECK_LIB
configure.ac:112: error: possibly undefined macro: AC_MSG_ERROR
error: Bad exit status from /var/tmp/rpm-tmp.46039 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.46039 (%build)
Any idea ?
Offline
I managed to sort it.
In case someone have this problem in the future.
On CentOS:
yum install libnotify-devel
fix it.
Basically you need pkgconfig installed.
Offline