Programming :: Use Mod_perl With Lighttpd?
May 2, 2010Is possible to use mod_perl with lighttpd?
View 1 RepliesIs possible to use mod_perl with lighttpd?
View 1 RepliesI am trying to compile and install mod_perl with apache so I can use apache:asp.
I run Makefile.PL with this command.
Code:
perl Makefile.PL APACHE_SRC=../apache_2.2.9/src
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
APACI_ARGS='--prefix=/usr/local/httpd_perl'
then I run make.
I get this error.
[error]
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory `/usr/src/mod_perl/src/modules/perl'
make: *** [modperl_lib] Error 2
[/error]
It does not seem to be finding perl but I do nt know why or what to do about it?
could this be the problem? APACI_ARGS='--prefix=/usr/local/httpd_perl' I do not have the slightest ideal what that means or if I need it.
what the procedure is to file bugs against slackware so I will post here. The rc.lighttpd I have works but the function to check if lighttpd is running has an exception when there's no lighttpd.
View 2 Replies View RelatedI am using Ubuntu 9.04Following is a startup script I am trying.
Code:
#!/bin/sh
USER=lighttpd
[code]....
Few months ago I'd got problem with Apache on my server. Some requests required few gigabytes of memory, much more than was avaliable. I've set ulimit -v XXX and this fixed problem for single request.
I still have got problem with multiples requests. I'm using mod perl, which runs few processes for requests, we can assume, that there is one process per request. ulimit cannot handle this, because it can only limit virtual memory per process, not for a group of processes.
would this script not work?
Code:
#!/usr/bin/perl
#PERL module
use Mysql;
#CONFIG VARIABLES
[Code].....
I clearly have a lot to learn, but I have done about 10 Google searches trying to find out how to test connectivity b/t mod_perl and mysql.. maybe I'm confused on how this works.
I have this in httpd.conf
Code:
Perlrequire /etc/httpd/conf/perl-startup.pl
PerlWarn On
PerlModule Apache::DBI
I have this in perl-startup.pl
[Code]....
I have a trouble with the installation the libapreq2 package to configure mod_perl and Template Toolkit on Centos Linux with Apache 2.2.3 I obtained the following error message:
This error message appears when it tries to configure apxs.
I'm installing mod_perl and when running the make test I got the following errors:
-o mod_perl.so
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory `/home/alan/mod_perl-2.0.5/src/modules/perl'
make: *** [modperl_lib] Error 2
So as this is the first time I have tried developing with mod_perl I tried googling the error and -lperl
I have mod_cgi working perfectly. However, it turns out there are features of mod_perl that I'm trying to use. I have followed all the documentation I can find on using Ubuntu's mod_perl install with Apache2. There seems to be some type of problems with the mod_perl's documentation, as it doesn't work as it's defined. However, I found a modification to make it work, but only is designated directories. If I tried to use in a directory with my other HTML files the regular HTML files will fail.
Using these steps (but using apt-get's install rather than compiling the tar ball). I did as follows:
[URL]
placed this in the httpd.conf file (which was basically the same as "a2enmod perl".
httpd.conf line:
Code:
LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
Alias /perl/ /home/web/perl/
<Directory /home/web/perl>
SetHandler perl-script
[Code]....
I am installing mod_perl on the Linux box. Could successfully installed httpd, mod_perl, expat. Now when I try to run "make" command for libapreq2-2.12, it gives following error -
[FONT="Arial"]Making all in glue
make[1]: Entering directory `/opt/customer/apache/2.2.8_64_modperl/lib/libapreq2-2.12/glue'
cd perl; /usr/bin/perl Makefile.PL -apxs /opt/customer/apache/2.2.8_64_modperl/bin/apxs
Can't locate Apache2/Build.pm in @INC (@INC contains: /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi
[Code]...
I'm running CentOS 5.2(i think). But my Lighttpd does not work. Code: /etc/init.d/lighttpd restart
Stopping lighttpd: [ OK ]
Starting lighttpd: [ OK ]
it should work. When I browse to my IP i don't see anything. I just brought a VPS, so trying to get it working
I have installed lighttpd from svn as
Code:
Then I created four directories
Code:
And ls -l for following is
Code:
So permissions are correct upto here.
Then
Code:
Changed the following to
Code:
To
Code:
Then
Code:
Now I run
Code:
I can see
Code:
lighttpd is running.
Following is lighttpd.conf [url]
I created some html pages in /var/lighttpd/ in a directory called jp (which I had made).
Permissions of Document ROOT
Code:
And the directory
Code:
I was not able to see the webpages [url] but I was able to see [url] so why I could not browse the directory jp
I am getting a 404 not found error. Where as the page exists.
Yum answers that it does not contain lighttpd or lua in the repositories (base,updates,addons,extra). Where can I find a repository containing these packages or should I revert to building myself ?
View 3 Replies View RelatedIs there a big difference? Which do you prefer?
View 1 Replies View RelatedI am running CentOS 5.5 Final on my VPS and IO am using lighttpd for a webserver. I am trying to find a way to upgrade this to the latest version using Yum.I want to find a repository that will allow me to upgrade to lighttpd-1.4.26-2.el5 with the required dependencies. I would also like to do the same for LUA 5.1.4.I have found older versions of lighttpd but not the latest in an RPM / Yum installable version. I have found tarballs and binary version but I am of the understanding that I should use yum to manage my packages to keep the system neat and easy to upgrade / remove etc. in future.
Can anyone advise me as to where I can find these programs and how I would connect to the right repository to get them.
I am trying to install lighttpd into ubuntu with arm. BUT when I configure the file, it gives out an error!
[Code]....
We are able to stream the video fine from while the flv file is located in the /var/videos/flv folder. We have a second volume that we formatted and mounted as /media/data/videos/flv. We have changed the path in the lighttpd config file to match this. When we play the video we are receiving:200, Stream not found, NetStream.Play.StreamNotFound, clip" "[Clip]"/media/data/videos/flv/test.flv".
View 1 Replies View RelatedHow do I stop Lighttpd server from auto starting when I boot? I'm using it on my laptop for testing and I'd like to turn it on when I need it but not have it autostart.
View 1 Replies View RelatedLighttpd anti-hotlinking for images i just want these domain to link my imgages (test1.com,newtest2.cn,800keke.net,800org.com.cn),the other site will be redirect to [url].
lighttp configuration :
Code:
This configure onle effect to test1.com. no effect to (newtest3.cn,800keke.net,800org.com.cn. i still dont know why..
I'm trying to configure lighttpd to send SCGI requests to different ports, depending on what file(s) are accessed. Is this possible? This is what I've tried, and it hasn't worked.
Code:
$HTTP["url"] == "URL1" {
scgi.server = (
"/RPC2" =>
[code]...
SCGI requests aren't sent to the correct port, regardless of what file is accessed.
the questions is how to get per directory config working for lighttpd? so far from googling i've seen people trying to use conditionals to match certain rules for a vhost , but i don't think that messing around with the main config file for each directory/vhost/whatever is such a good idea.
More importantly , i'm looking for a standardized method to achieve this which would work by simple putting an htaccess-like file into a directory and do the magic. i'm not interested in maintaining apache htaccess syntax , only to get the per directory config to work regardless of the syntax used.
I am not fully sure if this belongs more to the networking section or the software. O hope it is related to here enough.
My problem is as the topic says.
My port 80 seems to be already taken. lighttpd fails to start reporting that it cannot bind to port cause its already taken.
The error message itself:
Code:
"Starting web server: lighttpd2010-02-21 07:01:02: (network.c.345) can't bind to port: :: 80 Address already in use failed!"
I am not able to crack this by myself. Ihve tried investigating this by
Code:
lsof -i :80
netstat -ape | grep -v unix
First doesn't show anything second anything abt port 80.
Now hints I can think of. Maybe you have more experience and ideas what I can do and where should I look for the culprit.
I am using debian (unstable) and lighttpd. I even tried rebooting; it says that the port is taken already at the boot sequence (well it starts pretty much at end anyway but the system should be clean).
It seems that it started failing after a major distro update, so maybe there are some conflicts based on ipv6/v4 or something, though I have no idea what it could be. Well my hit for that is the part of error msg "bind to port: :: 80 ". This "::" looks like ipv6 naming convention. Maybe its lighttpd internal.
I have been searching in the forum and google but still not lucky enough to figure out yetI have a lighttpd server runningbecause apache consume so much CPU and memory) andqmailtoaster (just setup).Here is the configuration in cgi modules:
Code:
cgi.assign = ( ".pl" => "/usr/bin/perl",
".cgi" => "/usr/bin/perl",
[code]....
I have followed all the steps as mentioned on documentation.except automake (I am not clear as where to make automake)
I logged in as Root on a Ubuntu system
and then
Code:
cd /opt
svn checkout svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x/
cd lighttpd-1.4.x
./autogen.sh
./configure
make
make install
After this what do I need to do to be able to start the lighttpd ?After this I did not found any script /etc/init.d/lighttpd. so what more has to be done ?
I have an Ubuntu server running with lighttpd.
The file, access.log has utilized 73GB at: logs/lighttpd/, which contains data since 3 to 4 years (approx.)
So, i need to have only last 6 months logs in the file and the rest to be cleared.
For the 1st domain,say domain1. I name the index file as:
[code]...
3 identical files. It works seamlessly. On browser its webpage can be evoked. Now I add another domain, say domain2. How shall I name its index files?
[code]...
[url]
I ran across the above article, which described a DoS attack in which requests are sent very slowly to the Web server. I'm running lighttpd 1.4.28 on a Gentoo Linux server, and I'm wondering if there is anything I could do in preparation to defend against such an attack.
A bug report [url] seems to indicate that there was a patch in place already against this sort of attack, but I wanted to be sure that was the same thing and if there was anything else I needed to do.
This is what I did till now and all was installed with success:
yum update
wget [URL]
yum install lighttpd
chkconfig --levels 235 lighttpd on
/etc/init.d/lighttpd start
Must I configure something else too? if yes... what?
I installed lighttpd to be able to view cgi files that display the status of my UPS. For the most part is has worked w/o incident i.e. until recently when the UPS battery failed on my APC backups xs 1500 lcd. I could not view the multimon.cgi file via the localhost or 127.0.0.1 url e.g.: [URL]... I'd get 404 page not found message. After checking links here and on the web, I tried: [URL]... The page is displayed. From this discovery, I'm not sure that this is a web server configuration or a network host configuration issue or what. I'm running Lucid with all updates, no mods to lighttpd except I added the mod_fastcgi line to the lighttpd.conf file
View 7 Replies View RelatedI've got this problem for a few weeks and I cannot figure out. I'm pulling my hair out. I have a server installed PHP, lighttpd and redis. Sometimes, I got the following messages in the error log of lighty: Code: 2010-09-24 13:57:33: (mod_fastcgi.c.3011) backend is overloaded; we'll disable it for 1 seconds and send the request to anoth er backend instead: reconnects: 0 load: 567 2010-09-24 13:57:33: (mod_fastcgi.c.3011) backend is overloaded; we'll disable it for 1 seconds and send the request to anoth
er backend instead: reconnects: 0 load: 626 and:
[Code]..