apache2

Ubuntu + SVN + Apache2

Hello Everybody, I am working on a new project, and for that i need to install a SVN server. This is done right now. At the moment i've running: - Ubuntu - Apache - PHP5/MySQL - A svn server I can call the SVN server at http:// 192.168.1.36/svn/projectname with ToirtoiseSVN, when check out i get all the files right. But I cann't visi...

How do I ignore the Perl shebang on Windows with Apache 2?

I have set up a local Perl web environment on my Windows machine. The application I'm working on is originally from a Linux server, and so the shebang for source .pl files look like so: #!/usr/bin/perl This causes the following error on my Windows dev machine: (OS 2)The system cannot find the file specified. Is it possible to chang...

How to catch value of parameter in Apache2 CGI

Hello folks, I have a little apache2 CGI application on the Ubuntu. The CGI handler is bash shell script. My client application is search.html: <html> <body> <form action="/cgi-bin/search.sh" method="post"> <input type="text" name="searchKey" size="10"></input> <input type=SUBMIT value="search"> <form> </body> </html> firstly...

MacPorts Apache2 Stopped Launching on Boot

Something that I've noticed recently on two different machines is that Apache2 installed via MacPorts seems to have stopped launching when I boot up. The honest truth is that I can't swear it did so before, but it's something I think I'd notice because installing the LaunchDaemon is part of my install process. In fact, if I try to reload...

Best practice for setting up Apache and SVN for multiple sites and users?

I've just started working for a new firm as an in-house web developer. Up until now they have been outsourcing development work of their websites and decided to bring them in-house, hence my employment. I've only every worked on projects on my own and have never used version control. We've just hired another web developer to work along...

Redirect folder link to xml file

So I recently switched away from wordpress. Wordpress keeps all of it's feed URLs at /feed/. This seems reasonable to me, so I never signed up for a site like feedburner. Now I'm using an entirely new blog software, and it puts the feed at /atom.xml. How can I use the .htaccess file to redirect requests to /feed/ to /atom.xml? Or maybe...

Apache virtual host

Hi does this virtual host configuration is ok?. I,m trying to test it in my local machine and it don,t show the page. I disable the firewall to have all the ports open, do i have to do anything more to open the ports? or the virtual host configuration is wrong. <VirtualHost linux1:8890> #General setup for the virtual host DocumentR...

How to compile PHP5 into Apache 2 statically?

Is it possible to compile php5 (or really any php version) into the apache2 binary? I'm not looking to install & load php as a shared module. What I'm trying to find out is whether or not it's even possible to compile php5 into apache2 statically. Thanks a lot in advance! Rwe ...

Calling Apache API function from a PHP extension module

Hi all, I installed php-5.3.1 and apache 2.2.14, wanted to call Apache API from a PHP module: Run ./ext_skel --extname=hello Modified ext/hello.c and the function PHP_FUNCTION(confirm_hello_compiled) so that it contains: include "SAPI.h" include "httpd.h" include "http_config.h" include "http_protocol.h" include "ap_config.h"...

Couldn't find package libapache2-mod-wsgi

Hello, I have developed a website in Django, and now it must go into production. This i want to do with mod_wsgi and apache2. Unfortunately i get the error 'Couldn't find package libapache2-mod-wsgi' when running the next command: sudo apt-get install libapache2-mod-wsgi I am using apache2 on ubuntu server kermic(9.10). I will enter...

how-to apache 2.2 mod_fcgid set python path

Hello, i have trouble with seting the python path or any other enviroment variable for mod_fcgid (solaris 10, glassfish apache 2.2) I have it set in apache, but nothing in os.environ in the fcgi script: SetEnv PYTHONPATH "/opt/uusis/lib/python2.4/site-packages/:/usr/lib/python2.4/" And other stuff(for example ORACLE_HOME) and I need...

Cpanel error log [ client denied by server configuration ]

Hello, This is the first time I visited my error log (in cpanel) and found this: client denied by server configuration: /home/mydomain/public_html/myFolder/index.php3, referer: http://some_domain.com client denied by server configuration: /home/mydomain/public_html/myFolder/index.php4, referer: http://some_domain.com client denied by s...

Redirecting https requests to two different weblogic servers using the Weblogic proxy and Apache2

I have a server serverA running a weblogic application App1, with base url /app1/ on port 7001, and another server serverB, running a weblogic application App2, with base url /app2/ on port 8001. Both servers run Solaris, Apache2 and Weblogic 9.2 (details changed, but these are representantive) In other words, app1 could be accessed on...

Enable Gzip compression and set Cache expire times in CakePHP

I am using CakePHP with Apache2. Analyzing my pages with the tool PageSpeed from Google, I find two main problems. The first is that I should enable gzipping of content, the second that I should leverage browser caching for images, javascript and css files. I have more or less found how to remedy this, but it involves changing my main ....

VB Script Documents.Open throwing 424 error

So I have a vbs script: Function test2open( sSourceFile, sPDFFile ) Dim wApp ' As Word.Application Dim wDoc ' As Word.Document logStream.writeline "inside test2open" on error resume next Set wApp = CreateObject("Word.Application") logStream.writeline Err.Number Err.Clear Set wDoc = wApp.Documents.Open("c:\Windows\Temp...

Windows 7: PHP 5 Configured with Apache 2.2 when run from Console but not as Service

I'm on Windows 7 and I have installed Apache 2.2, PHP 5 (latest stable build) and MySQL. I have configured PHP 5 with Apache 2.2 as a module (i.e. LoadModule and AddType statements added in httpd.conf). Everything seems to work when I start Apache from the console (command prompt) but PHP would not work when the Apache service is start...

Failed to load mod_mem_cache.so

I am trying to load mod_mem_cache.so in SUSE Linux Enterprise Server 11, by doing LoadModule memcache /path/to/mem_cache.so. But I got this: httpd2: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 43 of /etc/apache2/sysconfig.d/loadmodule.conf: Can't locate API module structure `memcache' in file /usr/lib/p...

Cakephp and expires_module issue

I am configuring/creating a new web server and have run into an issue that I cannot seem to resolve. I am using Cakephp with Apache2 unfortunately on a Windows environment. When I enable the mod-expires module on our apache instance it causes a delay in the presentation of the new record that was saved before the redirect. It's acting ...

How can I determine PerlLogHandler performance impact?

I want to create a custom Apache2 log handler, and the template that is found on the apache site is: #file:MyApache2/LogPerUser.pm #--------------------------- package MyApache2::LogPerUser; use strict; use warnings; use Apache2::RequestRec (); use Apache2::Connection (); use Fcntl qw(:flock); use File::Spec::Functions qw(catfile); ...

How Do I Cache Just the Homepage with Apache .htaccess?

Below is an example on how to cache all files on the server ending in html or htm for 2 hours (7200 seconds). So how would I go about doing this only for the homepage of the website, but not any other URL? <FilesMatch "\.(html|htm)$"> Header set Cache-Control "max-age=7200, must-revalidate" </FilesMatch> I tried a Directory and a Loca...