4 Replies - 3554 Views - Last Post: 25 November 2009 - 12:04 AM

#1 ethereal1m  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 214
  • Joined: 30-June 09

Error when loading php 5.3.1 in Apache 2.2

Post icon  Posted 24 November 2009 - 12:31 AM

Dear all,
I'm trying lo load php into my Apache webserver by creating a config file called httpd-php5.conf with the following content:
LoadModule php5_module "C:\Program Files\PHP\php5apache2_2.dll"
PHPIniDir "C:\Program Files\PHP"

AddType application/x-httpd-php .php



Then in my apache httpd.conf config file I add the following command:
Include conf/httpd-php5.conf



But when I install the Apache service, I got the following error:
Syntax error on line 1 of C:/Program Files/Apache Software Foundation/Apache2.2/
conf/httpd-php5.conf:
Invalid command '\xff\xfeL', perhaps misspelled or defined by a module not included in the server configuration



What kind of error is this?
Regards,
ethereal1m

Is This A Good Question/Topic? 0
  • +

Replies To: Error when loading php 5.3.1 in Apache 2.2

#2 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5247
  • View blog
  • Posts: 27,069
  • Joined: 10-May 07

Re: Error when loading php 5.3.1 in Apache 2.2

Posted 24 November 2009 - 12:33 AM

Quote

Syntax error on line 1 of C:/Program Files/Apache Software Foundation/Apache2.2/
conf/httpd-php5.conf:
Invalid command '\xff\xfeL', perhaps misspelled or defined by a module not included in the server configuration


Can you provide line one of the file?
Was This Post Helpful? 0
  • +
  • -

#3 ethereal1m  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 214
  • Joined: 30-June 09

Re: Error when loading php 5.3.1 in Apache 2.2

Posted 24 November 2009 - 01:08 AM

See, that's the thing, I don't know where does "\xff\xfeL" come from....

Another thing, I just realized when I try to run PHP, I got an error message saying that ntwdblib.dll file is missing. I post it in php subforum:
http://www.dreaminco...h...=141209&hl=
Was This Post Helpful? 0
  • +
  • -

#4 ethereal1m  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 214
  • Joined: 30-June 09

Re: Error when loading php 5.3.1 in Apache 2.2

Posted 24 November 2009 - 10:54 PM

I just fixed the problem. Looks like php config wizard messed up the installation. Also I added modules that weren't necessary for php, which makes the error. Spent a day to figure this out...ouch
Was This Post Helpful? 0
  • +
  • -

#5 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5247
  • View blog
  • Posts: 27,069
  • Joined: 10-May 07

Re: Error when loading php 5.3.1 in Apache 2.2

Posted 25 November 2009 - 12:04 AM

Glad to see you got this figured out :P
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1