2

サーバーが Apache しかサポートしていない場合、PHP 以外に使用できるサーバー側のスクリプト言語は何ですか?

4

4 に答える 4

4

If I understand your question correctly, you have a Apache + PHP server that you can upload code to and you can install Lisp etc on, but you can't reconfigure Apache?

The best answer would really be to talk to whoever controls your server and get them to enable the appropriate mods or mod_proxy-ing to whichever language or application you want.

But if this isn't an option, you could implement a reverse proxy in PHP that passes all calls through to your Lisp application.

于 2012-09-23T00:53:03.170 に答える
3

Apache is usually compiled with support for modules. PHP is one such module that is generally configured within your apache.conf file. If you have access to edit your apache.conf, you are able to include other modules that exist on the system already, or modules that you add to the system.

Examples of another module you can add would be mod_wsgi, allowing you to serve from python files.

What you want to search for, is apache modules.

于 2012-09-23T00:54:42.180 に答える
2

Apache supports a lot of languages besides PHP, you can check all of them here and how to get it: http://projects.apache.org/indexes/language.html

Most of these language can be supported at the same time, you can install them by using modules or scripts in cgi-bin-

于 2012-09-23T00:53:57.553 に答える
1

The Apache feature you were describing before question edit runs PHP files via a module. Another commonly used apache module is CGI, which allows you to use any language, but it's discouraged because of performance and security.

You're better off using FastCGI (which isn't normal CGI) or similar. If you can't make any modifications to the apache config file, you're boned. No non-php auto-evaluating scripts in public_html.

于 2012-09-23T00:51:46.213 に答える