<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>PHP Community</title><link>http://forums.iis.net/1102.aspx</link><description>A forum for the PHP community running on IIS</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Subdirectory as another site ?</title><link>http://forums.iis.net/thread/1910170.aspx</link><pubDate>Mon, 13 Jul 2009 21:00:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910170</guid><dc:creator>dilbert627</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910170.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1102&amp;PostID=1910170</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Actually doc_root WAS the problem. As per this thread: http://forums.iis.net/t/1154314.aspx&lt;/p&gt;&lt;p&gt;&amp;nbsp;You can&amp;#39;t have doc_root set in php.ini if you&amp;#39;re going to have multiple sites. I still had to have a separate config directory, but not having doc_root set allowed each site to have its own document_root which was correct.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Subdirectory as another site ?</title><link>http://forums.iis.net/thread/1910132.aspx</link><pubDate>Mon, 13 Jul 2009 15:53:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910132</guid><dc:creator>dilbert627</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910132.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1102&amp;PostID=1910132</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Ok, so I made a copy of the config directory in the subdirectory, and as I suspected, it&amp;#39;s loading the index page of the root directory, only without the graphics and styles because the path is different, and none of the links work. Does the doc_root somehow override the home directory setting?? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Subdirectory as another site ?</title><link>http://forums.iis.net/thread/1910037.aspx</link><pubDate>Sun, 12 Jul 2009 10:47:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910037</guid><dc:creator>steve schofield</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910037.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1102&amp;PostID=1910037</wfw:commentRss><description>&lt;p&gt;If you have config in the subdirectory that has access to the root folder of the main site, you&amp;#39;ll have to A) Either have a specific config for the sub-directory, or have a separate folder.&amp;nbsp; I wouldn&amp;#39;t use a different port, I&amp;#39;d use a host-header on port 80.&amp;nbsp; Make sure also the new site &lt;br /&gt;Home&amp;nbsp;Directory property is configured to c:\inetpub\wwwroot\commercial&lt;/p&gt;</description></item><item><title>Subdirectory as another site ?</title><link>http://forums.iis.net/thread/1909959.aspx</link><pubDate>Fri, 10 Jul 2009 21:10:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909959</guid><dc:creator>dilbert627</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909959.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1102&amp;PostID=1909959</wfw:commentRss><description>&lt;p&gt;We have an internal website that runs a php application. I am adding a new feature in a subdirectory that I want to expose to the internet.&amp;nbsp; My thought was that I would make a website that runs under a different port, like 84, then port forward from the router.&amp;nbsp; I am running IIS 6 on SBS 2003.&amp;nbsp;&amp;nbsp; So I created a new website and pointed it to the subdirectory of the other site, but when I pull it up it acts like it&amp;#39;s loading the index file of the root site, not the subdirectory. In the code, I&amp;#39;m loading a config file based on the document_root, but that fails because it&amp;#39;s looking in the subdirectory for the config file.&amp;nbsp; Here&amp;#39;s the structure so hopefully this will make more sense: &lt;/p&gt;&lt;p&gt;&amp;nbsp;Root web site&lt;/p&gt;&lt;p&gt;--index.php &lt;/p&gt;&lt;p&gt;\config\config.php&lt;/p&gt;&lt;p&gt;\commercial\index.php&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Commercial website (same path on disk as commercial subdirectory of other site)&lt;/p&gt;&lt;p&gt;index.php&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The code is:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; require($_SERVER[&amp;quot;DOCUMENT_ROOT&amp;quot;] . &amp;quot;/config/config.php&amp;quot;);&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I load the page I get this:&lt;/p&gt;&lt;p&gt;&lt;b&gt;Fatal error&lt;/b&gt;:  require() [&lt;a href="http://barnserver:84/function.require"&gt;function.require&lt;/a&gt;]: Failed opening required &amp;#39;C:\Inetpub\tracker\commercial/config/config.php&amp;#39; (include_path=&amp;#39;.;c:\php\includes&amp;#39;) in &lt;b&gt;c:\Inetpub\tracker\index.php&lt;/b&gt; on line &lt;b&gt;3&lt;/b&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now I could change the code so it loads the right path instead of the document root, but it&amp;#39;s not loading commercial/index.php, it&amp;#39;s loading the root index.php. So what&amp;#39;s up with that?&amp;nbsp; Is there another, better way to do this???&amp;nbsp; Thanks for any help. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>