Ruby on Rails - Web Server 7

We have followed the instructions below to set up RoR on Web Server 7
http://developers.sun.com/webtier/reference/techart/rubyonrails.html
But we are getting the following error when trying to connect to the application:
[15/Feb/2008:15:32:50] failure ( 6136): for host trying to GET /dispatch.fcgi/hello/sayhello while trying to GET /hello/sayhello, responder-fastcgi reports:
FCGI1010: could not change the working directory of the application process
I confirmed the location of the application against what we put in obj.conf. It resides in a user directory, but I have set the permissions to allow read write for the web server.
Any ideas?
Thanks!

Sorry for the delay. I was on vacation.
2) Commented out all the additions to obj.conf and then started adding
them back till something failed.
I get server errors. Can you post the exact error msgs (browser msg, errors log and Fastcgistub log) ?
Since it appears (based on the comments) that this block of code is
trying to re-write the URI I tried typing it in by hand but I probably have the syntax wrong.Yes, those rules are for re-writing the url. Basically, trying to prefix dispatch.fcgi to the URI.
URI should be of the form "<controller>/<action>"
I'm now beginning to suspect that my installation of fastcgi has a problem. Why do you think so ?
Is it possible to tell me what the full translated URL should look like? I can enter that by hand and then
check the log files to see what's going on. I tried http://localhost/dispatch.fcgi?comics/getComic
No. Change it to http://localhost/dispatch.fcgi/comics/getComic
Before this, remove <If> condition checks.
but all I get back is a copy of the dispatch.fcgi file in the browser. That means, you don't have the following line in obj.conf !
NameTrans fn="assign-name" from="/dispatch.fcgi/*" name="some-name"
Can you post your obj.conf ?

