Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > Apache Help

Apache Help Post any question relating to Apache here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-09-28, 12:37 AM
Junior Member
 
Join Date: Sep 2007
Posts: 2
forrestfsu is on a distinguished road
Default Apache Localhost causing strange error second time around

Hi all, I'm hoping someone can help me with this situation (i'm using apache 2.2).

I initially setup DocumentRoot (within httpd.conf) to point to another directory.

for example:
DocumentRoot "C:\Documents and Settings\forrest\My Documents\JesterWebster\public_html\college"
<Directory "C:\Documents and Settings\forrest\My Documents\JesterWebster\public_html\college">

Everything was working fine. Then I went ahead and changed my httpd.conf file to point to a different directory.

for example:
DocumentRoot "C:\Documents and Settings\forrest\My Documents\JesterWebster\public_html\sports"
<Directory "C:\Documents and Settings\forrest\My Documents\JesterWebster\public_html\sports">

When I restart Apache it's attempting to point to the wrong location. For example, my error log shows:
[Fri Sep 21 10:40:02 2007] [error] [client 127.0.0.1] File does not exist: C:/Documents and Settings/forrest/My Documents/JesterWebster/public_html/sports/clientside, referer: localhost


It's obvious why there is an error, because there is no 'clientside' directory. However, I have not typed that in anywhere, so I'm unsure where it is coming from. I do know that I have a clientside directory located at:
"C:\Documents and Settings\forrest\My Documents\JesterWebster\public_html\college\client side"

The strange thing is that it still is loading a page, but its loading:
C:\Documents and Settings\forrest\My Documents\JesterWebster\public_html\college\index. php

It should be loading:
C:\Documents and Settings\forrest\My Documents\JesterWebster\public_html\sports\index.p hp

However, there should be no reference to that location at all. any help would be appreciated.

Thanks,
Jesse

Last edited by forrestfsu; 2007-09-28 at 12:52 AM.
Reply With Quote
  #2 (permalink)  
Old 2007-09-28, 05:36 PM
Junior Member
 
Join Date: Sep 2007
Posts: 2
forrestfsu is on a distinguished road
Default

I fixed the problem. I did not realize that I also had to go into the php.ini file and alter the doc_root field to point to the document root as well.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:16 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.