Author |
|
Daisy
Joined: 28 Sep 2010 Posts: 10
|
Posted: Mon 06 Dec '10 12:18 Post subject: Request operation failed error |
|
|
Hi
I installed apache server
then i installed php
now when i start apache server i get this error
please help |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 06 Dec '10 15:27 Post subject: |
|
|
How did you setup PHP in your httpd.conf? Which lines did you add? Which version of apache and PHp do you use? |
|
Back to top |
|
samchan
Joined: 05 Dec 2010 Posts: 3
|
Posted: Mon 06 Dec '10 15:48 Post subject: What a Joker I am ! |
|
|
Thanks a Lot Sir ! |
|
Back to top |
|
Daisy
Joined: 28 Sep 2010 Posts: 10
|
Posted: Tue 07 Dec '10 18:53 Post subject: |
|
|
James Blond wrote: | How did you setup PHP in your httpd.conf? Which lines did you add? Which version of apache and PHp do you use? |
Hi
this is httpd.conf file
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\httpd.conf
these lines added
=============================================
LoadModule ssl_module modules/mod_ssl.so
Action application/x-httpd-php "/php/php-cgi.exe"
<IfModule alias_module>
ScriptAlias /php/ "C:/Program Files (x86)/php-5.2.14-Win32/"
</IfModule>
==============================================
apache:2.2 version
php:5.2.14 win 32 |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 07 Dec '10 23:29 Post subject: |
|
|
it doesn't work that way. it is not about mod_ssl
example
Code: |
LoadModule php5_module "c:/php5/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/php5"
|
|
|
Back to top |
|
Daisy
Joined: 28 Sep 2010 Posts: 10
|
Posted: Thu 09 Dec '10 20:30 Post subject: |
|
|
James Blond wrote: | it doesn't work that way. it is not about mod_ssl
example
Code: |
LoadModule php5_module "c:/php5/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/php5"
|
|
should i delete ssl module
please explain step by step code to add in the file |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 09 Dec '10 23:39 Post subject: |
|
|
Hi Daisy,
Daisy wrote: | should i delete ssl module |
No, mod_ssl is not the problem as James said. If you want to run Apache, encrypted using ssl (https://) then you must load mod_ssl.
The problem is these line;.
Daisy wrote: | these lines added
=============================================
LoadModule ssl_module modules/mod_ssl.so
Action application/x-httpd-php "/php/php-cgi.exe"
<IfModule alias_module>
ScriptAlias /php/ "C:/Program Files (x86)/php-5.2.14-Win32/"
</IfModule>
============================================== |
1st, a ScriptAlias would be a place you put .php scripts in, it would use a URL like
http://localhost/php/myscript.php
I don't think you want that, but maybe you do. However, for the time being, remove or comment out the IfModule/ScriptAlias stuff in dark red.
The bright red line is wrong completely. It does however beg the question of where is PHP installed on your system?
C:\php
or
C:\Program Files (x86)\php-5.2.14-Win32
Assuming you have it installed in C:\php, then what you want is to delete the red line, and add;
Code: | LoadModule php5_module "c:/php/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/php" |
If php is installed in C:\Program Files (x86)\php-5.2.14-Win32,
change the c:/php in the above to C:/Program Files (x86)/php-5.2.14-Win32 in the code above |
|
Back to top |
|
Daisy
Joined: 28 Sep 2010 Posts: 10
|
Posted: Fri 10 Dec '10 1:24 Post subject: |
|
|
I have added the code as said like this but still i get the request operation failed error
i have added like this
LoadModule ssl_module modules/mod_ssl.so
LoadModule php5_module "C:/Program Files (x86)/php-5.2.14-Win32/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/Program Files (x86)/php-5.2.14-Win32" |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 10 Dec '10 1:34 Post subject: |
|
|
And error log says? |
|
Back to top |
|
Daisy
Joined: 28 Sep 2010 Posts: 10
|
Posted: Fri 10 Dec '10 2:13 Post subject: |
|
|
this is the error log
[Sun Dec 05 11:31:31 2010] [notice] Child 1684: Child process is running
[Sun Dec 05 11:31:31 2010] [notice] Child 1684: Acquired the start mutex.
[Sun Dec 05 11:31:31 2010] [notice] Child 1684: Starting 64 worker threads.
[Sun Dec 05 11:31:31 2010] [notice] Child 1684: Starting thread to listen on port 80.
[Sun Dec 05 17:03:00 2010] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
[Sun Dec 05 17:03:00 2010] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
[Sun Dec 05 17:03:03 2010] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
[Sun Dec 05 17:37:13 2010] [notice] Parent: Received restart signal -- Restarting the server.
[Sun Dec 05 17:37:13 2010] [notice] Child 1684: Exit event signaled. Child process is ending.
httpd.exe: Syntax error on line 129 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files (x86)/Apache Software Foundation/Apache2.2/modules/mod_ssl.so into server: The specified module could not be found.
[Sun Dec 05 17:37:13 2010] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed.
[Sun Dec 05 17:37:14 2010] [notice] Child 1684: Released the start mutex
[Sun Dec 05 17:37:15 2010] [notice] Child 1684: All worker threads have exited.
[Sun Dec 05 17:37:15 2010] [notice] Child 1684: Child process is exiting |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 10 Dec '10 12:10 Post subject: |
|
|
ok,
I didn't know you had a no-ssl version.
comment out the LoadModule for mod_ssl
#LoadModule ssl_module modules/mod_ssl.so |
|
Back to top |
|