如何在一台服务器(Apache)中运行PHP和Perl程序

问题描述:

I want to put my PHP program on Apache server(there are existing Perl program running there). And I want to invoke those programs independently.

For example)

"http://my-address/existing-program" goes to Perl program,

on the other hand, "http://my-address/new-program" goes to PHP program.

I might need to modify "httpd.conf" but I am not sure how. Any advise would be helpful.

Kind regards.

我想将我的PHP程序放在Apache服务器上(现有的Perl程序在那里运行)。 我想要 独立调用这些程序。 p>

例如) p>

http:// my-address / existing-program “转到Perl程序, p>

另一方面,” http:// my-address / new-program ”转到PHP程序。 p>

我可能需要修改“httpd.conf”,但我不确定如何。 任何建议都会有所帮助。 p>

亲切的问候。 p> div>

You could use mod_rewrite calls in your httpd.conf file to intercept specific URLs and make sure they're routed and handled accordingly.

Hidden features of mod_rewrite