Re: CGI Scripts, Apache 2.2.3, and Debian 4.0 R1
Hi Freddy, I was finally able to get it working, but I'm not exactly sure what I did to fix it. I think that it might have been enabling the cgid module. Does this make sense. Otherwise, I set most of the setting back to default, restarted Apache, and the scripts starting working. Jon - Original Message From: Freddy Freeloader [EMAIL PROTECTED] To: Debian User debian-user@lists.debian.org Sent: Sunday, December 16, 2007 10:22:09 PM Subject: Re: CGI Scripts, Apache 2.2.3, and Debian 4.0 R1 Jon D. Irish wrote: I have a clean install of Debian 4.0 R1 with Apache 2.2.3-4 installed. I can not get cgi scripts to execute from the website. I have researched the Apache site and tried both of the following: 1) Under apache2.conf, I added Directory /var/www/cgi-bin Options +ExecCGI AddHandler cgi-script .cgi .pl /Directory 2) Under httpd.conf, I added # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname 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/ /var/www/cgi-bin/ # # /var/www/cgi-bin should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # Directory /var/www/cgi-bin AllowOverride None Options Indexes Includes FollowSymLinks Order deny,allow Deny from all Allow from 192.168.1 /Directory Neither of these has allowed my cgi scripts to run. Can someone please tell me what I am doing wrong? Sincerely, Jon Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping This may be a stupid question, but did you enable the cgi module by creating a symbolic link from /etc/apache2/mods-enabled to /etc/apache2/mods-available and install the appropriate php4/php5-cgi package or the libapache-mod-fastcgi depending on your usage? Without doing those two things pache won't/can't load the cgi module. There are also some libcgi packages for perl and a couple of other languages too, but I'm not familiar with them as I've never had occasion to use them. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: CGI Scripts, Apache 2.2.3, and Debian 4.0 R1
Hi Mark, Still no luck. I keep getting The webpage cannot be found errors. Is it possible that I am missing an Apache package? Here are my index,html and config files (if it would help). Thanks, Jon - Original Message From: Mark Grieveson [EMAIL PROTECTED] To: debian-user@lists.debian.org Sent: Sunday, December 16, 2007 9:37:41 AM Subject: Re: CGI Scripts, Apache 2.2.3, and Debian 4.0 R1 On Sun, 16 Dec 2007 08:05:04 + (UTC) [EMAIL PROTECTED] wrote: Directory /var/www/cgi-bin AllowOverride None Options Indexes Includes FollowSymLinks Order deny,allow Deny from all Allow from 192.168.1 /Directory Neither of these has allowed my cgi scripts to run. Can someone please tell me what I am doing wrong? Sincerely, Jon Red Hat, and others, use /var/www/cgi-bin, as the directory. I've found, for Debian, that the correct directory is /usr/lib/cgi-bin/; so, change Directory /var/www/cgi-bin to: Directory /usr/lib/cgi-bin. When I ran a webserver, I also had the scriptalias stuff in the file /etc/apache2/sites-available/default file. I was running a virtual host though; so, for yourself, the sites-available file may not be important. Mark -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ Apache2.tar Description: Binary data
CGI Scripts, Apache 2.2.3, and Debian 4.0 R1
I have a clean install of Debian 4.0 R1 with Apache 2.2.3-4 installed. I can not get cgi scripts to execute from the website. I have researched the Apache site and tried both of the following: 1) Under apache2.conf, I added Directory /var/www/cgi-bin Options +ExecCGI AddHandler cgi-script .cgi .pl /Directory 2) Under httpd.conf, I added # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname 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/ /var/www/cgi-bin/ # # /var/www/cgi-bin should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # Directory /var/www/cgi-bin AllowOverride None Options Indexes Includes FollowSymLinks Order deny,allow Deny from all Allow from 192.168.1 /Directory Neither of these has allowed my cgi scripts to run. Can someone please tell me what I am doing wrong? Sincerely, Jon Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
OSS device /dev/dsp is already in use by another program
I just finished compiling a 2.6.12.4 kernel to support the sound card in my Dell Optiplex GX270; however, when I try to play audio via Music Player, I keep getting a "OSS device "/dev/dsp" is already in use by another program" error. I have verified that there are no other programs running at the time, so what else would be using the device? TIA, Jon__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com