Apache Server configuration support - Apache / PHP config issue

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > April 2007 > Apache / PHP config issue





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache / PHP config issue
mirage

2007-04-28, 7:20 pm

I am running 2.0.58, and php 5.2.1

I have an index.php file and it will not load up automaticly like a .html
file will. I have a pre written script and the files names in the php files
that call another php file will not load up I get the directory just fine
and can click on the file and it will load just fine. php works fine as
long as I call it by index.php or whatever.php

When I installed php hter are the lines that I have added to httpd.conf
(apache config file)

PHPIniDir "C:/php/"
LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x-httpd-php .php .html

If anyone has any ideas please let me know

Thank you.


shimmyshack

2007-04-29, 1:22 am

On Apr 29, 12:09 am, "mirage" <mirage...@verizon.net> wrote:
> I am running 2.0.58, and php 5.2.1
>
> I have an index.php file and it will not load up automaticly like a .html
> file will. I have a pre written script and the files names in the php files
> that call another php file will not load up I get the directory just fine
> and can click on the file and it will load just fine. php works fine as
> long as I call it by index.php or whatever.php
>
> When I installed php hter are the lines that I have added to httpd.conf
> (apache config file)
>
> PHPIniDir "C:/php/"
> LoadModule php5_module "C:/php/php5apache2.dll"
> AddType application/x-httpd-php .php .html
>
> If anyone has any ideas please let me know
>
> Thank you.


You need to add index.php onto the end of your DirectoryIndex
directive,
DirectoryIndex is a whitespace separated list of all the files which
apache will look for in a directory by default, index.html is there
already.
please see documentation here:
http://httpd.apache.org/docs/2.0/mo...#directoryindex

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com