Adult Script Pro Community Forums

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.

#1 2011-07-09 07:44:27

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

[HOWTO] Install Lighttpd for Adult Script Pro on CentOS

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

#2 2011-07-09 12:08:25

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

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

#3 2011-07-09 12:18:37

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

There's a typo, it should be rpmbuild:

rpmbuild -ba --without lua --without ldap --without gdbm --without gamin lighttpd.spec

Offline

#4 2011-07-09 12:56:00

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

ok man is work this step to smile



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

#5 2011-07-09 13:31:18

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

Do you have a 32 or 64bit system?

Offline

#6 2011-07-09 13:54:59

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

i dont know that sad . 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

#7 2011-07-09 14:20:43

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

Could you post the output of uname -a please?

Offline

#8 2011-07-09 14:29:38

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

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

#9 2011-07-13 14:32:25

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

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

#10 2011-07-13 15:11:43

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

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

#11 2011-07-14 07:31:53

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

I will write a HOWTO for this today.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#12 2011-07-17 15:34:06

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

when u will make HOWTO adrian?

Offline

#13 2011-07-17 19:23:41

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#14 2011-08-06 05:58:09

brandix
Member
Registered: 2011-07-25
Posts: 3

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

Thank you so much for the very nice post! smile

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

#15 2011-08-06 08:15:12

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

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

#16 2011-08-06 14:20:54

brandix
Member
Registered: 2011-07-25
Posts: 3

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

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.. sad

Last edited by brandix (2011-08-07 13:48:41)

Offline

#17 2011-08-08 15:02:59

brandix
Member
Registered: 2011-07-25
Posts: 3

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

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

#18 2012-02-15 18:11:45

peterabs
Member
Registered: 2012-02-15
Posts: 2

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

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

#19 2012-02-15 18:18:46

peterabs
Member
Registered: 2012-02-15
Posts: 2

Re: [HOWTO] Install Lighttpd for Adult Script Pro on CentOS

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

Board footer

Powered by FluxBB