apache2

IE8 not working with apache basic auth

Hi, Basically what happens is when I go to the site ie8 pops up the prompt for logging in, I provide credentials and hit "ok". The popup comes up again, I repeat, same result. I've repeated up to 10 times and still ie never logs me in, if I hit cancel I get logged in (after several attempts) This works fine on firefox and chrome. Any...

ssl in localhost using apache and passenger

Hi, I am trying to configure SSL on my localhost using apache and phusion passenger. I am using virtualhosts. I have the below configuration in sites-available/myapp VirtualHost *:80 ServerName myapp DocumentRoot /home/madhu/ror/myapp/public RailsEnv development Directory /home/madhu/ror/myapp/public AllowOverride all ...

Fedora LAMP: Problem include configuration file

Hello, I've been configuring LAMP server on Fedora core 13 and when I tr to include my configuration files from within /etc/http/conf/httpd.conf using apache's Include directive, apache just fails on restart action. What is the problem, is there any problems on Selinux stack? Sultan ...

PHP Fatal error: Call to undefined method mosMenu::mosDBTable()

I have a Mambo CMS web site hosted with 000webhost. The site is powered by Mambo 4.6.2. and PHP Version 5.2.13 is installed on the 000webhost web server. The web site runs fine. I've upgraded the OS of my development machine to Ubuntu 10.04 since I last worked on the site, and the site no longer works. This machine has PHP Version 5.3.2...

How do I handle a VirtualHost/Passenger entry for a Rails site that solely handles subdomains?

I want to use Rails 3's new subdomain features to handle all subdomain paths except www and nil. Oppositely in a second rails app, I want to solely handle www and nil in the url path. What would my two VirtualHost entries look like for Apache with Passenger? And in the code, for the first subdomain handling app, so long as I handle th...

mod_rewrite not working in top directory but OK in subdirectories

I've used mod_rewrite (sparingly) in a few directories before without problems by putting in a .htaccess file for that directory, and it works there now. But when I try to use it in my top level directory, nothing happens!?!?! But that .htaccess file (top level one) is working fine otherwise. I have Redirect 301's and a variety of oth...

Not getting the 'Zend Amf endpoint' mesage on dreamhost but OK on my localserver

I've been working with Zend Amf for few months and everything is fine on my localserver (and was fine on my test server hosted by dreamhost) until recently. Now every time I try to access the gateway via the URL (i.e. http://hostname/gateway/) instead of the 'Zend AMF endpoint' message should be getting, the browser simply prompts me to ...

change default user of webserver for special directories

for example, if i'm using a php script that writes files, or using a cms , the files and folders that are generated are owned by a special user (f.e. www-data:www-data) is it possible to change this default user for special directories? so that for example all cms systems or php scripts in general use another user and group in the dir /...

Getting heartbeat to fallover when apache service fails

I've currently got heartbeat set up nicely on ubuntu linux server so that if the heartbeat service is not detected (either because the server is down or just the heartbeat service is down) it fallsover to the secondary server as described in a blog post on my site. Having less than 10 reputation I can't post images, so here is a link in...

Consdirations for making multiple handlers in same apache module or having seperate modules for each handler

I am writing an application where there are a bunch of handlers. I am trying to see if i should package these handlers within the same apache module or have a seperate module for each handler. I agree this is a generic question and would depend on my app, but i would like to know the general considerations that i have to make and also ...

Development setup advice needed - Django + Apache2 + mod_wsgi - on Mac and Ubuntu Dev Server

I need advice if this setup is ok. I have a personal dev server which runs Ubuntu. I have setup Ubuntu completely with git, django, mod_wsgi and apache2 running. I will be developing using my Macbook Pro. My idea was to have identical directory structure on both machines off of web root. Say: Mac: /path/to/webroot/ ...

URL is appended to WSGI script's path, why?

I have a development server set up running Apache 2.2 with mod_wsgi. I have a test project and a webapp in development setup, and they half work. When I attempt to access something other than the project's landing page, Apache appends the rest of the URL onto the path of the WSGI script and won't load the page. In httpd.conf: WSGIScrip...

iconv utf-8 to ascii transliteration in mod_php/apache2

I need to compare strings and match names to one another even if they are not spelled the same way. For example DÉSIRÉ-Smith should match Desireesmith as well as Desiree or Desi'ree Smith So i had the following approch which worked perfectly in the command line using PHP-CLI: <? class Alike { static function convertAlike...

What Apache/PHP/Server settings might affect the speed of a CodeIgnitor model instantiation from one server to another?

One of the pages in one of my apps runs very slowly on the web server compared to my local test server. There are some radical differences in the environments that might explain it, but I'm hoping for a more solvable solution than that. Server: Solaris 10 Apache 2.2.9 Prefork PHP 5.2.6 The server is run on a cluster of 4 not-even-a-yea...

Is there any way I could change the order of which Apache VirtualHosts load first?

I'm using a wildcard subdomain to manage most of my requests but I'm running into an issue of getting one of my subdomains (let's say, wiki.domain.com) to load first. I understand that loading this inside an httpd.conf or something would just be a case of resorting which VirtualHosts load first, but I am using a2ensite and sites-availab...

C++: What script can I use to test my Apache and FastCGI set up?

I asked at serverfault: How to set up apache with fastcgi and a simple test script? I have been having real difficulties for a couple of weeks trying to understand how to set up my machine so that I can test my C++ application with Apache/FastCGI. I tried with the simplest "Hello World" type of script. The only reply I have had so far...

C++ Apache API: How to programmatically update apache settings?

This is a nice article about setting up Apache virtual hosts on Debian. Now, I would like to be able to do so programmatically, from within my C++ application. What do I need to know to do so? Sub questions: What tool can I use to parse, read and write the apache config grammar? Is there an API or header I could use to that ...

Apache mod_wsgi instructions not being used

I have a server running Ubuntu Lucid 10.04.1 LTS server edition, which I want to deploy a Django app on using Apache + mod_wsgi. At the moment Apache does a directory index instead of using my WSGIScriptAlias command. Any tips why would be appreciated. I installed mod_wsgi via aptitude and assume the "module configuration" below loads ...

problem linking .so files in Ubuntu (how to unlink and link from different location) - apr_os_uuid_get

New to Ubuntu / Unix I have a binary that links with libaprutil-1.so Now this inturn links with libapr1.so i guess. Basically when i do ldd myapp, i get both of these listed. Now, I have a folder where both of these are present. And i added a .conf file to /etc/ld.so.conf.d/my.conf and have a path to this folder in that file. THen i r...

Rewrite logic breaking?

Hello, I have the following rewrite logic in my vHost and everything seems to be working in regards to redirecting subdomains, but as soon as I add a path to the URI I'm getting an error in my apache_error.log. Here is the rewrite logic: RewriteEngine On # Remove the www alias RewriteCond %{HTTP_HOST} ^www\.13labs\.net$ [...