Hello,

I'm pretty new to php/mysql and i've managed to get them both working while the php files are in the default document root, but I can't seem to get the system to work if I have the php files in a different directory and change the document root. I was wondering what changes to the httpd.conf and php.ini files need to be done. I apologise in advance if the material in this thread has already covered, i couldn't find anything.

    as far i know u only need to change the document root in httpd.conf

    involving these 2 lines

    DocumentRoot "/apache/htdocs"

    <Directory "/apache/htdocs">

      Are the PHP files in a subdir of the doc root? What kind of errors, if any, are you getting?

      Shadeless was correct with changing the docroot... sounds to me that isn't the problem though. Does the server parse the PHP files in some directories, but not others... or does it not parse anything once you change the docroot?

        The browser kept displaying an "file not found" url when i tryed a file within localhost apart from index, although now it seems to have sorted itself out. Thanks for your help anyway.

          Write a Reply...