apache2

Failures caused by logrotate on Apache 2 with passphrase protected SSL key

I have an Apache 2 installation on Debian with mod_ssl installed. The server private key is protected by a passphase that needs to be entered on start-up. The error and access logs are subject to logrotate on a weekly basis. I find that Apache crashes with a passphrase-related error shortly after logrotate runs. I understand that log...

How do I install modperl under OS X Leopard's default Apache 2?

My attempts to install modperl under the default vanilla Leopard Apache 2 have failed and all I can find online are variations on this: I would like if possible not to rely on MacPorts or Fink, though if they can be made to work with the default Apache 2 install that would probably be ok. (The best answer is the one that I've supplied ...

Django + FCGID on Fedora Core 9 -- what am I missing?

Fedora Core 9 seems to have FCGID instead of FastCGI as a pre-built, YUM-managed module. [I'd rather not have to maintain a module outside of YUM; so no manual builds for me or my sysadmins.] I'm trying to launch Django through the runfastcgi interface (per the FastCGI deployment docs). What I'm seeing is the resulting page written ...

Licensing: Changing Apache License v2 code to GPLv3 licensed code

I would like to start a project using the GPLv3 license; utilising existing GPLv2 code and Apache License, Version 2.0 code. Please keep answers here specific to Apache License, Version 2.0 licensed code transitioning into a piece of GPLv3 licensed code. Thanks. What are the encumberances in changing a piece of Apache License, Version ...

Intra-process coordination in mod_perl under the worker MPM

I need to do some simple timezone calculation in mod_perl. DateTime isn't an option. What I need to do is easily accomplished by setting $ENV{TZ} and using localtime and POSIX::mktime, but under a threaded MPM, I'd need to make sure only one thread at a time was mucking with the environment. (I'm not concerned about other uses of loca...

Apache rate limiting options

What techniques and/or modules are available to implement robust rate limiting (requests|bytes/ip/unit time) in apache? ...

Running Apache without explicitly declaring listening on ports such as :3000 or :6600

Using Ruby and Thin as a web service. Apache is also loaded. Can't access the web service because listing ports, such as :3000 or :6600, in the GET url is not allowed. How is the port requirement removed? ...

How can I use post-commit hooks to copy committed files to a web directory from SVN?

My Ubuntu server has Apache and Subversion installed. I use this server as a staging server, purely for testing purposes. I use Apache to host the web application, and Subversion to keep versioned copies of the source code. My current workflow: Make changes to a file Commit the file to the Subversion repository Upload the file new ove...

Apache/Rails/Passenger Displaying Site Index?

I have a Rails app that I have successfully tested with Mongrel and Webkit. Now I want to test deployment. I set up a VMWare Image using Ubuntu 8.04. I have installed Rails following this method https://help.ubuntu.com/community/RubyOnRails with the exception of using Gems 1.3 instead of 1.2. I have configured and installed Passenger...

Is there any way to determine the amount of time a client spends on a web page

Assuming I have an open source web server or proxy I can enhance, let's say apache or squid. Is there a way to determine the time each client spends on a web page? HTTP is of course stateless, so it's not trivial, but maybe someone has an idea on how to approach this problem? Thanks. ...

Apache configuration help -- Why are different processes "in" different time zones?

I have Apache 2 running on a VPS server (running Debian). I recently changed the timezone on the server (using dpkg-reconfigure tzdata) from America/New_York to America/Los_Angeles to match my move across country. I have also rebooted the virtual machine since making the change. However, the Apache processes seem to flitter between ti...

Can I run LAMP and Rails from the same Apache instance?

We have a RedHat box with Apache2, PHP5 and MySQL 5 for much of our development. Now, we have a Rails client, and we need to set up a Rails app on the same server. Can we install Ruby and the Rails framework with the same Apache, or should we avoid this? Why or Why not? Is it possible to direct subdomains to either PHP or Ruby in the ind...

Alternative Reverse Proxy Architecture Directions

Currently, I've got an expensive license for a reverse proxy server in an environment that is mostly Tomcat. I'm thinking of one or both of the following upgrades. Using Squid instead of the expensive licensed product. Using some Apache2 settings for caching. Right now, I'm vague on the details, but perhaps mod_proxy will work here? ...

Windows could not start the Apache2 on Local Computer - problem

During the installation of Apache2 I got the following message into cmd window: Installing the Apache2.2 service The Apache2.2 service is successfully installed. Testing httpd.conf.... Errors reported here must be corrected before the service can be started. httpd.exe: Could not reliably determine the server's fully qu...

Apache development config on OS X (again)

Hi All, I am trying to configure Apache2 on my Mac (running OS X 10.5) so I can use virtual hosts to develop a few different projects and be able to browse to them from other machines on my network. I've tried to use the following configuration in httpd.conf (boiled down a bit): ServerName macmini.local:80 Listen *:80 NameVirtualHost 1...

How to make Apache/mod_python process collect its zombies?

Apache/2.2.6 (Unix) DAV/2 mod_python/3.2.8 Python/2.4.4 configured ... One of apache processes spawns some long-running python script asynchronously, and apparently doesn't seem to collect its child process table entry. After that long-run-in-subprocess python script finishes - defunct python process has been left. # ps -ef | grep htt...

Why is _POST sometimes empty when a textarea is posted in PHP

PHP 4.4 and PHP 5.2.3 under Apache 2.2.4 on ubuntu. I am running Moodle 1.5.3 and have recently had a problem when updating a course. The $_POST variable is empty but only if a lot of text was entered into the textarea on the form. If only a short text is entered it works fine. I have increased the post_max_size from 8M to 200M and inc...

How to fix apache2 timestamps, incorrect values

Hi, When I restart my apache2 and reload a page, the log file shows boogie.tontut.fi - - [28/Oct/2008:03:27:49 +0200] "GET /test HTTP/1.1" 404 457 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3" ...as supposed to, as it's 03:27:49 now. However, when I click the refresh button again, th...

Using Subversion and Apache

I've never used any kind of source control before although I understand the concept. What I am confused about (and perhaps just not aware) is what benefit do I achieve and/or why would I want to configure Subversion and Apache? Do I need to configure it with Apache to be able to access my repositories from other computers over a network?...

What access does Apache 2.0 need in Windows Server 2003 in order to start as a service?

Until this morning, I have had Apache 2.0 running as a service using a local account which was configured with appropriate permissions. Sometime yesterday, someone must have changed something, and now Apache 2.0 won't start as a service under this account. I made the account an Administrator temporarily, and Apache 2.0 starts fine. I t...