apache,mono,apache2,mod-monoRelated issues-Collection of common programming errors


  • Raptor
    apache web-services tomcat
    getting error in command line: startup.bat: line 1: @echo: command not found startup.bat: line 2: syntax error near unexpected token `(‘ startup.bat: line 2: `rem Licensed to the Apache Software Foundation (ASF) under one or more’

  • Rolf
    php apache http-status-code-500
    Thanks to this forum, I learnt PHP header function does not actually send header to Apache server but only to the client.What I wanna do is to generate an error 500, and let Apache displays its corresponding page. Is there a way to force it ?Thanks in advance ! (and allez les bleus !)

  • user1028598
    php git apache corrupt
    The error on my server says ‘Parse error: syntax error, unexpected T_SL’. I receive this error after merging this specific file with someone else working on that file. It seems the error unexpected T_SL refers to bitwise operators <<. Now I am certain this has to do with the merge and looking at the git repo I dont see ‘<<‘ on that line. I have had this error long time ago and found out file was corrupted but dont remember the fix. Any help is good.

  • Spoons
    ruby-on-rails ruby ruby-on-rails-3 apache passenger
    I tried to deploy my rails application with passenger and apache and I get the following error message./root/finalProject/app/controllers/static_pages_controller.rb:6: syntax error, unexpected ‘:’, expecting ‘)’ @feed_items = current_user.feed.paginate(page: params[:page]) ^ /root/finalProject/app/controllers/static_pages_controller.rb:6: syntax error, unexpected ‘)’, expecting kEND @feed_items = current_user.feed.paginate(page: params[:page]) ^The code of the static_pages_controller.rb is the f

  • Ben L
    apache mod-rewrite ldap
    The larger problem is that LDAP authentication in Windows is case-insensitive but the program(s) using this feature for authentication are case sensitive. Two such programs are Collabnet SubversionEdge and Adobe Version Cue. Any variation on the case of the user name results in another user entry in those packages. And this user will have no access, frustrating the person, and clogging the help desk with tickets.Collabnet Subversion Edge uses Apache 2.2 so I intend to intercept the url and rewr

  • Janak Prajapati
    php apache .htaccess mod-rewrite redirect
    I actually want to redirect my old website url to new website url.I have made 1 redirect working properlyfor example http://www.abc-old.com/test to http://www.abc-new.com/test123but problem is while i have multiple slug or parameters it won’t work for melike i want to redirecthttp://www.abc-old.com/test1/test2 to http://www.abc-new.com/test1but it is redirecting likehttp://www.abc-old.com/test1/test2 to http://www.abc-new.com/test1/test2below is my code for same Redirect 301 /test1/test2 http://

  • brndnmg
    apache .htaccess mod-rewrite
    I am needing to rewrite www.domain.com/newsite/ as www.domain.com/, basically I am doing this just in case the new site has some unexpected problem, I can easily roll-back to the original by editing the .htaccess file…

  • Duncan
    ruby-on-rails apache passenger compatibility ruby-1.9.3
    I am trying to set up my Rails app on Apache. I am using Passenger to load my Rails App. It seems like Passenger does not support the new Ruby hash format x: y but supports the old one 😡 => y. The Ruby version I am using is 1.9.3This is the error message I get:categories_controller.rb:12: syntax error, unexpected ‘:’, expecting ‘}’ format.json { render json: @categories } categories_controller.rb:23: syntax error, unexpected ‘:’, expecting ‘}’ format.json { render json: @category } categorie

  • petr
    apache bash
    I am migrating a legacy bash script which runs inside a www server. I have came across an issue that I am not able to explain.When ran through the webserver (as a CGI included script), the following commands:#!/bin/bash set -e -u echo “BP: Statistics generation 1” >/dev/fd/2 echo “BP: one: $1, two: $2” >/dev/fd/2more ../download/interactions.$1.$2 | grep -v “#” | awk ‘($2!~/_R/){print $2}’ | sort -k 1 | uniq > rna.names.txt more ../download/interactions.$1.$2 | grep -v “#” | awk ‘($1!~/

  • Vladimir Bezugliy
    apache svn
    We need to work with some SVN repository via proxy. Direct url: http://host.com.ua/appURL via proxy: http://proxy.com.ua/svn/appWe added following lines to Apache: ProxyPass /svn/app http://host.com.ua/app ProxyPassReverse /svn/app http://host.com.ua/appNow I can access http://host.com.ua/app via browser. I can checkout working copy using direct URL http://host.com.ua/app. But I can’t access repository via our proxy using svn command line tool or TortoiseSVN. There is following error:

  • rstackhouse
    c# mono read-eval-print-loop
    If I type the following:class Klass { public int X; }I get the error: {interactive}(1,1): error CS1525: Unexpected symbol ‘class’, expecting ‘using’Is there a way to input classes and methods into Mono’s CSharpRepl?

  • Stijn
    nginx fastcgi mono arch-linux
    I’m going through http://www.mono-project.com/FastCGI_Nginx and can’t get it to work. The FastCGI server seems to be running. The following is from the error log:upstream sent unexpected FastCGI record: 3 while reading response header from upstream, client: 192.168.1.125, server: arch, request: “GET /Default.aspx HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “arch”Command used to start the server (I’ve tried server2 and server4, using a simple .NET 2.0 or .NET 4.0 project):fastcgi-mono-

  • Luka Horvatic
    nginx asp.net fastcgi mono
    I installed mono fast cgi for nginx following instructions on: http://www.mono-project.com/FastCGI_Nginx but when i try to load test aspx file i getting 502 error gateway,and following error in error log: 2011/11/28 18:49:51 [error] 5376#0: *6 upstream sent unexpected FastCGI record: 3 while reading response header from upstream, client: ipadress, server: ipadress, request: “GET /default.aspx HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9999”, host: “ipadress” I tried different things to change but

  • paulwithap
    macports homebrew git mono
    This is probably bad form for this board, and feel free to delete it if it is, but running brew doctor reveals the following:Warning: /usr/local/lib/pkgconfig isn’t writable. This can happen if you “sudo make install” software that isn’t managed by Homebrew.If a brew tries to write a .pc file to this directory, the install will fail during the link step.You should probably `chown` /usr/local/lib/pkgconfig Warning: “config” scripts exist outside your system or Homebrew directories. `./configure`

  • Natalie
    osx mono terminal lion homebrew
    I’m trying to install Homebrew but I’m getting multiple errors when brew doctor is run.I’m a complete noob at this and I’ve tried uninstalling Homebrew and re-installing, but still not working.Here’s what it shows:Warning: /Library/Frameworks/Mono.framework detected This can be picked up by CMake’s build system and likely cause the build to fail. You may need to move this file out of the way to compile CMake.Warning: Unbrewed dylibs were found in /usr/local/lib. If you didn’t put them there on p

  • Seehyung Lee
    mono
    I’m new to ubuntu and tying to install latest mono on ubuntu. When I issued the command make get-monolite-latestbut i got this error messagerm -fr /home/avalon/monobuild/mono/mcs/class/lib/monolite-* mkdir -p/home/avalon/monobuild/mono/mcs/class/lib test ! -d/home/avalon/monobuild/mono/mcs/class/lib/monolite || test ! -d/home/avalon/monobuild/mono/mcs/class/lib/monolite.old || rm -fr/home/avalon/monobuild/mono/mcs/class/lib/monolite.old test ! -d/home/avalon/monobuild/mono/mcs/class/lib/monolite

  • Andrei
    c# windows linux mono
    In what measure is developing with mono cross-platform? How do I compile for Windows (in Linux), how do I run things in Linux (because there is no .NET JIT compiler)?So what are the particularities of developing with Mono? What are the advantages over developing with Visual Studio (except cross-platform thinghie)?

  • ILya
    mono deflatestream
    I have a simple codebyte[] buffer = Encoding.UTF8.GetBytes(“abracadabra”); MemoryStream ms = new MemoryStream(); DeflateStream ds = new DeflateStream(ms, CompressionMode.Compress, false); ms.Write(buffer, 0, buffer.Length);DeflateStream ds2 = new DeflateStream(ms, CompressionMode.Decompress, false); byte[] buffer2 = new byte[ms.Length]; ds2.Read(buffer2, 0, (int)ms.Length); Console.WriteLine(Encoding.UTF8.GetString(buffer2));And when reading from ds2, i have the following:Stacktrace:at (wrapper

  • Borek
    visual-studio mono
    I’d like to see how some classes are implemented in Mono and would like to use code navigation features found in Visual Studio. Has anyone tried importing Mono source codes as a VS project / solution?

  • technomage
    mono garbage-collection jit aot
    Mono can be compiled to native AOT executable using mkbundle. My question is, how is the garbage collection works? If I compile Mono into AOT executable, should I make modification in the codes, to release unused variables / objects ?

  • rohith
    java perl apache2 bugzilla
    This is my java classimport java.net.MalformedURLException; import java.net.URL; import java.util.HashMap; import java.util.Map;import org.apache.xmlrpc.XmlRpcException; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; public class BugzillaAuthentication {public static void main(String[] args) throws MalformedURLException, XmlRpcException {XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();confi

  • SlovaN
    regex mod-rewrite url-rewriting apache2
    I’m playing with apache rewrite_mod (Apache/2.2.17 Win32) and encounter very weird behave of rewriteRule.My script primarily rewrite infinite filter parameters named f1 .. f<infinity> from nice url and in loop adding them as query variables, add path as query, and page number.It works flawlessly, but if I add one another rule (last rule in script)RewriteRule ^(.+)\.html$ /index.php?path=$1.html [QSA]which is for another cases, it change execution of rewriterule at s

  • Billy Bob Thornton
    apache2 ubuntu compression images
    I have a weird problem on my production web server running Apache on Ubuntu: it compresses my images thereby dramatically lowering their quality!Actually I have two virtual hosts running, each located in a different folder. Wether I display .gif images by navigating on the two sites, or acceding them directly by their url, their size and quality are invariably degraded. I tried with three different browsers: same problem. Using them on other sites on the Web: no problem. Of course I disabled mo

  • kalina
    server apache2 php
    I try to test my php installation on a ubuntu server without gui. Therefore I follow the 3rd this howto for LAMP(!). This includes to install php5 et al. withsudo apt-get install php5 libapache2-mod-php5 php5-mcryptThen PHP is added to the directory index.sudo nano /etc/apache2/mods-enabled/dir.confSo that the file is:<IfModule mod_dir.c>DirectoryIndex index.php index.html index.cgi index.pl index.php index.xhtml index.htm </IfModule>I have the file /var/www/info.php like this:<?p

  • Private
    12.04 apache2 rvm gem redmine
    I have a running redmine version 1.3.2 on my ubuntu 12.04 already, and now i am trying to install a new 2.4.2 version at a different location.I used RVM to install ruby 1.9.2 and I need the passenger mod to run the application.I guess the to problem is in my passenger.conf location settings that’s what I found out.PassengerRoot /usrPassengerRuby /usr/share/ruby-rvm/rubies/ruby-1.9.2-p180/bin/rubyPassengerDefaultUser www-dataWith that configuration I receive an internal 500 error already from red

  • Kongthap
    13.04 apache2 virtualhost
    I would like to have 2 sites on my development machine.I edited /etc/hosts as follow127.0.0.1 restaurant.local www.restaurant.local 127.0.0.1 lrv4.local www.lrv4.localI created 2 new files /etc/apache2/sites-available/restaurant.local and ../lrv4.local<VirtualHost restaurant.local:80>ServerName restaurant.localServerAlias www.restaurant.localDocumentRoot /var/www/restaurant/public<Directory /var/www/restaurant/public/>Options FollowSymLinksAllowOverride None</Direc

  • jdpipe
    10.04 server command-line ssh apache2
    I have an Ubuntu 10.04 server that’s going a bit slow. It’s very slow to log in via SSH, and it’s very slow when making edits via a Mediawiki instance installed on there.For normal read access to the hosted website, it’s fast (I have APC installed, FWIW), and it’s also fast with SSH once I’m actually logged in.What sort of things should I be checking as possible sources of this problem? I need to diagnose it remotely.Cheers JP

  • Jacob Larson
    apache2 php localhost
    I have found a question very similar to this, which I thought would solve my problem. However, after changing my .htaccess file, with index.php on the end of the list, and then index.php as the only entry, I still cannot get index.php to display. Every other page works fine, but I don’t know how to fix this. Thanks.

  • César
    installation apache2
    Fresh new install of Ubuntu fresh new install of apache2. Apache not working, where should I start? It’s installed, it restarts properly it just doesn’t show anything in the browser but a 500 error:HTTP Error 500 (Internal Server Error): An unexpected condition wasencountered while the server was attempting to fulfill the request.

  • Saravanan
    apache apache2 ofbiz
    I have downloaded ofbiz-trunk folder for my ERP project work.I think i downloaded the 9.04 version.Actually downloaded folder has name contains its version.But my colleque has renamed the folder.So, i could not able to identify the version of my ofbiz trunk.Is there any way to find out its version or is it possible at runtime?Is there any config file that mention the version?Please guide me to get out of this issue?

  • Abdullah Ahmed
    amazon-ec2 mono amazon-ami mod-mono xsp
    I am trying to setup an Amazon EC2 AMI (details) with Mono 2.8.2 on it by following this guide. I’ve run into a couple of issues with it.Issue OneI get a Permission Denied error When I try to do the following stepscat >>/etc/profile.d/mono_path.sh export PATH=$PATH:/opt/mono-2.8.1/bin export PKG_CONFIG_PATH=/opt/mono-2.8.1/lib/pkgconfig/:$PKG_CONFIG_PATHEven doing sudo cat >>/etc/profile.d/mono_path.sh resulted in the same Permission Denied error so I decided to use VI to create a /e

  • djechelon
    apache2 php opensuse mod-mono
    I want to disable every form of scripting (PHP, ASP.NET, CGI) for a specific vhost in my Apache2 setup. Only plain old HTML pages.Scripting must remain enabled for all other vhosts in the server.It’s not a security concern, it’s a commercial concern (customer pays less for hosting)Is it possible and how can I do that?[Edit] From what I’ve found around the web, I’m going to try the followingRemoveHandler .php .phtml .php3 RemoveType .php .phtml .php3 RemoveHandler .aspx .ascx .ashx .asmx .asax .s

  • Miguel Marques
    wcf apache mono mod-mono
    I have a WCF service using basicHttpBinding hosted in Apache 2.2.15, using mod_mono in CentOS. I added the following directives to the end of /etc/httpd/conf/httpd.conf to enable WCF services:MonoServerPath default /usr/bin/mod-mono-server4 AddType application/x-asp-net .svcWhen I try to call an operation in the service from a client in windows:BasicHttpBinding binding = new BasicHttpBinding();IService1 service1 = ChannelFactory<IService1>.CreateChannel(binding, new EndpointAddress(new Uri

  • Alessandro Minoccheri
    apache mono debian mod-mono
    I’m trying to develop a simple website and deploy on Apache + mod_mono+ debian.Apache fails to render the aspx pages with a compiler error. Here’s is the aspx code and error details . System.Web.Compilation.CompilationException : Unhandled Exception: Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.Details: : Unhandled Exception:Error origin: CompilerError source file: /dev/one.aspxException stack trace:at System.W

  • Mauricio Scheffer
    mono solr solrnet mod-mono
    This is a strange bug that we started seeing about a year ago. At first, I only occasionally noticed it on my dev machine, but now it’s been starting to appear in production, which is problematic.We use Ubuntu (11.04), and Mono 2.6.7 in production (I can also repro with Mono 2.10.x), inside apache, using mod_mono. Basically, sometimes (very hard to reproduce), when apache starts the application, SolrNet decides to lower case the entire URL it transmits to the solr server. If the application is

  • Dwobin
    apache2 centos6 mono mod-mono
    EDIT: Added some extra logs at the end I’m trying to make Mono 3.0 work on CentOS 6 with Apache. I have compiled Mono, mod_mono and the XPS server from the source. But now I’m getting errors because it doesn’t seem to be pointing to the right place.I want to store my files under /home/mvcgui/wwwroot/. I have put the ‘apache’ user in the mvcgui group. I’ve created a VHOST pointing there, like so:<VirtualHost _default_:80>ServerAdmin [email protected] /home/mvcgui/wwwroot #

  • djechelon
    opensuse mono mod-mono asp.net-mvc-4
    I’m trying to start a test MVC4 application on Mono 2.10$ xsp –version xsp2.exe 2.10.2.0 Copyright (C) 2002-2011 Novell, Inc. Minimalistic web server for testing System.Web$ mod-mono-server4 –version mod-mono-server4.exe 2.10.2.0 (c) (c) 2002-2011 Novell, Inc. Mod_mono backend for XSPWhen I start mod-mono-server4 and perform a request I get this$ mod-mono-server4 –port 8080 mod-mono-server4 mod-mono-server4 Listening on port: 8080 Listening on address: 0.0.0.0 Root directory: /path/to/htdoc

  • Marijn Giesen
    .net asp.net-mvc apache mono mod-mono
    Yesterday I’ve installed mono version 2.11.1 on CentOS 5.7. Since then, I can’t get my .NET4.0 applications to work via mod_mono and Apache, but my .NET2.0 applications work fine. Running a .NET4.0 console app from the command line works fine as well.Versions used:mono 2.11.1 mod_mono 2.10 xsp 2.10.2 apache 2.2.21My Apache config (the relevant part):Alias /testproject “/var/www/sites/testproject”MonoServerPath testproject “/usr/bin/mod-mono-server4” MonoAutoApplication disabled MonoDebug testpro

  • Max Ehrlich
    asp.net mono nullpointerexception mod-mono
    I am writing an asp.net handler. So far the handler has worked fine in IIS, but we have switched to a linux server for production. We are using mod_mono in apache to host the content. I am getting a null pointer exception coming from somewhere deep inside mono and I am not sure what is causing it. The full error message is below {“ClassName”: “System.NullReferenceException”,”Message”: “Object reference not set to an instance of an object”,”InnerException”: null,”HelpURL”: null,”StackTraceString”

  • Farray
    asp.net mysql mono mysql-connector mod-mono
    I have installed Mono (version 2.10.2), mod_mono and have successfully tested it with both an index.html and an index.aspx echoing the date.My problem is that I can’t get MySQL to work with Mono;I have downloaded the mysql-connector-net-6.4.3-noinstall.zip file, renamed the dll to MySql.Data.dll, (from v2 folder)I have installed with gacutil -i MySql.Data.dll and edited both machine.config files (for 2.0 and 4.0) adding the following:<add name=”MySQL Data Provider” invariant=”MySql.Data.MyS

Web site is in building