Discussion:
[PHP-INSTALL] LoadModule statement can not be included
Varuna Seneviratna
2008-09-10 03:37:30 UTC
Permalink
Hello!
I downloaded and installed apache_2.2.9 on WinXP and It worked
fine.Then I downloaded php-5.2.6-Win32.zip and extracted it's contents to
c:\php folder.
I renamed the php.ini-dist to php.ini and saved it in the directory
WINDOWS But left the php.ini-dist at php folder, copied php5ts.dll into
c:\windows\system32 But I left the original at the php folder
Went to httpd.conf file and added the following lines
*AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
*
Up to this point everything worked fine.I restated apache several
times no error messages were displayed

Then added the line
* LoadModule php5_module "c:/php/sapi/php5apache2.dll"*
After this line was added when apache was stopped and restarted the
message *"operation failed"* was displayed

Any help will be grateful

Thanks Varuna
--
Varuna Seneviratna
No 514 Udumulla Road
Battaramulla
Sri Lanka
Tel : 011-2888620
Mobile:0715617141
Jack van Zanen
2008-09-10 05:41:17 UTC
Permalink
Try





LoadModule php5_module "c:/php/sapi/php5apache2_2.dll"



Jack





From: Varuna Seneviratna [mailto:***@gmail.com]
Sent: Wednesday, September 10, 2008 1:38 PM
To: php-install
Subject: [PHP-INSTALL] LoadModule statement can not be included



Hello!
I downloaded and installed apache_2.2.9 on WinXP and It worked fine.Then I downloaded php-5.2.6-Win32.zip and extracted it's contents to c:\php folder.
I renamed the php.ini-dist to php.ini and saved it in the directory WINDOWS But left the php.ini-dist at php folder, copied php5ts.dll into c:\windows\system32 But I left the original at the php folder
Went to httpd.conf file and added the following lines
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Up to this point everything worked fine.I restated apache several times no error messages were displayed

Then added the line
LoadModule php5_module "c:/php/sapi/php5apache2.dll"


After this line was added when apache was stopped and restarted the message "operation failed" was displayed

Any help will be grateful

Thanks Varuna
--
Varuna Seneviratna
No 514 Udumulla Road
Battaramulla
Sri Lanka
Tel : 011-2888620
Mobile:0715617141
Tommy Peterson
2008-09-10 11:06:46 UTC
Permalink
Also you should have to add the DLLs to the Windows directories. Leaving
them in the PHP directory should work just fine. Creating many copies of
those files could be a headache later if you do upgrades.
Post by Varuna Seneviratna
Try
LoadModule php5_module "c:/php/sapi/php5apache2_2.dll"
Jack
From: Varuna Seneviratna [mailto:***@gmail.com]
Sent: Wednesday, September 10, 2008 1:38 PM
To: php-install
Subject: [PHP-INSTALL] LoadModule statement can not be included
Hello!
I downloaded and installed apache_2.2.9 on WinXP and It worked
Post by Varuna Seneviratna
fine.Then I downloaded php-5.2.6-Win32.zip and extracted it's contents to
c:\php folder.
I renamed the php.ini-dist to php.ini and saved it in the
Post by Varuna Seneviratna
directory WINDOWS But left the php.ini-dist at php folder, copied
php5ts.dll into c:\windows\system32 But I left the original at the php
folder
Went to httpd.conf file and added the following lines
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Up to this point everything worked fine.I restated apache
Post by Varuna Seneviratna
several times no error messages were displayed
Then added the line
LoadModule php5_module "c:/php/sapi/php5apache2.dll"
After this line was added when apache was stopped and restarted the
Post by Varuna Seneviratna
message "operation failed" was displayed
Any help will be grateful
Thanks Varuna
--
Varuna Seneviratna
No 514 Udumulla Road

Battaramulla

Sri Lanka

Tel : 011-2888620

Mobile:0715617141





____________________________

Tommy Peterson,

NCEE/AC/NISL Web Developer/DBA

555 13th St, NW

Washington, DC 20004

Telephone:

(o) 202-783-3668 X2146

(c) 703-608-6898
Loading...