Apache2 PHP mySQL on Win 2000

This is a discussion on Apache2 PHP mySQL on Win 2000 within the Windows Web Servers forums, part of the Web Server and Related Forums category; I am trying to configure Apache2 on a Windows 2000 server. Apache comes up great, and I can see the ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-11-2004
Ralph
 
Posts: n/a
Default Apache2 PHP mySQL on Win 2000

I am trying to configure Apache2 on a Windows 2000 server. Apache
comes up great, and I can see the default index page. But then the
problem starts; I can't add a page, otherwise I get a 404 error. If I
edit the index.html page, the newly loaded page shows the edits. But
if I create a new html or php page (like a phpinfo page), I get the
"page cannnot be found" 404 error??? How can I edit ther index page,
and see the edited page, yet fail to see a newly added page????
------------------
error log;
[Wed Aug 11 06:40:52 2004] [notice] Child 652: Child process is
running
[Wed Aug 11 06:40:52 2004] [notice] Child 652: Acquired the start
mutex.
[Wed Aug 11 06:40:52 2004] [notice] Child 652: Starting 250 worker
threads.
[Wed Aug 11 06:44:31 2004] [error] [client 127.0.0.1] File does not
exist: C:/Apache2/htdocs/test.html
[Wed Aug 11 06:47:51 2004] [error] [client 127.0.0.1] File does not
exist: C:/Apache2/htdocs/test.html
[Wed Aug 11 06:48:59 2004] [error] [client 127.0.0.1] File does not
exist: C:/Apache2/htdocs/test.html
----------------------
The DocumentRoot is c:/Apache2/htdocs and the html docs are in the
htdocs directory.
----------------------
Thanks in advance!
Ralph
  #2 (permalink)  
Old 08-12-2004
Nil
 
Posts: n/a
Default Re: Apache2 PHP mySQL on Win 2000

On 11 Aug 2004, php4u@pacbell.net (Ralph) wrote in
news:789f713d.0408111252.2b761e2d@posting.google.c om:

> I am trying to configure Apache2 on a Windows 2000 server. Apache
> comes up great, and I can see the default index page. But then the
> problem starts; I can't add a page, otherwise I get a 404 error. If I
> edit the index.html page, the newly loaded page shows the edits. But
> if I create a new html or php page (like a phpinfo page), I get the
> "page cannnot be found" 404 error??? How can I edit ther index page,
> and see the edited page, yet fail to see a newly added page????


Couplea thoughts...

Try changing the error log reporting level to debug or something using
this directive. Maybe that will give more useful information.

# LogLevel: Control the number of messages logged to the error.log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

-----

Did you change the Options directive for any of the directory
containers in the config file? To tell you the truth, I'm not sure what
all the options do, but I've left the ones for my root directory as the
defaults, and they work as expected. Here they are:


# 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
</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.0/mod/core.html#options
# for more information.
#
# Options Indexes FollowSymLinks

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

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

</Directory>

  #3 (permalink)  
Old 08-12-2004
Ralph
 
Posts: n/a
Default Re: Apache2 PHP mySQL on Win 2000

Thanks Nil,

I went back and tried your suggested edits. The "debug" level offered
more information, but still provided the same end product;
c:/www/webroot/info.php page not found. But I just edited it in that
directory, so I KNOW its there !! (uugh)

So, back to square 1 - I can see the index.html page, but I am unable
to view any other pages in a browser (.php, .htm, .html) and receive
the "cannot find page" error.

Suggestions?
thanks again in advance!
Ralph


> Couplea thoughts...
>
> Try changing the error log reporting level to debug or something using
> this directive. Maybe that will give more useful information.
>
> # LogLevel: Control the number of messages logged to the error.log.
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> #
> LogLevel warn
>
> -----
>
> Did you change the Options directive for any of the directory
> containers in the config file? To tell you the truth, I'm not sure what
> all the options do, but I've left the ones for my root directory as the
> defaults, and they work as expected. Here they are:

..............snip.............
  #4 (permalink)  
Old 08-12-2004
Ralph
 
Posts: n/a
Default Re: Apache2 PHP mySQL on Win 2000

FYI...here's some info about my conf from "server-info";
--------------
Current Configuration:
PidFile logs/httpd.pid
Timeout 300
MaxRequestsPerChild 0
ServerAdmin webmaster@policing.net
ServerName localhost:80
UseCanonicalName Off
DocumentRoot "C:/www/webroot"
<Directory />
Options FollowSymLinks Indexes +Includes
AllowOverride None
</Directory>
<Directory "C:/www/webroot">
Options Indexes FollowSymLinks +Includes
AllowOverride None
</Directory>
AccessFileName .htaccess
DefaultType text/plain
HostnameLookups Off
ErrorLog logs/error.log
LogLevel debug
ServerTokens Full
ServerSignature On
<Directory "C:/Apache2/icons">
Options Indexes MultiViews
AllowOverride None
</Directory>
<Directory "C:/Apache2/manual">
Options Indexes
AllowOverride None
<Files *.html>
SetHandler type-map
</Files>
</Directory>
<Directory "C:/Apache2/cgi-bin">
AllowOverride None
Options None
</Directory>
AddDefaultCharset ISO-8859-1
<Location /server-status>
SetHandler server-status
</Location>
<Location /server-info>
SetHandler server-info
</Location>

