LoadModule statement can not be included

LoadModule statement can not be included

am 10.09.2008 06:03:43 von Varuna Seneviratna

------=_Part_12458_29626806.1221019423295
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

------=_Part_12458_29626806.1221019423295--

Re: LoadModule statement can not be included

am 10.09.2008 21:50:09 von bitslayer

--NextPart_Webmail_9m3u9jl4l_2949_1221076209_0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

Hi Varuna,

I have PHP/Apache 2.2.8 on Vista running. On my drive, PHP is installed in C:\PHP and Apache is installed in C:\Apache. Looking over your details, I am concerned about the "Load Module..." line and the "sapi" in the PHP path. Was that intended? Also, you may also want to change the dll used to load PHP.

Here is how my httpd.conf file reads:
LoadModule php5_module "C:/php/php5apache2_2.dll"

And at the end of the httpd.conf file:
PHPIniDir "C:/PHP/"

That last line, of course, ensures that Apache uses the INI file in the PHP directory.

I hope this helps!!

Jeff


-------------- Original message --------------
From: "Varuna Seneviratna"

> 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
--NextPart_Webmail_9m3u9jl4l_2949_1221076209_0--

Re: LoadModule statement can not be included

am 11.09.2008 02:36:40 von Niel Archer

> 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

I hope the asterisks were for effect, not actually part of your line.
AFAIR there is no longer a 'sapi' directory, so it should be
this:

LoadModule php5_module "c:/php/php5apache2.dll"

> Any help will be grateful
>
> Thanks Varuna
>
>
> --
> Varuna Seneviratna
> No 514 Udumulla Road
> Battaramulla
> Sri Lanka
> Tel : 011-2888620
> Mobile:0715617141

--
Niel Archer



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php