php 5 and apache 2
Posted 20 August 2006 - 02:58 PM
The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 482 of E:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load E:/php/php5apache2.dll into server: The specified module could not be found
The path is right though, I added e:\php into my windows path as well.
these are the lines I added into my httpd.conf file per the install.txt for php
LoadModule php5_module "e:/php/php5apache2.dll"
AddType application/x-httpd-php .php
any ideas what I am doing wrong?
Posted 20 August 2006 - 03:01 PM
Anyway, is your php5ts.dll in the same dir as php5apache2.dll?
Posted 20 August 2006 - 03:40 PM
Apache 2.2 and php5.2 don't play nice.
See this thread on apachelounge:
I followed that exactly and apache still fails to load, says
cannot load E:/php/php2apache2.dll into server: The specified module could not be found.
I was just looking, there is no php5_module in the apache2.2/modules directory. where do I get this?
Posted 20 August 2006 - 07:15 PM
The specified module could not be found.
If you don't keep php5ts.dll and php5apache2.dll in the same dir, that is exactly the message you get. So I'll ask you again; are they in the same directory?
Posted 20 August 2006 - 10:34 PM
Posted 22 August 2006 - 11:18 AM
Posted 23 August 2006 - 09:17 PM
so u have got httpd.conf in apache...
u have to have got right few things there
DocumentRoot "whatever where is your source directory with html and php files"
few lines below it is
# This should be changed to whatever you set DocumentRoot to.
<Directory "same directory like above">
after find this line below again:
AddType application/x-gzip .gz .tgz
and write under that this without my notices after slashes //
ScriptAlias /php/ "c:/php/" //directory where is you php look at the SLASHES /
AddType application/x-httpd-php .php .php5 //extension which your files could have
Action application/x-httpd-php "/php/php-cgi.exe" //this is compilator which get your code to work
SetEnv PHPRC "C:/php" //something but again with directory with php
<Directory "C:/php"> //write this stuff as well it is for direcory where is php
AllowOverride None //as u can c there is some permission stuff without that is apache not
Options None //working
Allow from all
ok thats it
doc_root = "path to your document directory same like in apache" with normal backslash c:\xxx
below that few lines find
extension_dir = "c:\php\ext" //its some extension libraries in there change it for your path
now like u writing u have got win 2k3 so i think it s same like XP in directory structure so u have to copy php5ts.dll to c:\WINDOWS
or c:\WINDOWS\SYSTEM32...copy to both u can play with it later..
tahts pretty much it...
dont forget run apache when u trying to test your code
n....have fun...step by step...
ou n dont put in apache conf file that php5apache2.dll like load module cos first -all module have different extension
second-u dont need it when u not running php like a module of apache...
it s just any issue of security about that directory parameters as i found out but...
hmm n php5apache2.dll is in the root directory of php...where is php.ini and php5dt.dll...
did u download that zipped version of php???just unpack it to folder and go...dont install anything (except apache )
hope i helped....
Posted 23 August 2006 - 09:52 PM
Thread closed. doox00 if I've made a mistake please post in the PHPFreaks.com Questions, Comments, & Suggestions forum for this thread to be reopened.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users