Forum Moderators: phranque

Message Too Old, No Replies

odd error with DirectoryIndex

apache DirectoryIndex php

         

isurge

3:01 pm on Mar 6, 2007 (gmt 0)

10+ Year Member



Hi!

I just installed ubuntu server 64bit version on an amd64 and am configuring apache.

If I go to http://example.com/index.php the script works fine. If I go to http://example.com the server spits out the php code.

DirectoryIndex index.html index.php

Any ideas?

Jimmy

[edited by: jdMorgan at 4:35 pm (utc) on Mar. 6, 2007]
[edit reason] Example.com [/edit]

coopster

5:01 pm on Mar 6, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, isurge.

Did you clear out your browser's cache?

isurge

6:28 pm on Mar 6, 2007 (gmt 0)

10+ Year Member



ya(restarted the browser also) ... at present i rolled the system back to an older version of php / apache in a few minutes I'll have the system pointed at the new server and will be able to continue the debugging .. I had forgotten that there was a low use production domain on the new system ... hence the quick failover to a production server

isurge

7:19 pm on Mar 6, 2007 (gmt 0)

10+ Year Member



all done moving the domains around and made one small change to apache ... i added a .html as one of the things to be processed as php

<IfModule mod_php5.c>
AddType application/x-httpd-php .php .html .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>

for me this is ok since these servers do not have any .html files on it .... i presume i have the apache config messed up somewhere and that my workaround is probably just lame ... but now it works ... :)