Programming :: Lighttpd Startup Script Failing?

Aug 4, 2010

I am using Ubuntu 9.04Following is a startup script I am trying.

Code:
#!/bin/sh
USER=lighttpd

[code]....

View 3 Replies


ADVERTISEMENT

Slackware :: Function To Check If Lighttpd Running Has Exception When There's No Lighttpd

May 7, 2010

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 Related

Programming :: Use Mod_perl With Lighttpd?

May 2, 2010

Is possible to use mod_perl with lighttpd?

View 1 Replies View Related

Programming :: C++ Failing To Pass By Value?

Jan 25, 2010

I have a strange problem with a simple program. I have a container class that holds a pointer. I did this so I could use another container class that does several pass by value calls. I didn't want to be copying the object over and over again, so decided to build this simple container that simply copied the pointer in the copy constructor.

However, the pass by value call seems to be failing in a strange way. When the pass-by-value function is called, the program jumps into the copy constructor just fine and performs the pointer assignment operation. The program will copy the pointer value 0x20 (for argument sake) to the "this->base" location. Within the copy constructor, this has the address 0x28. Then when it jumps into the function, instead of pass by value argument being at 0x28 (as expected), it is at 0x36. Then 0x36->base has the address 0x28. Thus the base is now pointing at what was the new pointer container. At this point the data is corrupted and random things happen.

It seems that there is some strange assignment and double nesting going on. I really do not understand what is going on.

Below is some code. I have stripped away all the other code trying to isolate the problem. I have added comments explaining what my debugger is telling me.

Code:
using namespace std;
class paramPnt // Need to determine how order is tracked
{
private:
long order;

[Code].....

View 4 Replies View Related

Programming :: Run Cgi As Root Using Setreuid Failing

Nov 16, 2010

I'm calling a cgi-script on an apache webserver. The script needs to create a textfile and write certain values into it. When I do:

Code:
static const std::string outputFile( "/flash/myfile.ini" );
std::fstream fileStr( outputFile.c_str(), ( std::fstream::out | std::fstream::trunc ) );
if( !fileStr.is_open() )
{
throw std::runtime_error( "Failed to open config file." );
}
The runtime error is always thrown.

So I wish to run this cgi as root by doing this:

[Code]....

View 1 Replies View Related

Debian Programming :: ANT Script Task Failing

Mar 8, 2010

Using ant with

Code: Select all<script language="jython" manager="auto">

is failing

BUILD FAILED
/root/dawndusk/times_build.xml:25: Unable to create javax script engine for jython
at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:86)
at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:69)

I have ant-optional installed. Do I need to register specific languages?

Apache Ant version 1.8.0 compiled on February 20 2010

Detected Java version: 1.6 in: /usr/lib/jvm/java-6-openjdk/jre

View 1 Replies View Related

Programming :: Typeset -i Failing And Return Exit Code 1

Nov 18, 2010

I have this command in ksh:

1. typeset -i INTEGER INTEGER=aaa In all platforms except of Linux it is failing and return exit code 1 Why in Linux it is not failing? I must it for my number tests

2. The same for printf command. Only in Linux the bellow command is not failing: printf "%d" aaa

View 7 Replies View Related

Programming :: C++ List Regular Files Function Failing Inconsistently?

Mar 28, 2011

I've got a problem with a piece of code. Basically, I use my listRegularFiles function in two separate places in my code. The first time I run itit appears to work perfectly well. If I use it a second time, however, it blows a gasket. I'll post my code below, and if anybody has any ideas,Here's the code for listRegularFiles:

Code:
string listRegularFiles(char* dirname)
{

[code]...

View 2 Replies View Related

Programming :: Attempting To Do A Strdup Is Failing With A Segmentation Fault Within Libc?

Mar 12, 2010

Does anyone see a problem with my code? attempting to do a strdup is failing with a segmentation fault within libcplugintools.h

Code:
/* Provide function for adding files to be copied/linked
into report

[code]...

View 1 Replies View Related

Red Hat / Fedora :: Lighttpd Not Working - IP Don't See Anything

Jun 29, 2010

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

View 1 Replies View Related

Server :: Lighttpd - After Installation Could Not Get Web Pages

Aug 9, 2010

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.

View 4 Replies View Related

CentOS 5 :: Yum Repository Does Not Include Lua / Lighttpd?

May 14, 2009

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 Related

CentOS 5 :: Apache Vs Lighttpd / Big Difference In These - Which Is Best?

Jul 31, 2009

Is there a big difference? Which do you prefer?

View 1 Replies View Related

CentOS 5 :: Use Yum To Upgrade Lighttpd And Install LUA

May 26, 2010

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

View 1 Replies View Related

Ubuntu :: Install Lighttpd With Arm - Cannot Find -lpcre

Apr 27, 2010

I am trying to install lighttpd into ubuntu with arm. BUT when I configure the file, it gives out an error!

[Code]....

View 1 Replies View Related

Ubuntu Multimedia :: 200 Error When Using Lighttpd To Stream Flv

Mar 2, 2011

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 Related

Ubuntu Servers :: Have Lighttpd Not Autostart At Boot

Jul 16, 2011

How 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 Related

Server :: Lighttpd Anti-hotlinking For Images ?

Jan 7, 2011

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

View 1 Replies View Related

Server :: Multiple SCGI Servers With Lighttpd?

Jul 16, 2009

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.

View 1 Replies View Related

Software :: Get Per Directory Configuration In Lighttpd Aka Htaccess?

Aug 17, 2010

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.

View 3 Replies View Related

Programming :: C - Semaphores, Initiate Semaphores Seems To Be Failing?

Jun 28, 2010

I'm running the following code to initiate semaphores:

Code:
int init_semaphore(key_t semkey, int nsems)
{

[code]...

View 3 Replies View Related

Networking :: Lighttpd Breaks After Large System Update?

Feb 24, 2010

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.

View 2 Replies View Related

Server :: CentOS 5 Make Qmailadmin Work With Lighttpd?

Aug 20, 2010

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

View 2 Replies View Related

Server :: Installing Lighttpd From Svn Unable To Start Script?

Aug 4, 2010

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 ?

View 14 Replies View Related

Server :: Lighttpd Access.log File Is 73 GB - How To Clear It Partially

May 19, 2010

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.

View 4 Replies View Related

Server :: Lighttpd - Name Index.html Of Additional Domain?

Apr 13, 2011

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

View 1 Replies View Related

Server :: Lighttpd - Slow HTTP POST Attack

Jan 31, 2011

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

View 3 Replies View Related

CentOS 5 Server :: Installed Lighttpd - Get 404 Not Found In Browser

Jul 31, 2010

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?

View 2 Replies View Related

Ubuntu Servers :: Lighttpd 404 Error Page Not Found Message

Jul 7, 2010

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 Related

Server :: Lighttpd: Backend Is Overloaded + Multiple Php-cgi Processes In D State?

Sep 24, 2010

I'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]..

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved