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 6853897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:34:00+00:00 2026-05-27T01:34:00+00:00

How to run together: PSGI and PHP? I have Perl/PSGI application (running under pure

  • 0

How to run together: PSGI and PHP?

I have Perl/PSGI application (running under pure perl Starman server). Now, for some reason need run one PHP application too ;(, so (probably) need Apache2. Questions:

  • really need Apache for PHP? or exists some other solution?
  • How to setup reverse proxy, so when someone will go to http: //mysite/myapp/something, will be proxied to Starman where my PSGI “myapp” living? and
  • http: //mysite/phpapp/anything – will go to php app…
  • I can setup the Starman server for listening on another port, e.g. 8080, but want access both applications at port:80 – so need reverse proxy.

Plus:

the server is behind my home NAT router. Internal server has address: 192.168.1.10, from the outside, ofc, the router have correct internet address. I have redirected all traffic

routerIP:80 -> 192.168.1.10:80
  • What is best way achieve access to both applications: PSGI + PHP from the both side (internet + “intranet”) at the port:80?
  • Need setup some virtual hosts? Or exists some really simple solution?
  • some links to helpful guidelines shoudl help a lot too..

Ps: I don’t need optimize performance, the server is only for home/demo/testing purpose.

EDIT:
Now, in another similar situation I checked CPAN again and based on @rawhide’s answer I found the Plack::App::PHPCGI module. Works great – it is really cool testing php apps under plackup… 😉

  • 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-27T01:34:01+00:00Added an answer on May 27, 2026 at 1:34 am

    You can execute it as CGI (fork+exec) either using Plack::App::CGIBin or using WrapCGI directly

    my $rawapp = Plack::App::WrapCGI->new(script => "rawhide.php" , execute => 1 )->to_app;
    builder {
        mount "/rawhide" => $rawapp ;
    };
    

    If rawhide.php has no shebang, you’d use /usr/bin/php /path/to/rawhide.php

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

Sidebar

Related Questions

I have a web server that is running PHP 5.3.6 non thread safe (VC9),
I have an Xtext/Xpand (oAW 4.3, Eclipse 3.4) generator plug-in, which I run together
I run a game and the running is done by hand, I have a
I have a group of PowerShell scripts that sometimes get run together, sometimes one
So, I have a group of ASINetworkQueues that currently run together resulting in a
I have many cucumber feature files, each consists of many scenarios. When run together,
To run them together there are few options available but I have chosen using
I have 3 scripts that do some stuff. I want to run them continously
I'm trying to put together a small thumbnail gallery and have run into a
I have placed together some code which converts strings into data, and then places

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.