|
Home > Archive > Apache Server configuration support > August 2006 > problems with install, please help
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
problems with install, please help
|
|
|
| Hi, I am a total newbie to php and apache, and am only seeing code in my
browser.
I'm running windows xp, php4 and apache 2.2. I've done all the putting files
in the right places and editing the httpd.conf adding a Load_module,
AddType and DirectoryIndex. I'm saving the php file in htdocs folder of
Apache.
I've tested the apache installation by entering http://localhost, and was
getting the confirmation that that is installed and running ok, but now, for
no reason I can fathom (I've changed nothing today, so far as I remember), I
get a Microsoft Internet Explorer error window saying 'Internet Explorer
cannot download / from localhost. Internet was not able to open this
Internet site. The requested site is either unavailable or cannot be found.
Please try again later. '
I've been hunting everywhere to try and get this answered, so really hope
someone out there somewhere can come up with an answer - I want to get on
with learning this stuff!!
Thanks in advance for any help
| |
| Chris Lilley 2006-07-11, 8:18 am |
| tao wrote:
> Hi, I am a total newbie to php and apache, and am only seeing code in my
> browser.
>
> I'm running windows xp, php4 and apache 2.2. I've done all the putting files
> in the right places and editing the httpd.conf adding a Load_module,
> AddType and DirectoryIndex. I'm saving the php file in htdocs folder of
> Apache.
Sounds OK so far. Might be worth posting those snippets of your config
just in case...
> I've tested the apache installation by entering http://localhost, and was
> getting the confirmation that that is installed and running ok, but now, for
> no reason I can fathom (I've changed nothing today, so far as I remember), I
> get a Microsoft Internet Explorer error window saying 'Internet Explorer
> cannot download / from localhost. Internet was not able to open this
> Internet site. The requested site is either unavailable or cannot be found.
> Please try again later. '
Forgive me for stating the obvious, but let's get the dumb questions out
of the way first... Sounds like the server's not running any more. You
haven't rebooted the machine in between have you? You'll need to make
sure that there's something to start it up if you do (I'm afraid I've
only ever run Apache under Linux, so I can't claim to be an XPert.
You could try opening a command window and running 'telnet localhost
80'. If telnet is able to open a session, then you can type:
GET / HTTP/1.0
followed by two carriage returns, which ought to return you the HTML for
the home page you saw before.
If telnet can't open a connection, then your server's not running, at
least not on the port you're expecting.
> I've been hunting everywhere to try and get this answered, so really hope
> someone out there somewhere can come up with an answer - I want to get on
> with learning this stuff!!
There are all sorts of other possibilities - d'you have IIS running too?
A conflict could cause Apache not to start.
Go look in the log files & see what's happening. Try setting LogLevel to
debug in your apache conf for a little more info.
HTH. With luck you'll have it sussed by now anyway.
-Chrisl
| |
| uwjester@gmail.com 2006-07-12, 7:30 am |
| Hi,
This is nearly the exact problem I would have posted. I am also just
learning apache/php/mysql and am trying to get the server and tools set
up. I think the problem I am having is the same. I think I tracked the
culprit down to the httpd.conf file. I added a line in the LoadModule
section that looks like
LoadModule php5_module "c:php/php5apache2.dll"
When I restart the apache server after adding this line, I get an error
that says "Cannot load C:/php/php5apache2.dll into server: The
specefied module could not be found."
All of the other items in this list are .so extension files (shared
object in Unix?). Is a .dll file apropriate here? Everything I have
found on the web suggests this is the correct line to add.
Thank you for any help you might be able to provide.
| |
| uwjester@gmail.com 2006-07-12, 7:30 am |
| Sorry to post again, but the line looks like
LoadModule php5_module "c:/php/php5apache2.dll". The slash _is_ there
in the .conf file.
uwjes...@gmail.com wrote:
> Hi,
> This is nearly the exact problem I would have posted. I am also just
> learning apache/php/mysql and am trying to get the server and tools set
> up. I think the problem I am having is the same. I think I tracked the
> culprit down to the httpd.conf file. I added a line in the LoadModule
> section that looks like
> LoadModule php5_module "c:php/php5apache2.dll"
> When I restart the apache server after adding this line, I get an error
> that says "Cannot load C:/php/php5apache2.dll into server: The
> specefied module could not be found."
> All of the other items in this list are .so extension files (shared
> object in Unix?). Is a .dll file apropriate here? Everything I have
> found on the web suggests this is the correct line to add.
>
> Thank you for any help you might be able to provide.
| |
| IchBin 2006-07-12, 7:30 am |
| uwjester@gmail.com wrote:
> Sorry to post again, but the line looks like
> LoadModule php5_module "c:/php/php5apache2.dll". The slash _is_ there
> in the .conf file.
>
> uwjes...@gmail.com wrote:
>
Yes the DLL is correct. I'm on windoze also. My php home is
"C:/php-5.1.4" I add the following to the config.
LoadModule php5_module "C:/php-5.1.4/php5apache2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
# configure the path to php.ini
PHPIniDir "C:/php-5.1.4"
SetEnv PHPRC "C:/php-5.1.4"
If you want some nice instruction check out this link:
http://www.tanguay.at/installPhp5.php5
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
________________________________________
__________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
| |
| uwjester@gmail.com 2006-07-12, 1:23 pm |
| I appreciate the help. Still no luck though. I have all 5 lines you
mentioned in the .conf file but I still get the "Cannot load
C:/php/php5apache2.dll into server: The
specefied module could not be found." error. Could there be some kind
of permissions problem? I have tried renaming the php directory to
other names. I have even tried putting the .dll file in C:/ and loading
it from there. No luck either way.
One other interesting aspect is the default web page that Apache is
showing. It doesn't give me the web page that is shown in the link you
suggested (same as the book I'm working from). Instead, it just pops up
"It Works" (when I comment out the LoadModule line). I found the
index.html file that contains this in htdocs, so I think the server is
running. It just seems odd that all references I have found so far
suggest the same, different page.
| |
| uwjester@gmail.com 2006-07-12, 1:23 pm |
| I believe I found the problem. I installed Apache server 2.2.2 rather
than the suggested 2.0.58. I think the module that comes with the php
distribution is compiled for 2.0.x. That may explain why it doesn't
load. I won't know until I try again tonight, but if this fixes my
problem, hopefully it will fix the original poster's problem as well.
Scott
| |
| Ghost.Squadron@gmail.com 2006-07-19, 1:28 am |
| I wanted to confirm, that using the 2.0.58 installer works. I had the
same problem. And originally installed 2.2.2. This thread revealed the
issue. Thanks all!
uwjester@gmail.com wrote:
> I believe I found the problem. I installed Apache server 2.2.2 rather
> than the suggested 2.0.58. I think the module that comes with the php
> distribution is compiled for 2.0.x. That may explain why it doesn't
> load. I won't know until I try again tonight, but if this fixes my
> problem, hopefully it will fix the original poster's problem as well.
>
> Scott
| |
| mary2511 2006-08-01, 7:28 pm |
|
Ghost.Squadron@gmail.com wrote:[vbcol=seagreen]
> I wanted to confirm, that using the 2.0.58 installer works. I had the
> same problem. And originally installed 2.2.2. This thread revealed the
> issue. Thanks all!
>
>
> uwjester@gmail.com wrote:
This info was in the more current php online manual....
Apache 2.2.x Support: Users of Apache 2.2.x may use the documentation
below except the appropriate DLL file is named php5apache2_2.dll and it
only exists as of php 5.2.0. See also http://snaps.php.net/
http://www.php.net/manual/en/instal...ows.apache2.php
|
|
|
|
|