[freeside] Clicking links comes up with Source Code

Sven Willenberger sven at dmv.com
Wed Dec 24 06:52:48 PST 2003


On Wed, 2003-12-24 at 00:03, Scott Miller wrote:
> <VirtualHost 63.166.12.251>
> DocumentRoot /var/www
> ServerName freeside.domain.com
> ScriptAlias /cgi-bin/ /var/www/freeside
> ScriptAlias /cgi-bin/ /var/www/freeside/cgi-bin
> CustomLog /var/www/html/logs/access_log combined
> ErrorLog /var/www/html/logs/error_log
> TransferLog /var/www/html/logs/access_log
>  
> <Directory /usr/local/apache/htdocs/freeside-asp>
> <Files ~ (\.cgi)>
> AddHandler perl-script .cgi
> PerlHandler Apache::ASP
> </Files>
> <Perl>
> $MLDBM::RemoveTaint = 1;
> </Perl>
> PerlSetVar Global /usr/local/etc/freeside/asp-global/
> PerlSetVar Debug 2
> </Directory>
>  
> <Directory /usr/local/apache/htdocs/freeside-asp>
> AuthName Freeside
> AuthType Basic
> AuthUserFile /usr/local/etc/freeside/htpasswd
> require valid-user
> </Directory>
>  
> </VirtualHost>
>  
> Now that I can view the freeside interface, it looks great.  However,
> when I click the "NEW CUSTOMER" link, all I get is the source code for
> the file /edit/cust_main.cgi
>  
> I've verified the permissions (755), but to no avail.
>  
> Can anyone see offhand, with the info posted, what I may have done
> wrong?
>  
You set your ScriptAlias to use /var/www/freeside but your scripts are
in /usr/local/apache/htdocs/freeside-asp. You need to either reset your
ScriptAlias directive appropriately or add Options +execgi to the
freeside directory directive.

Sven




More information about the freeside-users mailing list