|
Home > Archive > Apache Server configuration support > January 2007 > Apache Conf Failing
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 |
Apache Conf Failing
|
|
| bruceaj 2007-01-08, 7:26 pm |
| My Apache2 installation runs fine before I configure it for PHP. It
then fails. I followed the steps as laid out in
http://minitutorials.com/apache/apache_222_2.shtml
The config fails on the command:
LoadModule php4_module c:/PHP/php4apache2.dll
When I restart Apache2, I get an error dialog message "Requested
operation has failed."
I comment out the above statement, Apache2 will restart okay.
Where should I look to find my configuration mistake? Does Apache log
the reason for the above failure?
Thanks....
| |
| shimmyshack 2007-01-08, 7:26 pm |
|
bruceaj wrote:
> My Apache2 installation runs fine before I configure it for PHP. It
> then fails. I followed the steps as laid out in
> http://minitutorials.com/apache/apache_222_2.shtml
>
> The config fails on the command:
>
> LoadModule php4_module c:/PHP/php4apache2.dll
>
> When I restart Apache2, I get an error dialog message "Requested
> operation has failed."
>
> I comment out the above statement, Apache2 will restart okay.
>
> Where should I look to find my configuration mistake? Does Apache log
> the reason for the above failure?
first check the event log using eventvwr or the error.log then perhaps
start using php4apache2_2.dll if you have it as the above is probably
for apache 2.0 rather than 2.2 which you are using - since you followed
the tutorial for 2.2 although you havent specified the apahce version
so I could be wrong.
look for your php.ini file.
this is where the php settings are configured, chances are that you
will find this file in either the apache/bin
php or
perhaps the %system% directory
make sure the setings are reasonable for your computer
>
> Thanks....
| |
| bruceaj 2007-01-09, 2:00 am |
|
shimmyshack wrote:[vbcol=seagreen]
> bruceaj wrote:
>
> first check the event log using eventvwr or the error.log then perhaps
> start using php4apache2_2.dll if you have it as the above is probably
> for apache 2.0 rather than 2.2 which you are using - since you followed
> the tutorial for 2.2 although you havent specified the apahce version
> so I could be wrong.
>
> look for your php.ini file.
> this is where the php settings are configured, chances are that you
> will find this file in either the apache/bin
> php or
> perhaps the %system% directory
>
> make sure the setings are reasonable for your computer
>
>
Thanks for the response. I have been doing some reading on Apache/PHP
and found a sentence that implied that Apache 2.2 and php 4.4.4 don't
go together. Do you know if this is correct? I'm going to assume it is.
Bruce
| |
| shimmyshack 2007-01-09, 7:34 am |
|
bruceaj wrote:
> shimmyshack wrote:
>
> Thanks for the response. I have been doing some reading on Apache/PHP
> and found a sentence that implied that Apache 2.2 and php 4.4.4 don't
> go together. Do you know if this is correct? I'm going to assume it is.
you can the handler from somewhere like apache lounge which is a great
place for other stuff too:
http://www.apachelounge.com/download/
make sure you get the 2.2.x 4.4.4 dll
I personally dont use the 4.x branch of php because I want to support
the developers by using the latest 5.x branch - the more that use the
latest the less time they spend maintaining the older release.
>
> Bruce
| |
| bruceaj 2007-01-09, 7:28 pm |
|
shimmyshack wrote:[vbcol=seagreen]
> bruceaj wrote:
>
> you can the handler from somewhere like apache lounge which is a great
> place for other stuff too:
> http://www.apachelounge.com/download/
>
> make sure you get the 2.2.x 4.4.4 dll
>
> I personally dont use the 4.x branch of php because I want to support
> the developers by using the latest 5.x branch - the more that use the
> latest the less time they spend maintaining the older release.
>
>
Okay. I'm still can't get php to run. I've upgraded my installation to
5.2. Apache 2.2.3 runs fine without any php additions.
1) I added my php directory, C:/PHP5, to my PATH
2) I copied php.ini-recommended to my C:/windows directory and renamed
it php.ini
3) I made the following changes to PHP.ini
doc_root = "c:\inetpub\wwwroot"
extension_dir = "c:/php5/ext"
4) I made the following changes to Httpd.conf
After the last entry in the LoadModule section:
LoadModule php5_module "c:/php5/php5apache.dll"
AddModule mod_php5.c
If I comment out the above two statemens, Apache will start.
In the <IfModule mime_module> Section, I added
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
And that's it.
When I restart Apache, I get an error dialog with the message:
The requested operation has failed.
What have I missed or done wrong?
Thanks for the help...
Bruce
| |
| Robert Melson 2007-01-10, 1:33 am |
| In article <1168391669.930161.258070@p59g2000hsd.googlegroups.com>,
"bruceaj" <bruceaj@bellsouth.net> writes:
>
<snip>
> Okay. I'm still can't get php to run. I've upgraded my installation to
> 5.2. Apache 2.2.3 runs fine without any php additions.
> 1) I added my php directory, C:/PHP5, to my PATH
> 2) I copied php.ini-recommended to my C:/windows directory and renamed
> it php.ini
> 3) I made the following changes to PHP.ini
> doc_root = "c:\inetpub\wwwroot"
> extension_dir = "c:/php5/ext"
> 4) I made the following changes to Httpd.conf
> After the last entry in the LoadModule section:
>
> LoadModule php5_module "c:/php5/php5apache.dll"
> AddModule mod_php5.c
>
> If I comment out the above two statemens, Apache will start.
>
> In the <IfModule mime_module> Section, I added
>
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php.exe"
>
> And that's it.
>
> When I restart Apache, I get an error dialog with the message:
>
> The requested operation has failed.
>
> What have I missed or done wrong?
>
> Thanks for the help...
>
> Bruce
>
Errrr, at the risk of sounding dumb - I'm NOT a windows user -
shouldn't those forward slashes (/) be back slashes (\)? Could it
be that the files aren't found because of that and you're failing
as a result?
Inquiring minds want to know.
Bob Melson
--
Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
-----
"People unfit for freedom---who cannot do much with it---are
hungry for power." ---Eric Hoffer
| |
| bruceaj 2007-01-10, 7:22 am |
|
Robert Melson wrote:
> In article <1168391669.930161.258070@p59g2000hsd.googlegroups.com>,
> "bruceaj" <bruceaj@bellsouth.net> writes:
> <snip>
>
> Errrr, at the risk of sounding dumb - I'm NOT a windows user -
> shouldn't those forward slashes (/) be back slashes (\)? Could it
> be that the files aren't found because of that and you're failing
> as a result?
>
> Inquiring minds want to know.
>
> Bob Melson
>
> --
> Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
> -----
> "People unfit for freedom---who cannot do much with it---are
> hungry for power." ---Eric Hoffer
Thanks for the suggestion. Could someone who knows the PHP/Apache
configuration take a look and see what I'm doing wrong... Thanks....
Bruce
| |
| shimmyshack 2007-01-10, 7:31 pm |
|
bruceaj wrote:
> Robert Melson wrote:
>
> Thanks for the suggestion. Could someone who knows the PHP/Apache
> configuration take a look and see what I'm doing wrong... Thanks....
>
are you getting a greater degree of error reporting in error.log
messages from apache, or in the event viewer? The error you are quoting
is apahc esetup specific, it is just the service manager stating that
it couldnt start the service.
start->cmd->eventvwr will contain the line number and some more detail
about the problem.
php5 on apache 2.2 doesnt need the addmodule line just the loadmodule
line
also my httpd.conf just has
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
but yours should work anyway.
the php.ini file odesnt have to be in windows, just in the path, in
fact the php.ini file will probably be searched for first in apache/bin
then c:/php5 then windows, despite your path order.
Take a look at the error log or event viewer and get back to us.
You could just download a version already configured like
apachefriends.de/xampp, be warned though xampp is a development
version, you will have to be prepared to lock it down if you intend to
use it for production, but it will probably work immediately!
> Bruce
| |
| shimmyshack 2007-01-10, 7:31 pm |
| sorry,
is apahc esetup specific
should have read
isnt apache specific
| |
| shimmyshack 2007-01-10, 7:31 pm |
|
shimmyshack wrote:[vbcol=seagreen]
> bruceaj wrote:
sorry to be a pain, actually your line
[vbcol=seagreen]
wont work as you are running php from within apache, as a module rather
than as a separate executable, (if you eventually get it running the
taskmanager will show only apache processes no php process)
so just miss off that line.
you are not far away from having a running php5 intepreter, just
perseverve and forgive my bad responses.
|
|
|
|
|