Page 1 of 1

Question about php.ini file

Posted: Tue Dec 20, 2005 2:56 pm
by vnadi
Hi,
First I should apologize if this posting is in the wrong palce.
I am new to php and I had a question about setting up the php.ini file. I just installed php5 on Win 2003 server with IIS6.
PHP is working fine and the doc_root is pointing to the directory where the application is.
My question however is, what should the doc_root parameter be set to when there are more than on web applications on the server?
Thanks for all your help and once again my apologies if this is posted in a wrong place.

Posted: Tue Dec 20, 2005 3:04 pm
by Burrito
the docroot in the php.ini file should not matter.

you just need to make sure you have the extensions (.php) set up for each web site you set up in IIS. If you're using ISAPI, you might need to manually set it up for each one. If using CGI, I believe it adds it automatically for every site you set up on your server.

When you set up the web site, you'll need to point the site to the correct folder (where your files are physicaly located)...but that's all done with IIS and doesn't require any setting changes in php.ini.

Posted: Tue Dec 20, 2005 4:31 pm
by vnadi
Burrito wrote:the docroot in the php.ini file should not matter.

you just need to make sure you have the extensions (.php) set up for each web site you set up in IIS. If you're using ISAPI, you might need to manually set it up for each one. If using CGI, I believe it adds it automatically for every site you set up on your server.

When you set up the web site, you'll need to point the site to the correct folder (where your files are physicaly located)...but that's all done with IIS and doesn't require any setting changes in php.ini.

Thanks Burrito,
I might be doing something wrong. I did setup the IIS and added the .php for the website and added index.php at the begining of the list on the document tab also. But when I changed the doc_root from c:/inetpu/wwwroot/app_name to c:/inetpub/wwwroot the application did not work and I got HTTP 404 error.
Thanks again for your help

d11wtq | Hint: Don't disable BBCode in your posts if you're using BBCode :?

Posted: Tue Dec 20, 2005 4:39 pm
by Burrito
well if you've added a value to your doc_root in php.ini you might need to remove it. It should just say:

Code: Select all

doc_root =
then for your IIS, in the MMC, view the properties of your web site, click the home directory tab, change the local path to whatever the path of your files is:
ex:
c:\inetpub\wwwroot