Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to config CGI

Featured Replies

#!/usr/bin/perl
print "Content-Type: text/plain", "\n\n";
print "Hello World in Perl", "\n";

 

http://localhost/cgi-bin/test.cgi
it has Internal Server Error

 

http://localhost/cgi-bin/
Forbidden
You don't have permission to access /cgi-bin/ on this server.

 

how to run cgi?

internal server error shows you have a problem with your apache configuration file(httpd.conf).

 

the original uniform server has no problem running your code.

 

open your httpd.conf(/udrive/usr/local/apache2/conf/httpd.conf) and check your cgi-bin configuration.

it should much like

 

ScriptAlias /cgi-bin "/cgi-bin/"

# "C:/Program Files/Apache Group/Apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.

<Directory "/cgi-bin/">
 AllowOverride All
 Options ExecCGI
</Directory>

 

BUT if you have no problem with your first page of uniform server and can shutdown your server using your admin panel page then there might be another problem. check your apache log file also.

  • Author

this is default setting

ScriptAlias /cgi-bin "/cgi-bin/"

# "C:/Program Files/Apache Group/Apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.

<Directory "/cgi-bin/">
 AllowOverride All
 Options ExecCGI
</Directory>

<Directory "/home/admin/www/cgi-bin/">
 AllowOverride All
 Options ExecCGI
</Directory>

 

i have deleted the .htaccess file and enabled "AddHandler cgi-script .bat .exe .pl .cgi"

finally no work...

what problem?

I deleted my last post answered the wrong question. :)

 

Deleting .htaccess prevents running CGI scripts in www and its sub-folders.

 

Any scripts in cgi-bin will run with the defaults you have shown.

 

It would be interesting to see if the error log file provides a clue to the problem.

Before running the servers open error.log located in \Uniform Server\udrive\usr\local\apache2\logs delete it’s content. Save and run the servers, access your script. Now check the log file for errors.

 

What do you get?

 

All the best

Ric :)

  • Author

I deleted my last post answered the wrong question. :)

 

Deleting .htaccess prevents running CGI scripts in www and its sub-folders.

 

Any scripts in cgi-bin will run with the defaults you have shown.

 

It would be interesting to see if the error log file provides a clue to the problem.

Before running the servers open error.log located in \Uniform Server\udrive\usr\local\apache2\logs delete it’s content. Save and run the servers, access your script. Now check the log file for errors.

 

What do you get?

 

All the best

Ric :)

 

Error log

[Sun Jul 06 08:55:49 2008] [error] [client 127.0.0.1] attempt to invoke directory as script: W:/cgi-bin/
[Sun Jul 06 08:55:54 2008] [error] [client 127.0.0.1] script not found or unable to stat: W:/cgi-bin/index.cgi

does test.cgi exist in "/udrive/cgi-bin" folder? the error log says you do not have the script file in "/udrive/cgi-bin" folder.

  • 16 years later...
On 7/5/2008 at 3:46 PM, angus203 said:

 

#!/usr/bin/perl
print "Content-Type: text/plain", "\n\n";
print "Hello World in Perl", "\n";
 

 

 

 

http://localhost/cgi-bin/test.cgi
it has Internal Server Error
 

 

 

 

http://localhost/cgi-bin/
Forbidden
You don't have permission to access /cgi-bin/ on this server.



how to run cgi?




La sécurité est de la plus haute importance pour chaque joueur, et le Casino Cabarino se consacre à offrir un environnement de jeu à la fois sûr et sécurisé pour ses clients. Grâce à l'utilisation d'algorithmes de cryptage sophistiqués, vos informations personnelles et vos transactions financières cabarino casino avis sont protégées de toute infiltration. De plus, le Casino Cabarino est enregistré et contrôlé par les autorités compétentes, garantissant que ses activités sont ouvertes et honnêtes et respectent les règles du jeu responsable.

this is default setting

 

ScriptAlias /cgi-bin "/cgi-bin/"

# "C:/Program Files/Apache Group/Apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.

<Directory "/cgi-bin/">
 AllowOverride All
 Options ExecCGI
</Directory>

<Directory "/home/admin/www/cgi-bin/">
 AllowOverride All
 Options ExecCGI
</Directory>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.