--------------------
Apache/2.0.50 (Win32) Server at localhost Port 80

--------------
thanks again!
Ralph

---------------------->
> Couplea thoughts...
>
> Try changing the error log reporting level to debug or something using
> this directive. Maybe that will give more useful information.
>
> # LogLevel: Control the number of messages logged to the error.log.
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> #
> LogLevel warn
>
> -----

  #5 (permalink)  
Old 08-12-2004
Kees Nuyt
 
Posts: n/a
Default Re: Apache2 PHP mySQL on Win 2000

On 11 Aug 2004 13:52:01 -0700, php4u@pacbell.net (Ralph) wrote:

>I am trying to configure Apache2 on a Windows 2000 server. Apache
>comes up great, and I can see the default index page. But then the
>problem starts; I can't add a page, otherwise I get a 404 error. If I
>edit the index.html page, the newly loaded page shows the edits. But
>if I create a new html or php page (like a phpinfo page), I get the
>"page cannnot be found" 404 error??? How can I edit ther index page,
>and see the edited page, yet fail to see a newly added page????


[snip error log]

Are you sure the newly edited files can be read by the user the
Apache service is running from? Also check the security
attributes of the htdocs directory itself.

HTH

--
) Kees Nuyt
(
c[_]
  #6 (permalink)  
Old 08-12-2004
Jerry Baker
 
Posts: n/a
Default Re: Apache2 PHP mySQL on Win 2000

Ralph wrote:

> Thanks Nil,
>
> I went back and tried your suggested edits. The "debug" level offered
> more information, but still provided the same end product;
> c:/www/webroot/info.php page not found. But I just edited it in that
> directory, so I KNOW its there !! (uugh)
>
> So, back to square 1 - I can see the index.html page, but I am unable
> to view any other pages in a browser (.php, .htm, .html) and receive
> the "cannot find page" error.


What are the Windows security settings on these files and directories?
  #7 (permalink)  
Old 08-13-2004
Peter Chatterton
 
Posts: n/a
Default Re: Apache2 PHP mySQL on Win 2000

Something you might try is:
deselect the "Show friendly HTTP error messages" in the
Tools/Internet Options/Advanced Tab.

click on the "Lan Settings" button in Tools/Internet Options/Connections
Tab, and then deselect "Automatically detect settings"
checkbox.


  #8 (permalink)  
Old 08-31-2004
 
Posts: n/a
Default Re: Apache2 PHP mySQL on Win 2000

firstly: have you added the module php5 tot he load modules ??
mine is
### PHP 5
LoadModule php5_module c:/php/php5apache2.dll

secondly: have you put this line in??
AddType application/x-httpd-php .php this i beleive is so apache knows
what the file is and what to do with it

Then you can try the page with
phpinfo()

Greg

--

" If at first you dont succeed,
destroy all evidence you ever tried....."


"Ralph" <php4u@pacbell.net> wrote in message
news:789f713d.0408111252.2b761e2d@posting.google.c om...
> I am trying to configure Apache2 on a Windows 2000 server. Apache
> comes up great, and I can see the default index page. But then the
> problem starts; I can't add a page, otherwise I get a 404 error. If I
> edit the index.html page, the newly loaded page shows the edits. But
> if I create a new html or php page (like a phpinfo page), I get the
> "page cannnot be found" 404 error??? How can I edit ther index page,
> and see the edited page, yet fail to see a newly added page????
> ------------------
> error log;
> [Wed Aug 11 06:40:52 2004] [notice] Child 652: Child process is
> running
> [Wed Aug 11 06:40:52 2004] [notice] Child 652: Acquired the start
> mutex.
> [Wed Aug 11 06:40:52 2004] [notice] Child 652: Starting 250 worker
> threads.
> [Wed Aug 11 06:44:31 2004] [error] [client 127.0.0.1] File does not
> exist: C:/Apache2/htdocs/test.html
> [Wed Aug 11 06:47:51 2004] [error] [client 127.0.0.1] File does not
> exist: C:/Apache2/htdocs/test.html
> [Wed Aug 11 06:48:59 2004] [error] [client 127.0.0.1] File does not
> exist: C:/Apache2/htdocs/test.html
> ----------------------
> The DocumentRoot is c:/Apache2/htdocs and the html docs are in the
> htdocs directory.
> ----------------------
> Thanks in advance!
> Ralph



 


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

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



All times are GMT +1. The time now is 02:43 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0