logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.2.6 /PHP 5.2.x on Windows Vista Home Premium
Author
Karthik



Joined: 02 Oct 2007
Posts: 6

PostPosted: Wed 03 Oct '07 16:40    Post subject: Apache 2.2.6 /PHP 5.2.x on Windows Vista Home Premium Reply with quote

I am trying to install Apache 2.2.6 /PHP 5.2.x on Windows Vista Home Premium. I am encountering the following problem. Hereby I put the error info as well as the configuration details. I would be grateful
if someone light on to reslove the problem. I am keep debugging last three days with reading forum mails. But unable to do it... :cry:


when I run, Configure Apache server->test configuration :-
================================================

httpd.exe: Syntax error on line 486 of C:/Apache2.2/conf/httpd.conf: Cannot load
C:/php/php5apache2.dll into server: The specified module could not be found.
Note the errors or messages above, and press the <ESC> key to exit. 16...

When I ran, Control Apache server->start :-
==========================================

httpd.exe: Syntax error on line 486 of C:/Apache2.2/conf/httpd.conf: Cannot load
C:/php/php5apache2.dll into server: The specified module could not be found.
Note the errors or messages above, and press the <ESC> key to exit. 16...


Php5apache2.dll is available:-
==============================
C:\php>dir php5apache2.dll
Volume in drive C is ACER
Volume Serial Number is C8BA-2D89

Directory of C:\php

31/05/2007 09:42 AM 36,925 php5apache2.dll
1 File(s) 36,925 bytes
0 Dir(s) 31,838,400,512 bytes free
httpd.conf:-
=============
LoadModule php5_module "C:/php/php5apache2.dll"
PHPIniDir "c:/php"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Win32DisableAcceptEx



If I changed to php5apache2_2.dll in httpd.conf, I could see
the cmd window closing immediately as soon as I start
either test configuraton / start.
:oops:
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Thu 04 Oct '07 9:13    Post subject: Reply with quote

Code:

LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "c:/php"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


The php5apache2_2.dll is right for apache 2.2.x

try to start apache from the command line (cmd.exe) with

httpd -w

To see errors which might coming up.
Back to top
Karthik



Joined: 02 Oct 2007
Posts: 6

PostPosted: Thu 04 Oct '07 16:01    Post subject: Reply with quote

C:\Users\user>httpd -w
'httpd' is not recognized as an internal or external command,
operable program or batch file.

httpd -w is not recongized.
Please guide me
Crying or Very sad
Back to top
Karthik



Joined: 02 Oct 2007
Posts: 6

PostPosted: Thu 04 Oct '07 16:21    Post subject: Reply with quote

Karthik wrote:
C:\Users\user>httpd -w
'httpd' is not recognized as an internal or external command,
operable program or batch file.

httpd -w is not recongized.
Please guide me
Crying or Very sad


I just removed the PHP related commands from httpd.conf.
I got the follwing error.
====>
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Note the errors or messages above, and press the <ESC> key to exit. 27...
<============

when I see using netstat-n. I got the following
---------->
C:\Users\user>netstat -n

Active Connections

Proto Local Address Foreign Address State
TCP 127.0.0.1:10012 127.0.0.1:49373 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49374 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49375 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49376 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49377 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49378 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49379 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49380 TIME_WAIT
TCP 192.168.1.122:49350 62.194.40.33:80 ESTABLISHED
TCP 192.168.1.122:49351 62.194.40.33:80 ESTABLISHED
TCP 192.168.1.122:49354 209.85.175.166:80 ESTABLISHED
TCP 192.168.1.122:49355 209.85.175.166:80 ESTABLISHED
TCP 192.168.1.122:49358 209.85.143.104:80 ESTABLISHED

C:\Users\user>

Is it possible to run apache2.2.6 without PHP ? I would like to up Apache first, then debug the includion of PHP
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Thu 04 Oct '07 16:58    Post subject: Reply with quote

Please see Programs that may causes apache not running

Of cause you can run apache without PHP if you don't need php.

try netstat -nb to find you which programm is listen on Port 80 if not listed in the List above.
Back to top
Karthik



Joined: 02 Oct 2007
Posts: 6

PostPosted: Fri 05 Oct '07 5:58    Post subject: Reply with quote

C:\Users\user>netstat -nb
The requested operation requires elevation.

If I try to find out the program running on the ports, I am asked to give permission to run the command. I can do the same on Windows XP, But unable to do on Windows Vista program.

I am much worried abut running Apache on Vista possiblity. Please help me.... Shocked
Back to top
Karthik



Joined: 02 Oct 2007
Posts: 6

PostPosted: Fri 05 Oct '07 6:01    Post subject: Reply with quote

Karthik wrote:
C:\Users\user>netstat -nb
The requested operation requires elevation.

If I try to find out the program running on the ports, I am asked to give permission to run the command. I can do the same on Windows XP, But unable to do on Windows Vista program.

I am much worried abut running Apache on Vista possiblity. Please help me.... Shocked


ne more info : If I change listening port number 80 to 801 and start, the command window is closing as soon as I run the start from control apache server
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Fri 05 Oct '07 12:23    Post subject: Reply with quote

You may try with disabled UAC.
Back to top
Karthik



Joined: 02 Oct 2007
Posts: 6

PostPosted: Fri 05 Oct '07 16:26    Post subject: Reply with quote

I got the statistics when I disconnected the internet

=================>
C:\Users\user>netstat -nb

Active Connections

Proto Local Address Foreign Address State
TCP 127.0.0.1:10012 127.0.0.1:49181 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49182 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49183 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49184 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49185 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49186 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49187 TIME_WAIT
TCP 127.0.0.1:10012 127.0.0.1:49188 TIME_WAIT
<========================

When I try to start under Control apache server, a command window is blinked a moment. I am still unable to start apache even without integrating PHP.

Please help me. Thanks in advance Crying or Very sad
Back to top


Reply to topic   Topic: Apache 2.2.6 /PHP 5.2.x on Windows Vista Home Premium View previous topic :: View next topic
Post new topic   Forum Index -> Apache