apache

Which FastCGI server mode should I choose under Apache?

I am new to FastCGI and looking to use this platform to speed up my existing vanilla CGI (perl) programs. However in reading the FastCGI/Apache FAQ, it appears I can setup my scripts (once converted to use separate initialization/request sections) in the Apache config as one of the following: 1) dynamic 2) static "inside the scope of ...

htaccess mod_rewrite

I'm trying to put something with this, whenever I go to a page like: www.site.com/character.php?id=3 I want the mod rewrite to change it to: www.site.com/character/Jim_Carrey Which of course, the ID is the row of the character name... For that kind of example... I've tried to work with it, but don't seem to get most of the productio...

What's wrong with this mod_rewrite statement?

I need to replicate the functionality of mod_alias which I can't use directly because I'm on shared hosting, and Alias statements don't work in .htaccess. What I want to achieve is essentially Alias /manual /www/customer/some_other_dir/manual I am trying mod_rewrite: RewriteRule ^/manual/(.*) /www/customer/some_other_dir/manual/%1?%...

mod_rewrite to absolute path in .htaccess - turning up 404

I want to map a number of directories in a URL: www.example.com/manual www.example.com/login to directories outside the web root. My web root is /www/htdocs/customername/site the manual I want to redirect to is in /www/customer/some_other_dir/manual In mod_alias, this would be equal to Alias /manual /www/customer/some_other_d...

Apache POI - HWPF Table of Contents

When I try to parse a doc file with table of contents I get something like this. PAGEREF _Toc126303503 \h How do I seek to the specific part of the doc file where any item of the table of contentst is pointing to? Thanks ...

Trouble with SVN post-commit

Hi folks, I've been googling this stuff all day, and while I get tons of results, nothing seems to help me resolve the problem. I've installed SVN on my remote Apache server. I set up my repository, and added all of my code files. No problem. I installed TortoiseSVN on my local windows machine, and can check out and commit files withou...

localhost != remote server

I've been developing / testing a site locally on a MAMP (e.g. LAMP) environment. I have a form that's processed by jQuery that works fine locally; I don't want it to be submitted, but to send the values to an AJAX function. The issue is that it submits to the 'action' destination of the form parameter when it's run on a remote server wi...

Absolute file paths in mod_rewrite - allowed?

This is a follow-up to this question. I am trying to build a mod_rewrite rule where the rewriting target is an absolute path outside the web root, like RewriteRule ^manual(/(.*))?$ /www/htdocs/customername/manual/$2 [L] I need to do this because I can't use Alias in a .htaccess context (shared hosting). There are responses hinting a...

Recommended Django setup?

I am about to embark a major django project. If I install the latest stable release... is the a suggested setup ie. this OS, this RDBMS, this version of python etc?? I'm normally a CentOS man but their repos don't play too well with the django requirements... ...

.htaccess mod-rewrite how to

Can anyone tell me how to write an .htaccess mod-rewrite so the url displays ONLY the domain name at all times? No matter which page the user is in, I just want to show the domain name. Thanks in advance. ...

Undefined mysql functions using mySql5 + php5 + apache2 installed by macports under mac os x

I've installed mySql5 using macports and did manage to run the mysql server. but from some reason all mySql related functions like mysql_connect return an error message saying "a call to undefined function...." under php5. Here is partial mysqlnd section taken from the phpinfo report: mysqlnd enabled Version mysqlnd 5.0.5-dev - 081106...

How can I track down CPU intensive requests in mod_perl?

Using Apache 2.2 and mod_perl on Ubuntu 8.04 I have several applications on a server. Using Apache in pre-forking mode. Usually things are working well but once in a while I see one of Apache processes using 100% of the CPU. There are several web sites on the server with their own VirtualHosts and there are is and SVN server running vi...

RewriteRule in .htaccess not working

I am currently running Apache2 on my local machine, installed with the latest version of Ubuntu. I am trying to get basic URL rewriting working by using the .htaccess file. The file "http://localhost/page.php?=home" does exist, and the location "/doesnotexist/home" does not. I would like to have the first page be loaded when the secon...

$_Server['REQUEST_URI'] seems to have gone... where?

I had a working system with Apache 2.0 and PHP 5.2.6 I have had to upgrade Apache and PHP, so I now have Apache 2.2 and PHP 5.2.12 and for some reason $_SERVER['REQUEST_URI'] is now missing from the super global in PHP. This is my test system on my dev PC (not a live server) and there are 4 or vhosts on it. What config should I check...

IN Wordpress, .php files within the theme folder do not run, but return 404 error

I'm on a VPS environment so I have root access, btw. So take a look at these issues: http://www.sonikastudios.com/wp-content/themes/sonikas/scripts/timthumb.php?src=/wp-content/uploads/tedleescreenshot1.jpg&w=100&h=100&zc=1&q=100 That returns a 404 error. However when I move timthumb.php to the root of the site, it w...

Mod Rewrite question with regex's

Im trying to do this sort of rewrite that only affects some urls to make them go to anchors. So if I see this request: /somedir/trigger/something I want to transform it to this request. I can guarantee there will be no slash after the trigger. The "something" part is going to be a alpha-numeric string every time. The "trigger" part i...

How to rewrite paths on single SSL secured subdomain to secure web apps on other subdomains using htaccess

Let's say I have an SSL secured domain at secure.domain.com. I also have a web application (using silverstripe) at www.domain.com and another at app.domain.com (using CakePHP) I would like specific areas of www.domain.com and app.domain.com to utilize SSL, and thus must somehow rewrite the paths using the subdomain with the installed S...

Apache Axis 1.x xml payload

I'm using apache axis to consume a few SOAP operations. The web service I'm talking to takes XML as one of the payload inputs. I noticed that Axis is encoding the non xml friendly characters. IE < > to &alt; etc.. etc.. How can I tell apache Axis to allow my payload to go over un-encoded? ...

Win2003, Apache 2.2.11, error loading random modules on restart after crash of PHP child process

Hello, I am having a weird problem with Apache/2.2.11 (Win32) DAV/2 PHP/5.2.9, running on Windows Server 2003. It was installed with XAMPP, from www.apachefriends.org, but I can't find anything in their forums. We have a Wordpress MU installation on this server, and there is apparently some problem in the PHP code there that is causing...

mysql is not enabled in phpinfo() of php 5.3.1

hi, I am having apache 2.2.14, php 5.3.1 and mysql 5.1.43 installed on vista. I am trying since 2 days to configure php to have mysql enable on phpinfo(). I modified php.ini to have extension_dir = "c:\php\ext" modified the extension as extension="php_mysql.dll" added "c:\php" to the "PATH" environment variable and restarted the vista...