Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache installation - beginner stuck! :(

Status
Not open for further replies.

CindyHome

Technical User
May 5, 2005
6
CA
Hi,
I sure hope someone can help.. have been at this all day so far. I have just installed and configured Apache and PHP on Win98.

"Start Apache in Console" appears to run properly and typing localhost in the browser returns:

"If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page."

But when I try to hit: (a file which I made) it returns "File not found". At one point (during trying different configuration settings of php.ini and httpd.conf, the page simply kept trying to load for a loooong time.

Apache service monitor shows no services running (I can't start or stop).

I am using a netgear router.

Hope I have provided all the necessary information,
and that someone can help.

Thanks!
Cindy
 
CindyHome,

You don't mention which version of Apache you have installed. Windows installation and configuration instructions are available at (for 1.x) and
(for 2.x).

In order to access a file in your Apache DocumentRoot, the DocumentRoot directive needs to be set to the absolute path to the file ("C:\path\to\documentroot" for example).

Are you able to access content using the URL
Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Hi Wishdiak,

I have installed:
apache_2.0.54-win32-x86-no_ssl.msi

and
works, but not
When I try this, sometimes the file is not found, sometimes
(after playing with configuration), it wants to open it in Dreamweaver.

Why do I sense I am so close???

Here are my settings....

In httpd.conf:
----------------
DocumentRoot "C:/Apache2/htdocs" (I installed Apache on c:/)

and I added these lines:

ScriptAlias /php/ "c:/php/"
AddType applications/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"

LoadModule php5_module "e:/php/php5apache2.dll"
PHPIniDir "c:/php"


In php.ini, I added these lines:
-----------
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe
 
I don't know if this is your problem, but there is an extra 's' in your httpd.conf:

Code:
AddType application[COLOR=#ff0000]s[/color]/x-httpd-php .php .phtml

Try removing the extra 's' and see if it works.
 
You try to access your php file like this


is this a typo between php-info.php ? There is a [red]/[/red] missing.

By the way you don't need the ScriptAlias it messes everything up i think

Delete every entry in you httpd.conf for php After you backup your file!!!, and try these

Code:
LoadFile "C:\Apache2\bin\php5ts.dll"              [i](If you have this file)[/i]

LoadModule php5_module modules/php5apache2.dll"  [i](be sure you have php5 and not php4)[/i]

AddType application/x-httpd-php .php            [i](As danomac said without the extra 's' )[/i]
Now wherever your foo.php file is it will be handle accordingly


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top