Changes to config files having no effect [SOLVED]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Changes to config files having no effect [SOLVED]

Postby alfred_bean » 13. May 2011 20:20

Hi everyone. I recently installed xampp and it went perfectly - no problems at all. I've been into the security console and set my passwords, read the php info and accessed mysql from phpmyadmin. So yeah- everything seems to be working fine. However I'm having difficulty actually reading files from my htdocs folder. I reset the document root using the httpd.conf file to be C:/htdocs and in there i've created a 'phptesting' sub-folder in which to store all my documents but whenever i try to load a file into my browser I get a '404 not found' error.

Now, I've spent the last couple of days trying to figure this out and yes - I've used the forum search function too but I can't find anything that relates to this problem at all and I can't figure it out myself either. Everything looks fine and in every other way seems to be running perfectly. It looks like I'm set up and ready to get busy learning php but then this problem comes out of nowhere. Can anyone help me figure out what might be going on? I would post some relevant information too if i knew what the hell might be wrong but at the moment I have absolutely no idea. All I can share with you is the following message that i get whenever I try to load any sort of file on localhost (I tried 127.0.0.1 also) ....

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
127.0.0.1
13/05/2011 14:59:47
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1


Thanks for your time :)
Alf
Last edited by alfred_bean on 14. May 2011 00:47, edited 2 times in total.
alfred_bean
 
Posts: 6
Joined: 13. May 2011 20:06

Re: Installation is perfect but 404s in browser

Postby Altrea » 13. May 2011 20:28

Every second thread the same procedure...

What does your \xampp\apache\logs\error.log file contains?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Installation is perfect but 404s in browser

Postby alfred_bean » 13. May 2011 20:42

Hi Altrea and thanks for responding so quickly. I really appreciate it. Please forgive me but I'm totally new to all of this and I didn't know that these sort of events would be logged in a error log. Looking at this log I can see there's definitely an issue - my reconfiguration of the httpd.conf file has had no effect at all and the server is still looking for documents in c:/xampp/htdocs instead of the directory I specified. However the thing is that I only specified a new document root because any files I put into c:/xampp/htdocs were also not being found. I'm going to check it again and see how it goes.

Do you perhaps know why my reconfiguration of httpd.conf isn't working? I'm posting the relevant portion of my httpd.conf in addition to my most recent error logs so you can see if I've done anything wrong. Thanks once again for taking the time to help me here.

my most recent error logs ...

[Fri May 13 08:30:21 2011] [notice] Server built: Oct 18 2010 01:58:12
[Fri May 13 08:30:21 2011] [notice] Parent: Created child process 2592
[Fri May 13 08:30:22 2011] [notice] Digest: generating secret for digest authentication ...
[Fri May 13 08:30:22 2011] [notice] Digest: done
[Fri May 13 08:30:22 2011] [notice] Child 2592: Child process is running
[Fri May 13 08:30:22 2011] [notice] Child 2592: Acquired the start mutex.
[Fri May 13 08:30:22 2011] [notice] Child 2592: Starting 150 worker threads.
[Fri May 13 08:30:22 2011] [notice] Child 2592: Starting thread to listen on port 443.
[Fri May 13 08:30:22 2011] [notice] Child 2592: Starting thread to listen on port 80.
[Fri May 13 08:31:32 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/scrape
[Fri May 13 08:31:49 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 09:01:43 2011] [error] [client 127.0.0.1] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'root'@'localhost' (using password: NO) in C:\\xampp\\htdocs\\xampp\\cds.php on line 64, referer: http://localhost/xampp/navi.php
[Fri May 13 09:01:58 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 09:26:17 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/phptesting
[Fri May 13 09:27:41 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/phptesting
[Fri May 13 09:32:17 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 10:02:26 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 10:32:44 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 11:02:52 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 11:33:02 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 12:03:10 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 12:33:20 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 13:03:28 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 13:33:38 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 14:03:46 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 14:33:56 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
[Fri May 13 14:59:35 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/phptesting
[Fri May 13 14:59:47 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/phptesting


My http.conf file (relevant section)
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/htdocs"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>
alfred_bean
 
Posts: 6
Joined: 13. May 2011 20:06

Re: Installation is perfect but 404s in browser

Postby alfred_bean » 13. May 2011 20:46

Ok, I feel a bit dumb because now that i've copied the phptesting folder into c:/xampp/htdocs it's working. Honestly though, I began by creating a phptesting folder in here and hen creating an index.php file in the phptesting folder and I was getting that 404 message - this is the only reason I decided to reconfigure the httpd.conf file.

Any idea why my reconfiguration isn't working? I'd prefer my document root to be c:/htdocs if that's possible
alfred_bean
 
Posts: 6
Joined: 13. May 2011 20:06

Re: Installation is perfect but 404s in browser

Postby alfred_bean » 13. May 2011 23:36

Ok, so this thread has taken a bit of tangent so I'm going to re-title it since the crux of the problem I'm having has shifted. Files are being found now but I can't seem to be able to make any changes to my configuration files and have them have some sort of effect.

For instance: I open httpd.conf and change my document root location but it remains the same regardless:

DocumentRoot "C:/xampp/htdocs" changed to --> DocumentRoot "C:/htdocs" ...... document root remains C:/xampp/htdocs

Also: I open up my php.ini and change my include_path to something more preferable but it too remains the same regardless:

include_path = ".;C:\xampp\php\PEAR" changed to --> include_path = ".;C:\xampp\php\includes" ...... include path remains C:\xampp\php\PEAR

Does anyone have any idea of what be going on here? The development env. is working just fine aside for the fact that I can't make any effective alterations to any config files. Although, I've only been brave enough to alter the two files mentioned above. I really don't know about any of the other config files but I suspect that it will be the same. Oh, and they're being saved in their altered form. It's not a read/write issue.
alfred_bean
 
Posts: 6
Joined: 13. May 2011 20:06

Re: Changes to config files having no effect

Postby Sharley » 14. May 2011 00:39

After saving your changes in the configuration files did you restart Apache and or MySQL?
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Changes to config files having no effect

Postby alfred_bean » 14. May 2011 00:43

Nope. It's been running all day :roll: I'll do it now and see how that goes. Thank you.
alfred_bean
 
Posts: 6
Joined: 13. May 2011 20:06

Re: Changes to config files having no effect

Postby alfred_bean » 14. May 2011 00:47

Sharley wrote:After saving your changes in the configuration files did you restart Apache and or MySQL?


That did the trick Sharley - thank you very much. Seems so simple now :oops:
alfred_bean
 
Posts: 6
Joined: 13. May 2011 20:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 45 guests