[wellylug] Perl scripts not executing in Firefox

Cliff Pratt enkidu at cliffp.com
Fri Jan 12 18:52:58 NZDT 2007


John Durham wrote:
> Cliff Pratt wrote:
>> In the /etc/apache2 directory there is a file called httpd.conf. This 
>> is the old historical name. There is also a file called apache.conf. 
>> This contains the new conf file which defines the 'global' parameters 
>> that apply to all sites in the apache configuration. At the end you 
>> will see an 'include' statement which reference 
>> /etc/apache2/sites-enabled. These are the individual sites in the 
>> configuration. To see all your sites, at the command line type 
>> 'apache2ctl -S'. For each site there will be a link in 
>> /etc/apache2/sites-enabled tp the site definition in 
>> /etc/apache2/sites-available.
>>
>> So you should make site changes to the files in 
>> /etc/apache2/sites-available and general changes to the 
>> /etc/apache2/apache.conf
>>
>> IN the above "Location" definition, I believe the line should read:
>>
>> AddHandler cgi-script .cgi .pl
>
> Interesting- /etc/apache2 does NOT contain a copy of apache.conf but 
> there is one called apache2.conf ? Would it be reasonable to say that 
> this is the file you mean? If not, then should this file be left alone 
> and a new one created? Meantime, I have updated apache2.conf with the 
> <Location /cgi-bin> data you suggested. Can easily revert back if needed.
 >
Yes, I did mean that file.

I mentioned the 'correct' way to do it for reference, mainly. It is your 
system, so you can set it up as you wish.

Cheers,

Cliff




More information about the wellylug mailing list