Page 1 of 1

Xampp Server Status

PostPosted: 29. May 2009 07:25
by razzle0146
Hi all,

First Question:
I have my server up and running, but when I go to server status, it says CGI = Deactivated... Does anyone know why it would say that and if so, how do I activate it. Also, what is it for?

Second Question:
Can anyone tell me how I can host .asp files on xampp running on Windows Xp?

Thanks in advance for any help... :D

Xampp Status Error...

PostPosted: 29. May 2009 13:16
by razzle0146
Can someone please tell me why this is deactivated, how to activate it and what it is for?

Image

Thanks in advance.. :D

Re: Xampp Server Status

PostPosted: 30. May 2009 07:14
by Sharley
razzle0146 wrote:First Question:
I have my server up and running, but when I go to server status, it says CGI = Deactivated... Does anyone know why it would say that and if so, how do I activate it. Also, what is it for?

This section in your xampp\apache\conf\httpd.conf file should look like the below code in a default XAMPP installation, that is, if you ran the setup_xampp.bat file as per the installation instructions to set the correct paths:
Code: Select all
    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"

</IfModule>

#
# "C:/xampp/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/xampp/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
If it is different then use the above code to correct it, then save the file and restart (stop then start) Apache and look at the Status messages once again.

If you comment this line so it looks like this:
# ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
Then it will make the CGI Status appear Deactivated.

If you uncomment the line so it looks like this, which is the default:
ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
Then the CGI Status will appear Activated.
(This little trick will show how to activate and deactivate the Status message on demand, after saving the httpd.conf file and restarting Apache each time you change the line).

CGI stands for Common Gate Interface and a Google will surely find a better explanation of what it is and what it is used for than I can produce - Google is your friend.

If you go C:\xampp\cgi-bin you will see some CGI perl script examples and to see them in action in your browser type the following for just one of these examples:
http://localhost/cgi-bin/perltest.cgi


razzle0146 wrote:Second Question:
Can anyone tell me how I can host .asp files on xampp running on Windows Xp?
ASP is Active Server Pages and is a Windows rendition of Apache's (*nix) PHP offering which is not possible in XAMPP but a search of the XAMPP for Windows forum may find a more authoritative answer.

If you want ASP then use the Windows server IIS included in mosts Windows Operating Systems and again a Google search and some reading will most likely enlighten you on these subjects better than I can.

Re: Xampp Server Status

PostPosted: 02. June 2009 01:51
by Morris.Lau
yes you said that very nice
Sharley wrote:
razzle0146 wrote:First Question:
I have my server up and running, but when I go to server status, it says CGI = Deactivated... Does anyone know why it would say that and if so, how do I activate it. Also, what is it for?

This section in your xampp\apache\conf\httpd.conf file should look like the below code in a default XAMPP installation, that is, if you ran the setup_xampp.bat file as per the installation instructions to set the correct paths:
Code: Select all
    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"

</IfModule>

#
# "C:/xampp/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/xampp/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
If it is different then use the above code to correct it, then save the file and restart (stop then start) Apache and look at the Status messages once again.

If you comment this line so it looks like this:
# ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
Then it will make the CGI Status appear Deactivated.

If you uncomment the line so it looks like this, which is the default:
ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
Then the CGI Status will appear Activated.
(This little trick will show how to activate and deactivate the Status message on demand, after saving the httpd.conf file and restarting Apache each time you change the line).

CGI stands for Common Gate Interface and a Google will surely find a better explanation of what it is and what it is used for than I can produce - Google is your friend.

If you go C:\xampp\cgi-bin you will see some CGI perl script examples and to see them in action in your browser type the following for just one of these examples:
http://localhost/cgi-bin/perltest.cgi


razzle0146 wrote:Second Question:
Can anyone tell me how I can host .asp files on xampp running on Windows Xp?
ASP is Active Server Pages and is a Windows rendition of Apache's (*nix) PHP offering which is not possible in XAMPP but a search of the XAMPP for Windows forum may find a more authoritative answer.

If you want ASP then use the Windows server IIS included in mosts Windows Operating Systems and again a Google search and some reading will most likely enlighten you on these subjects better than I can.

Re: Xampp Server Status

PostPosted: 03. June 2009 17:08
by razzle0146
Sharley,

Thank you for your reply, worked like a charm.. I appreciate your help..