Jump to content

WampServer not running files


idontgetphp

Recommended Posts

I have a final due tomorrow....

OK I've changed the httpd.conf so that instead of looking like this:

ServerRoot "c:/wamp/bin/Apache/apache2.2.11"

it looks like this:

ServerRoot "c:/wamp/bin/Apache/apache2.2.11/htdocs"

 

i cant seem to figure out why i cant connect to my database.  i get 404 error messages and on my laptop its saying that getting a connection but ive got a good connection

 

Help please

Link to comment
Share on other sites

well it should be there

 

should be near the top....below LoadModules

DocumentRoot "E:/xampp/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.  
#

    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all


#
# 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.
#

    #
    # 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


Link to comment
Share on other sites

DocumentRoot is the ROOT folder of your localhost

anything in this folder is what will come up when people type your IP address/domain into the address bar..

 

ServerRoot is the ROOT folder of your webserver itself.....AKA Aoache

people do not see the contents of this folder....it is solely the backbone of Apache.....although you can route folders from it to a VirtualHost...which IS accessible by the public.

 

Just set accordingly.

Link to comment
Share on other sites

DocumentRoot "c:/wamp/bin/Apache/apache2.2.11" is not in the file httpd.conf

 

the document root is this:

DocumentRoot "c:/wamp/www/"

 

do i need to change it so that it says: c:/wamp/bin/Apache/apache2.2.11

if your webfiles are in the c:/wamp/www/ directory it should work.

if the files are in any other directory you should change your DocumentRoot

Link to comment
Share on other sites

when and where are you getting these errors....

if you are getting any kind of HTTP error, then Apache is doing its job.

i.e. 403 404 501 ..etc etc etc..

 

 

unless you have IIS installed and running too...then that would be your problem

also...this is Apache installation....not PHP

 

I'll move this for you

Link to comment
Share on other sites

ok heres my files:

File name : login.php

<?php

 

$db_host='localhost';

$db_database='racebpalmer';

$db_username='root';

$db_password='';

 

?>

 

the other file is: test.php

<?php

 

include('login.php');

 

$connection = mysql_connect($db_host, $db_username, $db_password);

if (!$connection){

die ("Could not connect: <br />." mysql_error());

 

?>

 

i dont have a password set for phpMyAdmin or for the MySQL consol

Link to comment
Share on other sites

those are not users, those are ur ip adresses.

 

i meant to make sure that your "System user" is able to access the directory.

under windows xp you can do something like this.

make sure u have Simple File Sharing NOT CHECKED under folder options.

right click the document root map that u have the files in, and goto properties.

then goto the security tab, and make sure the system user has access to this folder and all the underlying folders and files.(if you are running apache as another user, this user needs access instead of system i think)

not sure how this works with vista though.

hope this helps

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.