Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3939958
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:21:39+00:00 2026-05-20T00:21:39+00:00

Well, I’m wondering if theres a way to run both rails and PHP on

  • 0

Well, I’m wondering if theres a way to run both rails and PHP on Lighty, on Ubuntu. I want to run both my PHP projects and Rails projects on the one server/domain.

I have little experience with Linux really, so forgive my naivety.

If theres a way of doing this please let me know 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:21:39+00:00Added an answer on May 20, 2026 at 12:21 am

    It’s really quite simple to run them both. I do it all the time (ROR to run Redmine, and PHP for the rest).

    You have 2 real options for ROR. Either serve it from FastCGI (what I do), or run it with a standalone server (like Mongrel, etc) and proxy to it. Both have advantages. FastCGI has the advantage that it’s self-contained (no secondary server to run). The standalone has the advantage that it’s easier to configure.

    If you have specific questions, I can guide, but there are guides on the internet on how to do this.

    My lighttpd.conf:

    $HTTP["host"] =~ "my.ror.site" {
        server.error-handler-404="/dispatch.fcgi"
        fastcgi.server = (".fcgi" => ("ror_1" => (
                "min-procs"=>8,
                "max-procs" => 8,
                "socket" => "/tmp/myrorlock.fastcgi",
                "bin-path"=> "/path/to/ror/site/public/dispatch.fcgi",
                "kill-signal" => 9,
                "bin-environment" => ( "RAILS_ENV" => "production" )
        )))
    }
    
    fastcgi.server = ( ".php" =>
        (
            (
                "socket" => "/tmp/php-fastcgi.socket",
                "bin-path" => "/usr/bin/php-cgi -c /etc/php.ini",
                "min-procs" => 1,
                "disable-time" => 1,
                "max-procs" => 1,
                "idle-timeout" => 20,
                "broken-scriptfilename" => "enable",
                "bin-copy-environment"=> (
                    "PATH", "SHELL", "USER"
                ),
                "bin-environment" => (
                    "PHP_FCGI_CHILDREN" => "40",
                    "PHP_FCGI_MAX_REQUEST" => "50000"
                )
            )
        )
    )
    

    And that’s it. Note the kill-signal option. that’s important, otherwise you’ll wind up with zombie processes everywhere every time you restart the server…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, I want to have a redirect script on my server. I want it
Well, I just started to work on server side scripting , I chose PHP,
Well i currently want to do a search engine with SQL and PHP. I
Well, the title pretty much states it. I want to be able to draw
Well, i want house image to rotate from -5° to 5° and i wrote
Well here is what I'm trying to do. I want to convert a array
Well I want to highlight the view so the user can see which item
Well, let's say I have a php-script, that has some select box, and I
Well I want to generate pseudo-random bits for a mathematical problem. The Bit size
Well the title of this question might not actually reflect what I want, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.