Xampp Server Status

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Xampp Server Status

Postby razzle0146 » 29. May 2009 07:25

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
razzle0146
 
Posts: 3
Joined: 29. May 2009 07:20

Xampp Status Error...

Postby razzle0146 » 29. May 2009 13:16

Can someone please tell me why this is deactivated, how to activate it and what it is for?

Image

Thanks in advance.. :D
razzle0146
 
Posts: 3
Joined: 29. May 2009 07:20

Re: Xampp Server Status

Postby Sharley » 30. May 2009 07:14

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Xampp Server Status

Postby Morris.Lau » 02. June 2009 01:51

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.
User avatar
Morris.Lau
 
Posts: 3
Joined: 02. June 2009 01:20

Re: Xampp Server Status

Postby razzle0146 » 03. June 2009 17:08

Sharley,

Thank you for your reply, worked like a charm.. I appreciate your help..
razzle0146
 
Posts: 3
Joined: 29. May 2009 07:20


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 62 guests