| Author | 
  | 
ivanusto
 
 
  Joined: 13 Jan 2006 Posts: 7
 
  | 
 Posted: Fri 13 Jan '06 23:32    Post subject: apache 2.2 and php 5.1.2 | 
     | 
 
  | 
 
how could i make the work?
 
 
in 2.0.55 it works
 
 
but i download the 2.2 form here, the default.conf is so strange if i add 
 
 
LoadModule php5_module "C:/php/php5apache2.dll"
 
 
apache 2.2 crashed , can't work.
 
 
cuold you teach me how to solve it?
 
   | 
 
  | 
| Back to top | 
 | 
Steffen Moderator
 
  Joined: 15 Oct 2005 Posts: 3131 Location: Hilversum, NL, EU
  | 
 Posted: Fri 13 Jan '06 23:37    Post subject:  | 
     | 
 
  | 
 
Any error message in the logs ?
 
 
Start httpd.exe in a DOS box and see what the error is.
 
 
Steffen | 
 
  | 
| Back to top | 
 | 
ivanusto
 
 
  Joined: 13 Jan 2006 Posts: 7
 
  | 
 Posted: Fri 13 Jan '06 23:41    Post subject:  | 
     | 
 
  | 
 
 	  | Steffen wrote: | 	 		  Any error message in the logs ?
 
 
Start httpd.exe in a DOS box and see what the error is.
 
 
Steffen | 	  
 
 
it seems php5apache2.dll could not be loaded.
 
 
how do you make default.conf with php5?
 
 
i found apache 2.2 , it contans many *.conf in conf diretory.. | 
 
  | 
| Back to top | 
 | 
Steffen Moderator
 
  Joined: 15 Oct 2005 Posts: 3131 Location: Hilversum, NL, EU
  | 
 Posted: Fri 13 Jan '06 23:51    Post subject:  | 
     | 
 
  | 
 
For Apache 2.2.0 you have to use the php5apache2.dll which is at the download page here (php5apache2.dll-php5.1.2-2.2.0.zip). How to install is in the zip. 
 
 
Steffen | 
 
  | 
| Back to top | 
 | 
ivanusto
 
 
  Joined: 13 Jan 2006 Posts: 7
 
  | 
 Posted: Fri 13 Jan '06 23:59    Post subject:  | 
     | 
 
  | 
 
 	  | Steffen wrote: | 	 		  For Apache 2.2.0 you have to use the php5apache2.dll which is at the download page here (php5apache2.dll-php5.1.2-2.2.0.zip). How to install is in the zip. 
 
 
Steffen | 	  
 
 
thx!!
 
it works, but why if we need the msvcr80.dll and Microsoft.VC80.CRT.manifest?
 
 
cz form apache.org, they seems don't hava such things.
 
 
and last, if i want turn off ssl, just mark the modules? | 
 
  | 
| Back to top | 
 | 
Steffen Moderator
 
  Joined: 15 Oct 2005 Posts: 3131 Location: Hilversum, NL, EU
  | 
 Posted: Sat 14 Jan '06 0:18    Post subject:  | 
     | 
 
  | 
 
It is build with VC++ 2005 (the one from apache.org with an older compiler) which has improvements in Performance, MemoryManagement etc. I have reports that the optimizer improves the performance quite significantly.
 
 
Just  do not enable the SSL module:
 
 
#LoadModule ssl_module modules/mod_ssl.so
 
 
Steffen | 
 
  | 
| Back to top | 
 | 
ivanusto
 
 
  Joined: 13 Jan 2006 Posts: 7
 
  | 
 Posted: Sat 14 Jan '06 0:51    Post subject:  | 
     | 
 
  | 
 
thx Steffen, and it works!
 
 
how about the RotateLogs you made? is it different with RotateLog.exe?
 
 
RotateLogs On 
 
RotateLogsLocalTime On
 
RotateInterval 86400
 
i put in the same modules directory | 
 
  | 
| Back to top | 
 | 
Steffen Moderator
 
  Joined: 15 Oct 2005 Posts: 3131 Location: Hilversum, NL, EU
  | 
 Posted: Sat 14 Jan '06 14:05    Post subject:  | 
     | 
 
  | 
 
I did not made mod_log_rotate, just build it. A readme is included in the .zip
 
 
For more info see: www.hexten.net/mod_log_rotate/
 
 
Steffen | 
 
  | 
| Back to top | 
 | 
Kenny80
 
 
  Joined: 15 Jan 2006 Posts: 1
 
  | 
 Posted: Sun 15 Jan '06 13:43    Post subject:  | 
     | 
 
  | 
 
I had same problem first as ivanusto with php5apache2.dll and now it works for me to but i got another problem!
 
 
PHP Warning:  PHP Startup: Unable to load dynamic library 'D:\\Web\\Apache22\\php\\ext\\php_mysql.dll' - The specified procedure could not be found.\r\n in Unknown on line 0
 
 
this is what i see in error.log, i'm using latest php 5.1 with your apache2 dll fix, but the php_mysql is there, still i get error, beacuse of that i can't run php nuke or anything that needs mysql , just get blank page, nothing else and i see following errors in error.log
 
 
PHP Notice:  Undefined variable: HTTP_SERVER_VARS in E:\\WWW_ROOT\\html\\mainfile.php on line 47
 
PHP Notice:  import_request_variables() [<a href='function.import-request-variables'>function.import-request-variables</a>]: No prefix specified - possible security hazard in E:\\WWW_ROOT\\html\\mainfile.php on line 64
 
PHP Notice:  Undefined variable: HTTP_SERVER_VARS in E:\\WWW_ROOT\\html\\mainfile.php on line 47
 
PHP Notice:  import_request_variables() [<a href='function.import-request-variables'>function.import-request-variables</a>]: No prefix specified - possible security hazard in E:\\WWW_ROOT\\html\\mainfile.php on line 64
 
 
and i got another problem with this code below, problay easy fix for apache guru's!
 
 
Alias /forum/ "E:/WWW_ROOT/phpBB2"
 
 
<Directory "E:/WWW_ROOT/phpBB2">
 
    Options -Indexes MultiViews
 
    AllowOverride None
 
    Order allow,deny
 
    Allow from all
 
</Directory>
 
 
when i try access forum on my server i get following error!
 
 
Forbidden
 
 
You don't have permission to access /forum/ on this server.
 
 
just does 2 errors currently really pissing me off    | 
 
  | 
| Back to top | 
 | 
Steffen Moderator
 
  Joined: 15 Oct 2005 Posts: 3131 Location: Hilversum, NL, EU
  | 
 Posted: Sun 15 Jan '06 14:13    Post subject:  | 
     | 
 
  | 
 
Did you copied libmySQL.dll from the mysql.bin folder to the windows folder ?
 
 
The other question you have, does not fit in the topic-title , so please open a new topic.
 
 
Steffen | 
 
  | 
| Back to top | 
 | 
ivanusto
 
 
  Joined: 13 Jan 2006 Posts: 7
 
  | 
 Posted: Mon 16 Jan '06 10:24    Post subject:  | 
     | 
 
  | 
 
thx Steffen, i solve all problem since apache 2.2.0 on my site.
 
 
rotatelog also works, i can pick the cronolog.exe to recycle bin. | 
 
  | 
| Back to top | 
 |