On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> Hello,
>
> 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> > > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>:
> > > > On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:
> > > > > There's only one problem left to be solved. After the upgrade php
> > > > > scripts behave as if they were not recognized. I made a test and put a
> > > > > standard index.html file in a directory, called a browser and the page
> > > > > was displayed properly. I then changed the page name to index.php and
> > > > > ran the browser again. This time the directory content was displayed,
> > > > > showing the index.php file present in it (it wasn't parsed by the
> > > > > browser). When I reloaded, the page content was finally displayed in a
> > > > > browser.
> > > > >
> > > > > So in other words it seems as if the "php" page was not properly
> > > > > parsed at first. It happens the same way with my wordpress family
> > > > > blog. It just shows directory content and when I click refresh
> > > > > index.php is called into the broser. But links to further php pages
> > > > > result in directory being shown again.
> > > > >
> > > > > I do have:
> > > > > AddType application/x-httpd-php .php
> > > > > AddType application/x-httpd-php-source .phps
> > > > > inside httpd.conf.
> > > > >
> > > > > Thoughts anyone? Again thank you so much for so many responses. I read
> > > > > them all and they were very helpful!
> > > >
> > > > Add index.php to your DirectoryIndex area of httpd.conf and that
> > > > will fix it.
> > >
> > > Thank you but I think it is already there?
> > >
> > > <IfModule mod_dir.c>
> > > <IfModule mod_php3.c>
> > > <IfModule mod_php4.c>
> > > DirectoryIndex index.php index.php3 index.html
> > > </IfModule>
> > > <IfModule mod_php5.c>
> > > DirectoryIndex index.php index.php3 index.html
> > > </IfModule>
> > > <IfModule !mod_php4.c>
> > > DirectoryIndex index.php3 index.html
> > > </IfModule>
> > > </IfModule>
> > > <IfModule !mod_php3.c>
> > > <IfModule mod_php4.c>
> > > DirectoryIndex index.php index.html
> > > </IfModule>
> > > <IfModule !mod_php4.c>
> > > DirectoryIndex index.html
> > > </IfModule>
> > > </IfModule>
> > > </IfModule>
> > >
> > > Thanks again!
> > >
> > > Zbigniew Szalbot
> > >
> >
> > Was it in there before you last started Apache? If not, you
> > should restart Apache for it to take effect.
>
> Indeed it was. Error log does not show anything special when I run a
> php file in browser and it shows directory content.
>
> Thanks!
>
> zbigniew szalbot
>
Zbigniew,
Also, check for this line in your httpd.conf file:
<IfModule mod_dir.c>
Make sure index.php is in that list if the entry exists.
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
Give a man a fish, he'll eat for a day. Then you'll find out he was
allergic and is hospitalized. See? No good deed goes unpunished....
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php