View Full Version : Apache 1.3.31 configuration?
opel
June 24th, 2004, 10:55 AM
Im just about set up the latest apache with PHP on my win xp pro machine.
I followed a tutorial that was set up on Apache 1.3.29 and it tells you to configure line
DocumentRoot "c:/program Files/apache Group/Apache/htdocs
to
DocumentRoot "c:/htdocs"
so I set up a htdocs folder on my c drive and chande the only document root i could find in the file.
now when I test on my local host i get a warning mile and it opens dreamweaver?
Jeff Wheeler
June 24th, 2004, 11:08 AM
are you sure you're opening an html file, maybe you don't have an extension on the index page or it is something you haven't added support for yet on your server.
Architect
June 24th, 2004, 11:20 AM
HTTPD.CONF :
DocumentRoot "c:/htdocs"
<Directory "c:/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
make sure you set the right permissions or at least any permissions as well on the directory.
Maybe edit this line as well in your httpd.conf and add the files it has to look for when you enter the webdir
DirectoryIndex index.html index.html.var index.php
and to add php as extension :
AddType application/x-httpd-php .php
Jeff Wheeler
June 24th, 2004, 01:38 PM
adding the php as an extension does not automatically install php btw, you have to go download it from php's website
opel
June 24th, 2004, 05:57 PM
I have downloaded it and configured it with apache as a module. I just cant find the right details for the directory. will try arcjhitects suggestiona nd get back to you. Thanks
opel
June 24th, 2004, 06:38 PM
I've followed everything you said and checked my code but still having problems.
I've attached the default file and my modified file.Any help is appreciated?
opel
June 24th, 2004, 06:41 PM
any time I try to look at a file on my local host it tries to download it?
Architect
June 24th, 2004, 06:49 PM
then php isnt configured correctly.
It doesnt recognize the .php extension as a file that should be parsed or something so it asks you to dowload it.
LoadModule php4_module c:/PHP/sapi/php4apache.dll
AddType application/x-httpd-php .php
the last line on the above code you already added in your httpd.conf,
add the other one too just make the path point to your php4apache.dll correcty
opel
June 24th, 2004, 07:10 PM
it is definately something to do with the php extension not being recognised as htm pages work.
#LoadModule php4_module C:/php/sapi/php4apache.dll
I have added this line at the end of a the other Load Module commands. I notice that the order they are loaded makes a difference?
This is also the correct address to that file?
and your other line of code I have this:
# To use CGI scripts:
#
AddHandler cgi-script .cgi
#
#To use PHP scripts
#
AddType application/x-httpd-php .php
Also I created a file called index.php with thie following code:
<?
echo "Hello and welcome to the site!"
?>
when I browse to my local host it displays this inclding the "<?" but willl not let me access any other php pages???
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.