On 11/6/07, SFWahoo <[EMAIL PROTECTED]> wrote:
> I have installed Apache 1.3 and PHP 5.2.4.  I am now trying to install Zen
> Cart.  When accessing the Zen Cart setup, the PHP files are not read. I
> simply get a directory listing of files instead of execution of the
> index.php.  Seems I have missed something in the config files. When I run
> php -v, everything seems to be fine with PHP, I just do not run PHP files.

    That sounds like your DirectoryIndex directive needs to be
updated.  Check your httpd.conf file and make sure it looks
[something] like this:

<IfModule mod_dir.c>
    DirectoryIndex index.html index.wml index.cgi index.shtml
index.jsp index.js index.jp index.php4 index.php3 index.php
index.phtml index.htm default.htm default.html home.htm
</IfModule>

    Also be sure to check that you have these lines:
AddHandler application/x-httpd-php .php .php4 .php3 .phtml
AddHandler application/x-httpd-php-source .phps
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps

    Once you've added those lines, just restart Apache.

    Keep in mind (you, too, archive readers!) that this is httpd
1.3.x-specific, and the syntax won't work on 2.x.

-- 
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to