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