Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 cgi-bin apache user just switched over to apache2triad
Google
Post new topic Reply to topic
Author Message
heather valentine
 
 


Joined: 03 Nov 2005
Posts: 4
Location: Ny

PostPosted: Thu Nov 03, 2005 5:52 pm Reply with quoteBack to top

hello Smile
how is everyone

yes i am new
but i woud le some help
i just installed triad after using apache for a long time
i notice a few thigns with triad like i can no longer use my cgi-bin folder
unless i put it in the root folder
thats one thign i need help with
the other is my old customised error pages no longer work
if anyone coud help me i woud greatly apreciate it
thnak you so much in advance
View user's profileSend private messageAIM Address
Vlad Alexa Mancini
lead developer
lead developer


Joined: 07 Jul 2003
Posts: 1539

PostPosted: Thu Nov 03, 2005 11:29 pm Reply with quoteBack to top

only apache2triad stable releases have the cgi-bin, the edge release do not have it anymore , however the default behaviour is that cgis scripts are not restricted to cgi-bin


Last edited by Vlad Alexa Mancini on Fri Nov 04, 2005 12:22 am; edited 1 time in total
View user's profileSend private message
Joshua Meadows (DemoRic)
support
support


Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

PostPosted: Fri Nov 04, 2005 12:11 am Reply with quoteBack to top

search your httpd.conf for the following lines and make sure they are un-commented
Code:
ScriptAlias /cgi-bin/ "C:/apache2triad/cgi-bin/"

<Directory "C:/apache2triad/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>


as for the error pages you can modify your httpd.conf
search for an area with
Quote:
# Customizable error responses come in three flavors:


or you can specify in your .htaccess file

Quote:
ErrorDocument 400 /error.php?400
ErrorDocument 401 /error.php?401
ErrorDocument 403 /error.php?403
ErrorDocument 404 /error.php?404
ErrorDocument 500 /error.php?500
View user's profileSend private messageYahoo MessengerICQ Number
heather valentine
 
 


Joined: 03 Nov 2005
Posts: 4
Location: Ny

PostPosted: Fri Nov 04, 2005 12:46 am Reply with quoteBack to top

gee thank you guys

i had originally thought that the conf file
was differnt and didnt have protected
directories listed in that file *.Conf as apache did
because i notice that i am able to use .htacess files in direcctories in
this version without having to have the line in the *.conf file
anyways


the errors works fine now i have custom error pages now

howerver i still can not get apache to find my cgi-bin and if it does it says forbidden even after adding in the add hanlder line to add
*.pl files


unless becasue i forgot toadd
AddHandler cgi-script .cgi .pl
that .pl

it sstill does not work
unless i paste in my old folder c:/usr which points to the directory where perl use to be installed im not sure
View user's profileSend private messageAIM Address
Joshua Meadows (DemoRic)
support
support


Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

PostPosted: Fri Nov 04, 2005 6:41 am Reply with quoteBack to top

See if you have the following uncommented:

Code:
#perl config
LoadFile perl\bin\perl58.dll
LoadModule perl_module modules/mod_perl.so
<IfModule mod_perl.c>
Alias /perl/ "C:/apache2triad/perl/"
AddHandler perl-script .pl
AddType application/x-httpd-perl .pl
PerlOptions ParseHeaders
PerlHandler ModPerl::Registry
PerlSendHeader On
</IfModule>
View user's profileSend private messageYahoo MessengerICQ Number
heather valentine
 
 


Joined: 03 Nov 2005
Posts: 4
Location: Ny

PostPosted: Fri Nov 04, 2005 10:19 am Reply with quoteBack to top

ok ill look now
also when you say sommented is that like his
//
or like this #
#


this is what i have now

#perl config
LoadFile perl\bin\perl58.dll
LoadModule perl_module modules/mod_perl.so
<IfModule mod_perl.c>
Alias /perl/ "C:/apache2triad/perl/"
AddHandler perl-script .pl
AddType application/x-httpd-perl .pl
PerlOptions ParseHeaders
PerlHandler ModPerl::Registry
PerlSendHeader On
</IfModule>



ASLO
please note i also have
AddHandler cgi-script .cgi .pl .perl

now im not sure if i need to install perl speralty
or does it already come with triad
i had to install seperate with the old apache
View user's profileSend private messageAIM Address
Joshua Meadows (DemoRic)
support
support


Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

PostPosted: Sat Nov 05, 2005 12:10 am Reply with quoteBack to top

both perl and mod_perl are included with apache2triad.

The pound symbol (#) is the character used to tell apache to ignore everything on that line, or put differently makes it a comment.

It is a good idea to use this for testing and making notes in your config files.

Also you might want to use the old instalations clean just to see if there may be some conflicts.
http://localhost/apache2triadcp/fixfiles.cgi
View user's profileSend private messageYahoo MessengerICQ Number
heather valentine
 
 


Joined: 03 Nov 2005
Posts: 4
Location: Ny

PostPosted: Sat Nov 05, 2005 12:45 am Reply with quoteBack to top

ill try that
Smile
View user's profileSend private messageAIM Address
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT