View previous topic :: View next topic |
Author |
Message |
edhel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Mar 2005 Posts: 27
|
Posted: Tue Feb 14, 2006 8:33 am Post subject: [SOLVED] ViewCVS - Apache misconfigured? |
|
|
Hello,
Trying to get ViewCVS to work, I added the two ScriptAlias lines in httpd.conf like recommended:
Code: | ScriptAlias /viewcvs /var/www/localhost/cgi-bin/viewcvs/viewcvs.cgi
ScriptAlias /cvsquery /var/www/localhost/cgi-bin/viewcvs/cvsquery.cgi |
I also modified /var/www/localhost/viewcvs/viewcvs.conf to suit my needs.
When I browse http://localhost/viewcvs, I get the raw python file displayed: /var/www/localhost/cgi-bin/viewcvs/viewcvs.cgi
I guess this is an Apache config problem, I tried to emerge mod_python and added -D PYTHON to /etc/conf.d/apache2, but that didn't do the trick. What did I miss?
Last edited by edhel on Fri Feb 17, 2006 9:03 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nlindblad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1379696454438f48388cb5f.png)
Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
Posted: Tue Feb 14, 2006 11:16 am Post subject: |
|
|
You'd need to enable CGI-programs to be executed in the specific directories. Since you don't have that it just send the raw script in plain text to the client. _________________ Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
edhel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Mar 2005 Posts: 27
|
Posted: Tue Feb 14, 2006 4:14 pm Post subject: |
|
|
But Apache is supposed to consider all files in a ScriptAlias directory as scripts, and doesn't need any Options ExecCGI directive, if that's what you meant. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nlindblad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1379696454438f48388cb5f.png)
Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
Posted: Wed Feb 15, 2006 4:29 pm Post subject: |
|
|
edhel wrote: | But Apache is supposed to consider all files in a ScriptAlias directory as scripts, and doesn't need any Options ExecCGI directive, if that's what you meant. |
That might be the case but getting the script in plain text still means it's not considered a CGI-program which executes properly. _________________ Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
edhel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Mar 2005 Posts: 27
|
Posted: Fri Feb 17, 2006 9:02 am Post subject: |
|
|
This is what was missing from my apache config:
Code: | LoadModule cgi_module modules/mod_cgi.so |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nlindblad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1379696454438f48388cb5f.png)
Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
Posted: Fri Feb 17, 2006 9:57 am Post subject: |
|
|
edhel wrote: | This is what was missing from my apache config:
Code: | LoadModule cgi_module modules/mod_cgi.so |
|
![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|