Similar Messages

  • Ruby one rails Web application

    Hi, I have been working on setting up the ruby on rails application for web review that apple sent to my boss and I had some questions if people knew how to fix a few certain problems. I am not very proficient when it comes to ruby or rails, but I don't have the money to hire some one to do this for me, so I am trying to teach my self.
    we are trying to get it to: -
    [Priority 1] Can we convert the QT served files to be streamed rather than 'wait while downloading"? If we can't stream, we need a progress bar to track the download pace.
    - [Priority 2] Web-based upload tool
    - [Priority 3] Who/When an event happens: specifically, who approved the clip & when (on the website)?
    - [Priority 4] Clip length displayed next to the clips.
    - [Prpriority 5]simple log in and password
    I know this is a lot to ask and I am not asking any one to go out of there way to figure anything out, just if any one know any reading material or tutorials and can point me in the right direction it would be appreciated.
    thank you

    Unless you want to learn and support a Ruby on Rails application like the one you are trying to implement, which will work, but will never be officially supported by Apple.
    I would recommend you take a look at services like:
    Media Silo
    http://www.mediasilo.com/fcs
    Wiredrive
    http://www.wiredrive.com
    They do very excellent jobs of offering Robust review and approval workflows.

  • Ruby and Rails Code for Connecting to ITunes U

    I have created ruby code to connect to ITunes U. I am making this code available here for people who would like to see how to do this with Ruby. I have also create a Ruby on Rails web app included in the zip file. These files are available at http://www.skc.edu/elearning/Ruby_ITunes.zip
    If you have questions you can email me at [email protected]
    I hope this helps some of you get ITunes U going for your school...
    Al Anderson
    Director, ITSS
    Salish Kootenai College

    Beautiful!!
    I have just begun learning Ruby and RoR, partly for the exact purpose of using it with iTunesU, so this is perfect!! You just saved me a LOT of head scratching.
    Thanks a TON!

  • Ruby on Rails on OSX Server

    Has any one built or have instructions for installing Ruby on Rails on OSX Server 10.4?
    Do these instructions still apply:
    http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx
    And can it play alongside Apache if you use Mongrel as the web server?

    I have been trying for the last couple of weeks to get Ruby on Rails running on OSX Server as well. I followed the instructions on the site you refer to. The whole installation proceeds just fine, I can run my RoR sites locally by running scripts/server, but when trying to access the web site I get a 403 error and the log says "Directory index forbidden by rule".
    I have followed directions from other sites regarding: installing and activating the fastcgi module, setting access rights to various folders and files, modifying the httpd.conf file to allow overwrite all and access to indexes,... No progress. I still can't get the RoR site to work.

  • Arch is currently not ideal as a Ruby on Rails server

    Hi all.  This is my first post.  I hope I am posting in the right place.  I have just started using Arch, and I love it!  I have used many server distros in the past, have real experience in production environments, and I'd love to use Arch for any servers I need in the future.
    There's a problem, though.  Best as I can tell, the only version of Ruby available on Arch right now is version 1.9.1.  While that's the latest stable, for certain reasons it is not the recommended version on which to run the popular web framework, Ruby on Rails, which I make my living developing in.  You can see that for yourself here:
    http://rubyonrails.org/download - "We recommend Ruby 1.8.7 for use with Rails."
    I'm sure this isn't the first time there have been popular versions of software despite there being later releases.  People are often slow to adapt in production environments.  However, I couldn't even find a ruby18 package, or anything like that.
    I'm not requesting years-old stability or anything absurd like that.  In general, I like having the newest software.  But in practice, it's sometimes prudent to prefer the next-to-newest software.
    In addition, the ruby package installs "rubygems", a separate package management system for Ruby analogous to CPAN in Perl.  The problem is, it installs an old version of rubygems, 1.3.1, which is so old it doesn't work.  The latest stable version of this is 1.3.7, and version 1.3.2 is required for Rails.  I was able to upgrade it using the special rubygems updater ("gem update --system") but I worry this will conflict with pacman, and it shouldn't be necessary.
    In short: please upgrade rubygems, and please provide a 1.8 version of the ruby package.
    All of the packages I'm discussing were based on the present pacman versions as of this post.  Thanks for your help and for the great distro!
    Last edited by heatdeath (2010-05-31 04:27:58)

    tomk wrote:heatdeath - you're not getting the point. If there is something you want from Arch that is not available in the official packages, you become part of the community and do it yourself. It may end up being just for you, or others may also find it useful and help you out, but either way you get what you want, and Arch gets the "community support which it does not have". There have been numerous examples of this over the years.
    I understand your point, but using the AUR dramatically diminishes the ease of use from the whole setup.  I have to manually download the PKGBUILD and any patch files, build it, install it, and then manually keep track of updates, manually delete the installed files (there is no uninstall) and then repeat the process.  While it's great that the AUR is there for specialized interests, it seems that things from the AUR should be incorporated into the official packages if they have enough support.  My problem is mainly in the selection of "official packages", and the deference to the AUR anything that doesn't meet the strict and dare I say impractical requirements for inclusion therein.  There needs to be more respect for widely-used earlier branches, and there needs to be respect for upstream packaging problems such as the rubygems one.  And I am here, in the community, voicing my opinion on this issue, but I cannot change the official packages or the philosophy by sheer force of individual will.  It's going to require that people consider what I have to say, and consider what Arch should be.
    Ruby 1.8, as with many other major releases, continued in its development and had point releases even after Ruby 1.9 came out.  Despite being official, these releases are not available via pacman.  It remains the dominant form of Ruby in use today, and probably will be for another year or so.
    Consider the release of MySQL 5.0.  Would you expect everyone to switch from 4.1 immediately to 5.0 once they released their first stable?  Or shouldn't it be possible to stay on the prior major version branch and make the conscious decision to switch?  At some point, the keyword "mysql" should switch to the newer branch, and the old one should be maintained as mysql4.1 for legacy support for a while; but this should be a while in, after the tide has turned in its favor.  I'm certain something like this is already the policy for the Linux kernel, for instance.  I'm just asking it also be applied to Ruby.
    Instead, I'm relegated as a minority interest to the AUR ghetto.  I think Rails and its philosophy has a lot in common with Arch Linux, and I've heard other Rails people speaking of it favorably.  They are both focused on ease of use.  They could be compatriots, and Arch could benefit from the friendship.  Both communities are often interested in using brand new software, when appropriate.  Rails is ruthless with its deprecation.  But the community for Arch Linux needs to decide whether it can be useful as a young, innovative new server distro for practical use, or whether it's beleaguered by the philosophy that "true" "critical" server distros use "stable" archaic software and sacrifice maintainability, bug fixes, new features, and simple pleasure in the process, and therefore Arch has no place amongst their anachronistic pantheon, doomed to dwell underground forever with Gentoo and the other thoughtful playthings.
    I was surprised to find myself being criticized for suggesting I would use Arch as a production server.  I think it has the chops, it just needs to commit to the purpose.  Don't be defeatist, there are a wide variety of possible production scenarios, many which use fresh new software; let server admins make the decision whether or not Arch is capable of the job.
    As for variations on upstream releases (such as fixing this rubygems version problem), I think the best solution is that pacman should have something that allows automatic building, installing, upgrading and uninstalling of community packages -- maybe even binary variants -- so that users can have the ease of use, but also realize they are using something that differs from the official upstream releases.  A convention to install in /opt or /usr/local/ would further the mental divide and diminish the risk.
    Please understand my criticism comes with respect, and a desire to use Arch.  I ache every time I check the replies, knowing I've likely offended people.  I apologize for the length of this post.  The truth is, if I can't use Arch as a production server, I don't see any point to it.  I am an outsider looking in, sharing my thoughts, and I don't expect they will be received warmly, but it would be great if they were.  However, so far the impression I get from this thread is that Arch has no interest in being a production server, sees it as a sideline, implausible interest in conflict with its theory.

  • Sun Java System Web Server 7.0 available

    I am delighted to announce that Sun Java System Web Server 7.0 is now available for download, purchase, deployment, and more.
    This release builds on the highly scalable and stable heritage of Web Server. It features an entirely re-designed Administration interface designed around clusters, easy access to frequently performed tasks, simplification of frequently performed tasks., and a fully scriptable command line interface featuring functional parity with the browser-based interface.
    In addition to the administration changes this release features:
    o Full 64-bit support for Solaris SPARC and Solaris AMD64 platforms
    o Regular expression pattern matching for URL re-writing and mass hosting
    o If/Then/Else constructs within request processing
    o Advanced sed based input and output filters
    o Dynamic loading of Certificate Revocation Lists (CRLs) without requiring daemon restart
    o Elliptic Curve Cryptography (ECC)
    o Built in request mapping for protection against abnormal load patterns and Denial of Service protection
    o WebDAV ACL support
    o Out-of-box Java support for Servlets 2.4, JSP 2.0, JSF 1.1, JSTL 1.1, JWSDP 2.0 based web services
    o Java session failover and recovery within a cluster of peers
    o Integrated HTTP reverse proxy User-Agent
    o Bundled FastCGI client for use with third party scripting environments such as Perl, PHP, Ruby on Rails, etc
    o Enhancement of perfdump, stats-xml, and SNMP as well as more ability to monitor the Java container and the ACL system
    o Much more
    The software can be downloaded from:
    http://www.sun.com/download/products.xml?id=45ad781d
    The documentation is available at:
    http://docs.sun.com/app/docs/coll/1308.3

    If 7.0 was released, how come http://www.sun.com/webserver still only talks about 6.1?

  • Xserve as Web server Question

    Hi.
    I'm wondering in buying the new Xserve, but I'm not sure which model, that is, how much RAM etc.
    This machine will have around 30.000 concurrent users.
    What should I be looking at? What I'm more looking at is do you think that any web application can be run on one Xserve?
    The app will be written in RoR (Ruby on Rails). And will be hosting video files.
    I know this is quite open question, but what do you recommend?
    Do you think that starting with the basic model with 4GB of ram could handle these users, but maybe not on full speed?

    >many users should the Apache on Xserve be able to handle, how many requests do you think?
    If only it were that simple. It isn't.
    There are many factors you need to take into consideration.
    Are the web pages static pages (e.g. plain HTML?) or dynamic (e.g. PHP, JSP, CGI, etc.)? That will make a big difference right there. You can sustain way more static page hits than you can dynamic ones that are built on the fly.
    You might find that a single server can sustain 100 megabits per second of bandwidth for large, static files, but drops to one or two megabits per second for small, dynamically-created PHP files.
    Then you have to take into account media content. Are your pages simple 10K HTML, or are they 100K of HTML, plus 50K of CSS and 200K of images?
    If you're hosting videos you need to determine the size of the videos (both in terms of duration and file size). This will dictate how much bandwidth you need to serve that content to the end user.
    In most cases bandwidth is going to be your bottleneck, not CPU or RAM, so you need to be able to answer those questions before you can really work out how much traffic a single server can handle.
    Bear in mind that growing your site from a single server to multiple servers isn't trivial - you'll need some kind of load balancing device to spread the connections across multiple servers and they can run into a lot of $$$s (or whatever the Icelandic unit of currency is ).

  • Ruby on Rails, Apache2, OS X 10.5

    I cannot get Ruby on Rails to work on Apache while running OS X 10.5. I've searched the web for configurations that say they will allow ruby to work, with out any luck. Any help would be greatly appreciated.

    Thanks for both replies.
    I will look into upgrading OS X.
    I think the underlying problem is at the BT server and am chasing this with BT.

  • Sending BitmapData to Ruby On Rails

    Hi
    I have a project that has a SAVE button that on click needs to save a PNG file of an area of the stage (or a MC if that is easier) to a server and put and entry for said file into a database. The database end of things is going to be handled by the web developer so not a concern for me.
    I found an example on the web that uses PHP to write the PNG file to a remote drive, and the ActionScript just needed to call a PHP page with POST variables to execute the save. I cannot however find any examples of how to do this with Ruby On Rails. Would the methodology be the same; call a URL to a Ruby script and send the variables via POST? In which case the ActionScript side of things would essentially be the same as for the PHP method? Or does using RoR require some other means of executing this kind of function?
    Many thanks for any advice. I'm out of my league on this one
    cheers
    adam

    I would say that YES the method should be the same -- at least inasmuch as you are POSTING enough data to make the image to your server.  Ruby should be able to find the bitmap data in POST.

  • Ruby on Rails Concurrent program registration in EBS 11i

    hi everyone
    I'm trying to see if it is possible to register a Ruby on Rails concurrent program in Oracle E-business Suite 11i applications. We have Ruby on the Rail program we are using to create a GL Daily Rates file into one of our Custom top directory. Our intention is to create a request set that includes this Ruby on Rails program and SQL*Loader program that loads the data into staging table before data is uploaded to the GL_Daily_Rates_Interface.
    I have seen that the execution method for Ruby on Rails does not exist in 11i and have tried to use perl but without success.
    Any help will be much appreciated.
    Thanks in advance.
    Leo

    This is Oracle Application Server forum. Oracle Apps (EBS) forums are here:
    http://forums.oracle.com/forums/category.jspa?categoryID=3

  • New wiki page on Ruby on Rails

    Hi,
    Just wanted to let you know that I created a Ruby on Rails page on the
    wiki. It's not really long but the basis is there to quickly set up a
    rails application.
    http://wiki.archlinux.org/index.php/RubyOnRails
    As always, please feel free to comment and edit the wiki.
    ekse

    Hi,
    It is a really nice idea. Maybe the page ought to serve as a hub for other articles.
    A couple of comments on sharing medias:
    * I have not been very happy with upnp. I used it for a while when I had a Synology NAS, but the fact that it seemed to rely on some kind of index made it less attractive. Samba has treated me nice; it always works (as oppose to "real" Windows shares which is a drag to setup).  I use samba for sharing videos and pictures to XMBC4Xbox.
    * For streaming live audio output, i.e. what is playing *right now* on my laptop to my stero, I have found a combo of icecast, pulseaudio and gstream to work nice. For serving static audio files I use squeezeboxserver. Had I used a Sonos sound system I would have used Samba again.
    * For PS3, which is a somewhat limited device, there is a nice java application that takes care of everything.
    * What I really miss is some way to preserve metatags when downloading video podcasts. To me it does not matter much at the moment as xbmc does not support local rss feeds. . . 
    I could add some comments on some of the above if you think it fits into your article.
    --Rasmus

  • How do I live preview a Ruby on Rails/Ember application?

    I have a Ruby on Rails application and I am under the impression that Edge Code will work with locally hosted web servers to use live preview. I have set up the project settings to use the locally hosted address: http://localhost:3000/ ... However when I use Live Preview I receive the following error.
    "Open an HTML file or make sure there is an index.html file in your project in order to launch live preview."
    I have done so and I meet the criteria but it doesn't seem to work. Does Adobe Edge Code support this feature?

    What's the file extension of the page you want to view in Live Preview? You may need to add it to the internal (not yet easily configurable) list of file extensions.
    Randy

  • Ruby on Rails with Oracle Database

    I am starting a new project that needs to produce dynamic charts and data reports on the web. I am a Java programmer and new to databases. I have heard good things about Ruby on Rails but cannot get it to work with Mac OS X and our Oracle database. I've read many, many forum posts about the lack of an Intel Client from Oracle, but would really like to know how if its possible to
    A) Get Ruby on Rails to read from an Oracle database AND
    B) Find out how to configure Locomotive (the Ruby GUI I'm using) to connect to the Oracle database.
    Thanks for any help!

    Hello Deepak,
    Thanks a lot for this great content.
    Feel feel to contact OTN editors if you want to publish new articles on Oracle Tech site.
    Tugdual Grall

  • Security Filtering on the v7 Web Server using sed_request

    I have been trying to improve protection of an application from cross-site scripting and SQL injection attackes. The ideal solution is the modsecurity rulebase but this is for Apache 2 only so I haev been looking for other solutions. I'm not going to guarantee all of the following since I haven't finished testing it but it looks hopeful so far as an avenue for investigation.
    A direct port of the modsecurity engine to the Sun One / iPlanet web server has been started, with an unsupported implementation with near complete functionality in the version 7 codebase, but not all keywords required for the rules are available in this release and it remains unsupported for production use. A simpler but fully supported solution is the sed filter; which is also provided with the version 7 product, but as a separate NSAPI plugin implementing the sed_request and sed_response server application functions (SAFs) which could theoretically be lifted out and run against earlier versions of the web server.
    So, how does the sed filter help? Well, although the functionality is less than that of the full modsecurity engine and performance is more limited, as implementing the Unix stream editor (sed) support for simple basic regular expressions it is possible to port some of the key modsecurity rules. The approach is a simple one:
    * Choose the key rules for modsecurity that are to implemented, e.g. SQL injection, cross-site scripting, etc
    * Open the rule set for each and copy out the extended regular expression
    * Translate the extended regular expression to a standard basic regular expression, including replacing the found string with nothing
    * Import the new sed rule into the obj.conf for the web server instance
    This is best explained with a simple example.
    First download the modsecurity source code from http://www.modsecurity.org and unpackage the tarball. In the resulting directory tree go to the rules/base_rules subdirectory and open the modsecurity_crs_41_sql_injection_attacks.conf file. In this file are a number of security rules defined, but a simple examination of each will show the format, the phase and a description after the SecRule keyword and some type information. Note that many of the security rules can be applied unchanged by the unsupported Sun One / iPlanet modsecurity engine that will be a full implementation in a future release. After the type information the extended regular expression used to define when the rule is to be applied can be found. For example, consider one SQL injection rule:
    SecRule REQUEST_FILENAME|ARGS_NAMES|ARGS|XML:/* "\buser_tab_columns\b" \
    "phase:2,rev:'2.0.5',capture,t:none,ctl:auditLogParts=+E,pass,no
    log,auditlog,msg:'Blind SQL Injection Attack',id:'959536',tag:'WEB_ATTACK/SQL_INJECTION',tag:'WASCTC/WASC-19',tag:'OWASP_TOP_10/A1',tag:'OWASP_AppSensor/CIE1',tag:'PCI/6.5.2',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar
    :tx.sql_injection_score=+%{tx.critical_anomaly_score},setvar:tx.anomaly_score=+%
    {tx.critical_anomaly_score},setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{tx.0}"
    In this the extended regular expression saying when this rule applies is "\buser_tab_columns\b"
    which tells the rules engine to look for the phrase “user_tab_columns” in the input stream.
    We want to replace this with nothing, so a sample sed rule for this would be
    sed="s/\buser_tab_columns\b//g"
    This says to replace all occurences found in the stream with nothing.
    Taking this to its extreme, which will not result in the fastest processing, but will ptotect from cross-site scripting and SQL injection POST attacks against a back end Oracle environment, we end up with a complex segment of an obj.conf for Oracle iPlanet Web Server 7.09. Details are in the next post.

    This is something like:
    <Object name="default">
    Input fn="insert-filter"
    method="(GET|POST|HEAD)"
    filter="sed-request"
    sed="s/</\\</g"
    sed="s/%3c/\\</g"
    sed="s/%3C/\\</g"
    sed="s/>/\\>/g"
    sed="s/%3e/\\>/g"
    sed="s/%3E/\\>/g"
    sed="s/\x2Eexecscript\b//g"
    sed="s/<body\b.*?\bonload\b//g"
    sed="s/\blivescript://g"
    sed="s/\bsettimeout\b[^a-zA-Z_0-9]*?//g"
    sed="s/\x3C ?iframe//g"
    sed="s/\bsrc\b[^a-zA-Z_0-9]*?\bjavascript://g"
    sed="s/\bsrc\b[^a-zA-Z_0-9]*?\bvbscript://g"
    sed="s/\btype\b[^a-zA-Z_0-9]*?\btext\b[^a-zA-Z_0-9]*?\becmascript\b//g"
    sed="s/\x2Ecookie\b//g"
    sed="s/\x3C\x21\x5Bcdata\x5B//g"
    sed="s/\x2Eaddimport\b//g"
    sed="s/\bhref\b[^a-zA-Z_0-9]*?\bjavascript://g"
    sed="s/\btype\b[^a-zA-Z_0-9]*?\btext\b[^a-zA-Z_0-9]*?\bjscript\b//g"
    sed="s/\balert\b[^a-zA-Z_0-9]*?\x28//g"
    sed="s/\btype\b[^a-zA-Z_0-9]*?\bapplication\b[^a-zA-Z_0-9]*?\bx-vbscript\b//g"
    sed="s/\x3C ?meta\b//g"
    sed="s/\bsrc\b[^a-zA-Z_0-9]*?\bhttp://g"
    sed="s/\btype\b[^a-zA-Z_0-9]*?\btext\b[^a-zA-Z_0-9]*?\bvbscript\b//g"
    sed="s/\bhref\b[^a-zA-Z_0-9]*?\bvbscript://g"
    sed="s/\burl\b[^a-zA-Z_0-9]*?\bjavascript://g"
    sed="s/\x2Einnerhtml\b//g"
    sed="s/\x40import\b//g"
    sed="s/\x3C ?script\b//g"
    sed="s/\btype\b[^a-zA-Z_0-9]*?\btext\b[^a-zA-Z_0-9]*?\bjavascript\b//g"
    sed="s/\x2Efromcharcode\b//g"
    sed="s/\burl\b[^a-zA-Z_0-9]*?\bvbscript://g"
    sed="s/\bsettimeout\b[^a-zA-Z_0-9]*?\x28//g"
    sed="s/<(a|abbr|acronym|address|applet|area|audioscope|b|base|basefront|bdo|bgsound|big|blackface|blink|blockquote|body|bq|br|button|caption|center|cite|code|col|colgroup|comment|dd|del|dfn|dir|div|dl|dt|em|embed|fieldset|fn|font|form|frame|frameset|h1|head|hr|html|i|iframe|ilayer|img|input|ins|isindex|kdb|keygen|label|layer|legend|li|limittext|link|listing|map|marquee|menu|meta|multicol|nobr|noembed|noframes|noscript|nosmartquotes|object|ol|optgroup|option|p|param|plaintext|pre|q|rt|ruby|s|samp|script|select|server|shadow|sidebar|small|spacer|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var|wbr|xml|xmp)[^a-zA-Z_0-9]//g"
    sed="s/(asfunction|javascript|vbscript|data|mocha|livescript)://g"
    sed="s/(fromcharcode|alert|eval)\x73*\x28//g"
    sed="s/<!\x5Bcdata\x5B|\x5D>//g"
    sed="s/['\"<]xss['\">]//g"
    sed="s/(88,83,83)//g"
    sed="s/'';!--\"<xss>=&{()}//g"
    sed="s/&{//g"
    sed="s/<!(doctype|entity)//g"
    sed="s/(?i:<style.*?>.*?((@[i\\\\])|(([:=]|(&[#\x28\x29=]x?0*((58)|(3A)|(61)|(3D));?)).*?([(\\\\]|(&[#()=]x?0*((40)|(28)|(92)|(5C));?)))))//g"
    sed="s/(?i:[ /+\t\"\'`]style[ /+\t]*?=.*?([:=]|(&[#()=]x?0*((58)|(3A)|(61)|(3D));?)).*?([(\\\\]|(&[#()=]x?0*((40)|(28)|(92)|(5C));?)))//g"
    sed="s/(?i:<object[ /+\t].*?((type)|(codetype)|(classid)|(code)|(data))[ /+\t]*=)//g"
    sed="s/(?i:[ /+\t\"\'`]datasrc[ +\t]*?=.)//g"
    sed="s/(?i:<base[ /+\t].*?href[ /+\t]*=)//g"
    sed="s/(?i:<link[ /+\t].*?href[ /+\t]*=)//g"
    sed="s/(?i:<meta[ /+\t].*?http-equiv[ /+\t]*=)//g"
    sed="s/(?i:<?import[ /+\t].*?implementation[ /+\t]*=)//g"
    sed="s/(?i:<embed[ /+\t].*?SRC.*?=)//g"
    sed="s/(?i:[ /+\t\"\'`]on\x63\x63\x63+?[ +\t]*?=.)//g"
    sed="s/(?i:<?frame.*?[ /+\t]*?src[ /+\t]*=)//g"
    sed="s/(?i:<isindex[ /+\t>])//g"
    sed="s/(?i:<form.*?>)//g"
    sed="s/(?i:<script.*?[ /+\t]*?src[ /+\t]*=)//g"
    sed="s/(?i:<script.*?>)//g"
    sed="s/(?i:[\"\'][ ]*(([^a-z0-9~_:\'\" ])|(in)).*?(((l|(\\\\u006C))(o|(\\\\u006F))(c|(\\\\u0063))(a|(\\\\u0061))(t|(\\\\u0074))(i|(\\\\u0069))(o|(\\\\u006F))(n|(\\\\u006E)))|((n|(\\\\u006E))(a|(\\\\u0061))(m|(\\\\u006D))(e|(\\\\u0065)))).*?=)//g"
    sed="s/(?i:[\"\'][ ]*(([^a-z0-9~_:\'\" ])|(in)).+?(([.].+?)|([\x5B].*?[\x5D].*?))=)//g"
    sed="s/\bsys\x2Euser_catalog\b//g"
    sed="s/\bsys\x2Euser_tables\b//g"
    sed="s/\bcharindex\b//g"
    sed="s/\bsys\x2Eall_tables\b//g"
    sed="s/\bsys\x2Euser_constraints\b//g"
    sed="s/\bselect\b.{0,40}buser\b//g"
    sed="s/\bwaitfor\b[^a-zA-Z_0-9]*?\bdelay\b//g"
    sed="s/\bselect\b.{0,40}\bsubstring\b//g"
    sed="s/\bsys\x2Euser_triggers\b//g"
    sed="s/\blocate[^a-zA-Z_0-9]+\x28//g"
    sed="s/\bsys\x2Euser_tab_columns\b//g"
    sed="s/\battnotnull\b//g"
    sed="s/\bsys\x28tab\b//g"
    sed="s/\bselect\b.{0,40}\bascii\b//g"
    sed="s/\bsys\x2Euser_views\b//g"
    sed="s/\binstr[^a-zA-Z_0-9]+\x28//g"
    sed="s/\bsys\x2Euser_objects\b//g"
    sed="s/\buser_tables\b//g"
    sed="s/\buser_tab_columns\b//g"
    sed="s/\ball_objects\b//g"
    sed="s/\bsubstr\b//g"
    sed="s/\bsysdba\b//g"
    sed="s/\btextpos[^a-zA-Z_0-9]+\x28//g"
    sed="s/\buser_password\b//g"
    sed="s/\buser_users\b//g"
    sed="s/\buser_constraints\b//g"
    sed="s/\bcolumn_name\b//g"
    sed="s/\bsubstring\b//g"
    sed="s/\bobject_type\b//g"
    sed="s/\bobject_id\b//g"
    sed="s/\buser_ind_columns\b//g"
    sed="s/\bcolumn_id\b//g"
    sed="s/\btable_name\b//g"
    sed="s/\bobject_name\b//g"
    sed="s/\brownum\b//g"
    sed="s/\buser_group\b//g"
    sed="s/\butl_http\b//g"
    sed="s/\bselect\b.*?\bto_number\b//g"
    sed="s/\bgroup\b.*\bbyb.{1,100}?\bhaving\b//g"
    sed="s/\bselect\b.*?\bdata_type\b//g"
    sed="s/\bisnull\b[^a-zA-Z_0-9]*?\x28//g"
    sed="s/\bunion\b.{1,100}?\bselect\b//g"
    sed="s/\binsert\b[^a-zA-Z_0-9]*?\binto\b//g"
    sed="s/\bselect\b.{1,100}?\bcount\b.{1,100}?\bfrom\b//g"
    sed="s/\x3B[^a-zA-Z_0-9]*?\bdrop\b//g"
    sed="s/\bloadb[^a-zA-Z_0-9]*?\bdata\b.*\binfile\b//g"
    sed="s/\bselect\b.*?\bto_char\b//g"
    sed="s/\bdbms_java\b//g"
    sed="s/\bnvarchar\b//g"
    sed="s/\butl_file\b//g"
    sed="s/\binner\b[^a-zA-Z_0-9]*?\bjoin\b//g"
    sed="s/\bselect\b.{1,100}?\bfrom\b.{1,100}?\bwhere\b//g"
    sed="s/\bintob[^a-zA-Z_0-9]*?\bdumpfile\b//g"
    sed="s/\bdelete\b[^a-zA-Z_0-9]*?\bfrom\b//g"
    sed="s/\x3B[^a-zA-Z_0-9]*?\bshutdown\b//g"
    sed="s/\bautonomous_transaction\b//g"
    sed="s/\bdba_users\b//g"
    sed="s/\bselect\b.{1,100}?\btop\b.{1,100}?\bfrom\b//g"
    sed="s/\b(?:coalesce\b|root\x40)//g"
    sed="s/\b(?:(?:rel(?:(?:nam|typ)e|kind)|to_(?:numbe|cha)r|d(?:elete|rop)|group\b[^a-zA-Z_0-9]*\bby|insert|where)\b|s(?:(?:ubstr(?:ing)?|leep)[^a-zA-Z_0-9]+\x28|(?:hutdown|elect)\b)|(?:b(?:enchmark|in)|find_in_set|position|mid)[^a-zA-Z_0-9]+\x28|c(?:o(?:n(?:cat[^a-zA-Z_0-9]+\x28|vert\b)|unt\b)|ha?r\b)|u(?:n(?:hex[^a-zA-Z_0-9]+\x28|ion\b)|pdate\b)|l(?:o(?:cate|wer)[^a-zA-Z_0-9]+\x28|ength\b)|a(?:ttn(?:ame|um)\b|scii[^a-zA-Z_0-9]+\x28)|h(?:aving\b|ex[^a-zA-Z_0-9]+\x28))//g"
    sed="s/(?:[\\\x28\x29\x25#]|--)//g"
    sed="s/\b(?:benchmark|encode)\b//g"

  • [SOLVED]Ruby on Rails won't run with apache/passenger

    Hi I want to run Redmine, a Ruby on Rails application, on a personal server using MariaDB as the database and Apache with the Phusion Passenger module as the application platform. So far I am able to run Redmine with the default WeBrick server, but if I try to run it via Apache (http://192.168.1.5/redmine) I just get the directory index of  /usr/share/webapps/redmine. I've been running various php webapps using this apache installation without issues but my unfamiliarity with Ruby on Rails makes me unsure how to fix this. If I create a Ruby on Rails test  application as described at https://wiki.archlinux.org/index.php/Ru … figuration I get the same issue.
    Using the arch wiki articles on Ruby on Rails and Redmine, This is basically how I installed things:
    $ yaourt -S ruby1.9 rubygems1.9 nodejs redmine
    # gem-1.9 install rails
    # gem-1.9 install passenger
    /opt/ruby-1-9/ and subfolders ended up having no read/exexute permissions for 'other', probably because of my umask settings, so I changed the permissions, also because apache runs as user/group 'apache'.
    Ran the script that installs the passenger apache module:
    # /opt/ruby1.9/bin/passenger-install-apache2-module
    added to httpd.conf:
    LoadModule passenger_module /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5/libout/apache2/mod_passenger.so
    PassengerRoot /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5
    PassengerDefaultRuby /opt/ruby1.9/bin/ruby
    ServerName arch-server
    DocumentRoot /usr/share/webapps
    <Directory "/usr/share/webapps">
    # This relaxes Apache security settings.
    AllowOverride all
    Order allow,deny
    Allow from all
    # MultiViews must be turned off.
    Options -MultiViews
    </Directory>
    I checked if the passenger module is loaded, and judging from /var/log/httpd/error_log that seems the case:
    [ 2013-07-03 22:52:22.8947 28902/b7407700 agents/Watchdog/Main.cpp:440 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nobody', 'default_python' => 'python', 'default_ruby' => '/opt/ruby1.9/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_instances_per_app' => '0', 'max_pool_size' => '6', 'passenger_root' => '/opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_pid' => '28901', 'web_server_type' => 'apache', 'web_server_worker_gid' => '1001', 'web_server_worker_uid' => '1006' }
    [ 2013-07-03 22:52:22.9120 28905/b73bd700 agents/HelperAgent/Main.cpp:555 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.28901/generation-0/request
    [ 2013-07-03 22:52:22.9262 28902/b7407700 agents/Watchdog/Main.cpp:564 ]: All Phusion Passenger agents started!
    [ 2013-07-03 22:52:22.9266 28910/b71dd700 agents/LoggingAgent/Main.cpp:271 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.28901/generation-0/logging
    [Wed Jul 03 22:52:22 2013] [notice] Apache/2.2.24 (Unix) PHP/5.4.16 mod_ssl/2.2.24 OpenSSL/1.0.1e DAV/2 Phusion_Passenger/4.0.5 configured -- resuming normal operations
    'apachectl configtest' gives 'Syntax OK'.
    I followed the wiki on redmine (https://wiki.archlinux.org/index.php/Redmine), chose to use "bundle install" to install the required gems with only a 'production' environment. What worried me is that those gems are now in /root/.gems while the webserver runs as user 'apache'.
    I can run Redmine at 192.168.1.5:3000 without errors using:
    # ruby script/rails server webrick -e production
    But if I kill it and try via apache http://192.168.1.5/redmine I get a directory content listing.
    Last edited by rwd (2013-07-04 21:00:10)

    Thanks markocz, my use of sub-url was indeed the problem. With help from the linked article I did the following:
    # mkdir /usr/share/webapps/phusion-passenger/
    # ln -s /usr/share/webapps/redmine/public /usr/share/webapps/phusion-passenger/redmine
    # chown -R root:http /usr/share/webapps/
    # chmod -R g+rx /usr/share/webapps/
    httpd.conf now looks like this:
    LoadModule passenger_module /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5/libout/apache2/mod_passenger.so
    PassengerRoot /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5
    PassengerDefaultRuby /opt/ruby1.9/bin/ruby
    ServerName arch-server
    DocumentRoot /usr/share/webapps/phusion-passenger
    <Directory "/usr/share/webapps/phusion-passenger">
    # This relaxes Apache security settings.
    AllowOverride all
    Order allow,deny
    Allow from all
    # MultiViews must be turned off.
    Options +FollowSymLinks
    </Directory>
    RailsBaseURI /redmine
    <Directory "/usr/share/webapps/phusion-passenger/redmine">
    Options -MultiViews
    </Directory>
    Redmine now works via passenger.
    Last edited by rwd (2013-07-04 20:59:40)

Maybe you are looking for

  • Some organs don't play in new Logic Express files after JamPacks installed

    After loading only the instruments from the Symphony Orchestra and World Music GarageBand Jam Packs, I lost the ability to hear most of the organs available in Logic Express and all of the organs available in GarageBand after inserting them into Logi

  • Error Caller 09 contains error message - Data Marts loading(cube to ODS)

    Dear all,           Please ! Help me in this problem, This is very urgent.           I have one process chain that loads data from BIW to BIW only through Data Marts. In that process chain, one process loads data from one cube(Created by us) & loads

  • ISight no more working !

    I used iChat AV 3.1.4 (v432) and AIM 4.7 for video chat many times until last Satuday. On Sunday, when I opened iChat, oh surprise, the camera near my photo was gone and replaced by a telephone sign. What happened ? When I look at iChat preferences I

  • Desperate need help

    Just purchase Retina Display MacBook Pro... 16 gig ram, 1TB ssd drive. Wired Apple keyboard w/ num pad. Apple wired mouse. My setup is as follows: USB powered hub. (4 USB's) Items attached to hub = Sound module, Keyboard, Wacom tablet, Apple Keyboard

  • Activation of HEMI function in UPK 3.5.1

    Hi All, I have an urgent requirement of activating HEMI support function in UPK 3.5.1. As per my understannding, HEMI is a support function which automatically links Oracle to UPK. So if a user needs help whilst navigating the system they can click o