View Full Version : How to install Apache Software?
YUPAPA
July 9th, 2001, 18:57
I am new to this. I have visited http://www.apache.org and do not know how to install Apache Software.
Do I have to create all directories and put the files into a correct folders?
And then what?
Bruce
July 9th, 2001, 19:11
When you download it there will be an istall file. Just read that and you should be all set.
YUPAPA
July 9th, 2001, 19:14
Hi!
Can I download all files at once (in a zip file), but I don't see they have packed everything in a zip.
Or I have to create all the directories like them?
Bruce
July 9th, 2001, 19:20
They havethe zip file here.
http://httpd.apache.org/dist/httpd/apache_1.3.20.zip
YUPAPA
July 9th, 2001, 19:37
it says to run the .msi file (Apache.msi ), I can't find it Phrozen!
Bruce
July 9th, 2001, 19:46
You downloaded the *nix version, so obviously there isn't going to be a windows installer with it.
If your installing it on a windows machine download this file.
http://httpd.apache.org/dist/httpd/binaries/win32/apache_1.3.20-win32-src-r2.msi
YUPAPA
July 9th, 2001, 19:48
THANK YOU THANK YOU... I had downloaded before you post your message.. :)
YUPAPA
July 9th, 2001, 19:55
OK... I am new to this... so I am very sorry if I ask a dumb question...
Can I run Perl or CGI Script after installing the Apache Software?
Or it is just a HTTP server
YUPAPA
July 9th, 2001, 21:03
Hallo Phorzen?
Bruce
July 9th, 2001, 21:23
Sorry Yupapa, but I'm not here 24 hours a day.
If you want to run perl scripts you will need to install [url=http://www.activestate.com/]Active Perl[/url
YUPAPA
July 9th, 2001, 21:50
Thanks!
I have tried that before... now let's try again
lucifer
July 10th, 2001, 05:18
install perl
add
# perl
AddType application/x-httpd-cgi PL
to the end of httpd.conf in apache
make sure #!...... at start of your files points to perl.exe
should be OK but you may need to fiddle with suEXEC (if you get page forbidden)
niv
July 10th, 2001, 06:52
for example, if you installed perl at C:\Perl, and the perl executable is at C:\Perl\Perl.exe, your header should be:
#!C:\Perl\Perl.exe
YUPAPA
July 10th, 2001, 09:14
Originally posted by lucifer
install perl
add
# perl
AddType application/x-httpd-cgi PL
to the end of httpd.conf in apache
make sure #!...... at start of your files points to perl.exe
should be OK but you may need to fiddle with suEXEC (if you get page forbidden)
is httpd.conf = httpd.conf-dist-win ?
niv
July 10th, 2001, 09:15
the httpd.conf file should be in:
apache directory\conf
i have apache 1.3.12 running on my computer, so i wouldn't know about the .conf-dist-win thing. it came as .conf for me.
YUPAPA
July 10th, 2001, 09:18
Hi!
I add AddType application/x-httpd-cgi PL in the httpd.conf-dist-win file?
niv
July 10th, 2001, 09:29
that should work
YUPAPA
July 10th, 2001, 09:31
at the end of the file?
Why do I get an 'Not Acceptable Error'
http://24.42.40.19 ?
YUPAPA
July 10th, 2001, 09:58
needcgispace?
phrozen?
lucifer?
gyrbo
July 10th, 2001, 10:00
No no, There is supposed to be an httpd.conf file in the conf dir. If not, just rename the httpd.conf-dist-win. If you need more help I installed PHP, Perl andf MySQL on my machine.
YUPAPA
July 10th, 2001, 10:03
Cool!
Where do I insert this line?
#######################
#PERL
AddType application/x-httpd-cgi PL
#######################
at the end of httpd.conf-dist-win = httpd.conf ?
YUPAPA
July 10th, 2001, 10:30
I inserted the line.
I got Internal Server Error. Does anyone know why?
I can't CHMOD my files.
YUPAPA
July 10th, 2001, 10:33
The script is this:
#!/usr/local/bin/perl
##
## printenv -- demo CGI program which just prints its environment
##
print "Content-type: text/plain\n\n";
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}
Is the path to perl correct?
or it should be #!C:\Perl\bin\Perl.exe
lucifer
July 10th, 2001, 10:50
A) have you got apache working?
ie life at http://localhost/
B) what directory is perl.exe in?
gyrbo
July 10th, 2001, 10:55
Place this line at the END of your httppd.conf file
ScriptInterpreterSource registry
Now you don't have to worry about the shebang line anymore.
Oh yeah, make sure that perl.exe opens when you double click on a .pl file. Otherwise it won't work.
And make sure you place it in the cgi-bin!
YUPAPA
July 10th, 2001, 11:00
It is working!
http://24.42.40.19
Is the perl path correct?
#!C:\Perl\bin\Perl.exe
or
#!C:/Perl/bin/Perlexe
YUPAPA
July 10th, 2001, 11:08
Perl.exe is here
C:\Perl\bin\Perl.exe
And yes, when I click on a file that has an extension .pl, it opens the MS_DOCS
But if I open the .pl in a browser, I got Internal Server Error.
lucifer
July 10th, 2001, 11:12
have you added anything to httpd.conf ?
YUPAPA
July 10th, 2001, 11:14
Yes!
This is the last part of the file:
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
#NameVirtualHost *
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
#PERL
AddType application/x-httpd-cgi PL
Did I added Perl in the Right Place?
lucifer
July 10th, 2001, 11:17
what error did you get in error.log
in apache/logs or the like
YUPAPA
July 10th, 2001, 11:21
This is what I got.
[Tue Jul 10 11:25:14 2001] [error] [client 24.112.32.14] couldn't spawn child process: d:/ftp/apache/cgi-bin/printenv.pl
[Tue Jul 10 11:25:58 2001] [error] [client 24.112.32.14] couldn't spawn child process: d:/ftp/apache/cgi-bin/printenv.pl
[Tue Jul 10 11:25:59 2001] [error] [client 24.112.32.14] couldn't spawn child process: d:/ftp/apache/cgi-bin/printenv.pl
[Tue Jul 10 11:26:13 2001] [error] [client 24.112.32.14] couldn't spawn child process: d:/ftp/apache/cgi-bin/printenv.pl
[Tue Jul 10 11:26:42 2001] [error] [client 24.112.32.14] couldn't spawn child process: d:/ftp/apache/cgi-bin/printenv.pl
[Tue Jul 10 11:26:43 2001] [error] [client 24.112.32.14] couldn't spawn child process: d:/ftp/apache/cgi-bin/printenv.pl
[Tue Jul 10 11:38:04 2001] [error] [client 24.112.32.15] couldn't spawn child process: d:/ftp/apache/cgi-bin/printenv.pl
YUPAPA
July 10th, 2001, 11:26
Isn't the path should be this?
I run the Script here:
http://24.42.40.19/cgi-bin/printenv.pl
that is the same as D:\FTP\Apache\htdocs\cgi-bin\printenv.pl
But it shows D:\FTP\Apache\cgi-bin\printenv.pl on error.log
gyrbo
July 10th, 2001, 11:28
You need to shift+right click on the file, and then choose Open with... Tick ON the box that says "Always use this program for this filetype" And select Perl from the list. If it's not there , you need to click browse and go to Perl.exe. Click OK. Now it should work!
lucifer
July 10th, 2001, 11:29
it should just be the #! bit then
apache is trying to run it but can't find perl
try
#!c:\perl\bin\perl.exe
gyrbo
July 10th, 2001, 11:30
no no, you DON'T need that anymore with the option I gave you.
gyrbo
July 10th, 2001, 11:31
Hey YUPAPA, you forgot my line!
lucifer
July 10th, 2001, 11:38
Originally posted by gyrbo
no no, you DON'T need that anymore with the option I gave you. it maybe possible your way. however I like to have my setup mirroring my server so perl is in usr/bin on my machine so that It's the same as on the server
as ever many ways to do things
YUPAPA
July 10th, 2001, 11:38
I changed the path to perl '#!c:\perl\bin\perl.exe', still get the same error.
I used the right click thingy and chose Perl.exe, still get the same error.
What line 'gyrbo'?
I added the line in the httpd.conf
gyrbo
July 10th, 2001, 11:45
Originally posted by gyrbo
Place this line at the END of your httppd.conf file
ScriptInterpreterSource registry
YUPAPA
July 10th, 2001, 11:51
Then what is this?
#PERL
AddType application/x-httpd-cgi PL
Add new file type?
OK, I added
ScriptInterpreterSource registry
at the end of the file
so the last part of the file is this:
==============================================
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
#NameVirtualHost *
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
ScriptInterpreterSource registry
gyrbo
July 10th, 2001, 12:26
Does it work now?
YUPAPA
July 10th, 2001, 12:35
http://24.42.40.19/cgi-bin/printenv.pl
:)
Can I send you the httpd.conf and can you please take a look?
My O/S is Windows 2000
lucifer
July 10th, 2001, 12:40
as I said before
apache is working fine just can't find perl
if you have more can't spawn child process errors
YUPAPA
July 10th, 2001, 12:41
spawn child process errors = can't find perl ?
lucifer
July 10th, 2001, 12:48
yip
means it knows to do something special with .pl files
#!c:\perl\bin\perl.exe
should work else goto activeperl support forum - my friend had this exact same problem. - he got it sorted
gyrbo
July 10th, 2001, 13:30
What connection are you on YUPAPA? Anyway, are you sure Perl is at c:\perl\perl.exe?
YUPAPA
July 10th, 2001, 13:31
Cable
C:\Perl\bin\Perl.exe
100% sure!!
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.