Syntax error apache 1.3

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mrrobotto
Forum Commoner
Posts: 40
Joined: Thu Sep 26, 2002 9:30 pm
Contact:

Syntax error apache 1.3

Post by mrrobotto »

I am still trying to get php4 to work with apache 1.3. I installed the module I have followed the instructions from the install file that is contained in the php4. When I run the test I get the following message.

Syntax error on line 193 of C:/program files/apache group/apache/conf/httpd.conf
Cannot load C:/php/sapi/php4apache.dll(1157) One of the library files needed to run this application cannot be found

I copied the conif file in to a text editor and got the line item that way hell you would go cross eyed trying to count the lines. I don’t know if this is the actual line but it seems that it should be right although I’m not 100% sure. Anyhow according to the text editor line 193 is LoadModule php4_module c:/php/sapi/php4apache.dll.

So if I understand this syntax error correctly it is telling me that the file may not have gotten downloaded with the application when I downloaded it. Also it doesn’t tell you which file it is which kind of blows how are you suppose to know which file is missing if it doesn’t tell you.

The way that I understand it is that I must download it again to try and get the missing file. As far as I can tell I have done everything correctly but the computer is not agreeing with me. There is one thing that is not to clear to me is that it states in the install instructions to change the directions of the slashes. Does it mean to change them in windows or what? I don’t know if would recognize them in the directory line eg C:/windows/whatever/whatever is this what it is referring to.

I guess you can tell that I am having a real DUH in this area. Changing the subject a little I am getting tired and as I was typing this and doing the eg I still had the shift key depressed while I was doing the C:\ and the C stayed and the : \ changed to a sad face I didn’t know it would do that so I guess that qualifies as a sha zam!!! Back to the subject any help with this will be greatly appreciated. TIA
:(
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

/ is fine, don't change it to \
are you sure php4apache.dll is in C:/php/sapi?
search this file (i.e. with Explorer) and change the path in php.ini accordingly.
If another .dll your php-configuration depends on is not found you will get an error-message-window telling you which file was missing and where windows was looking for it
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Are you sure you've got the right version of php4sapi.dll? Just for interest I use Apache2 and my line in the httpd.conf is like this:-

Code: Select all

LoadModule php4_module c:/php/sapi/php4apache2.dll
   AddType application/x-httpd-php .php
Horst
Forum Newbie
Posts: 1
Joined: Sat Nov 16, 2002 6:16 am

Apache 2 and PHP 4.2.3

Post by Horst »

Hi Takuma!
Takuma wrote:

Code: Select all

LoadModule php4_module c:/php/sapi/php4apache2.dll
   AddType application/x-httpd-php .php
If I do this, I get the following error:
Apache.exe: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is not
compatible with this version of Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.

What am I doing wrong?

Thanx
Horst
Post Reply