I have set up apache and php on a win 98 machine, the proble i have is this when i call a php script i get this error message

Warning: Failed opening '/home/tkit/web/index.php' for inclusion (include_path='c:\php4\includes') in Unknown on line 0

the contens of index.php is as follows

<?phpinfo()?>

hmm what have i done wrong

thanks kieran

    Try this:

    <? phpinfo(); ?>

    I think the missing blank could be the problem.
    Best regards,

    King Louie

      Ok made the change but did not sort the problem, as i see it php is trrying to include the index.php file but seems unable to do this, as it is is not in c:\php4\includes it is in c:\home\tkit\web\ i think the problem may be script aliasing in the apache config, i am running several vhosts?? does this help

        Somthing to add, if i request the page form a browser on the machine running apache and php there is no problem if i call the script form a computer on the network there is a problem is there a proble with my apahce vhosts config here is the listing...

        <VirtualHost 192.168.0.4>
        ServerName www.tkit.co.uk
        ServerAdmin webmaster@tkit.co.uk
        DocumentRoot /home/tkit/web/
        ErrorLog logs/tkit.co.uk-error_log
        CustomLog logs/tkit.co.uk-access_log common

        DirectoryIndex index.html /cgi-bin/index.pl index.shtml index.php
        
        <Directory "/home/tkit/web/">
           	Options Indexes MultiViews SymLinksIfOwnerMatch Includes
           	AllowOverride None
           	Order allow,deny
           	Allow from all
        </Directory>

        </VirtualHost>

        thanks kieran

          Write a Reply...