logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Cannot load d:/php514/php5apache2.dll into server: Page 1, 2  Next
Author
Elwyn



Joined: 22 May 2006
Posts: 2

PostPosted: Mon 22 May '06 23:58    Post subject: Cannot load d:/php514/php5apache2.dll into server: Reply with quote

I followed the instructions at http://www.apachelounge.com/viewtopic.php?t=374 as I have a similar set up to you - brand new install of XPSP2 etc.

After following the procedure I couldn't restart the Apache server - the following error occurs:

httpd.exe: Syntax error on line 486 of D:apache2/conf/httpd.conf: Cannot load d:/php514/php5apache2.dll into server: The specified module could not be found

I'm fairly new to modifying the code of files but I followed your pdf to the letter and also installed the VC++ redist.

Many thanks

Liam
Back to top
pips



Joined: 03 May 2006
Posts: 65
Location: Manchester, UK

PostPosted: Tue 23 May '06 12:50    Post subject: Reply with quote

First thing to check is that when you extracted the new DLL file from Steffen's zip that you extracted it to the correct folder, ie. d:\php514 and that the filename has not changed.
Back to top
Elwyn



Joined: 22 May 2006
Posts: 2

PostPosted: Tue 23 May '06 20:37    Post subject: Reply with quote

Apologies. It was an error on my part - I missed a crucial '/' out of the command line. Appears to be working now - many thanks for the tips provided.

Liam
Back to top
Crittersnack



Joined: 25 May 2006
Posts: 1
Location: Moline, IL

PostPosted: Thu 25 May '06 5:55    Post subject: Reply with quote

Thanks for the cheat sheet. It works well. Cool
Back to top
shaggy



Joined: 15 Nov 2005
Posts: 82
Location: Dundee, Michigan

PostPosted: Thu 25 May '06 15:26    Post subject: Reply with quote

@pips: I will take a look at your pdf later on today. Today I have to clean house and will be jumping back on the net later on today. I'll give it a shot pips.

Here is another site that I hit for windows binaries and apache modules for windows based boxes. I have posted this site on here b4.
http://www.gknw.at/development/apache/ <---main site.
http://www.gknw.at/development/apache/httpd-2.2/win32/modules/ <---Apache 2.2 modules.
On the second link provided scroll down and find: mod_php-5.1.4-2.2.2-w32.zip
-OR-
http://www.gknw.at/development/apache/httpd-2.2/win32/modules/mod_php-5.1.4-2.2.2-w32.zip <---direct link.

Now I've got a question. I have current versions of php, mysql and apache. Can anybody work with that dll file provided in that zip and get it working with apache 2.2 and php 5.1.4? I seem to not be able to get Steffen's nor gknw's php dll working.
Back to top
jonase



Joined: 24 May 2006
Posts: 1

PostPosted: Fri 26 May '06 9:45    Post subject: Reply with quote

I have to thank Pips for that excellent How to guide!

As a total n00b to Apache and PHP and MySQL, it was a wonderful start and i got it going on first try.

Many thanks!
Back to top
v28021



Joined: 28 May 2006
Posts: 3

PostPosted: Sun 28 May '06 18:58    Post subject: Reply with quote

Elwyn wrote:
Hi Phil,

I followed those instructions as I have a similar set up to you - brand new install of XPSP2 etc.

After following the procedure I couldn't restart the Apache server - the following error occurs:


I've done the same, and I cannot run apache because its configuration is wrong. The message that appears says that if I reinstall the aplication the problem may be solved.

The error message points bin/httpd.exe file.

I've done everything (I suppose) right.
Back to top
delsvr



Joined: 28 May 2006
Posts: 1

PostPosted: Sun 28 May '06 20:31    Post subject: Reply with quote

I'm getting an error from Apache much like Elwyn's. I've extracted and put the modified apache2 module in the correct location, but Apache can't seem to find it.

Quote:
httpd.conf
LoadModule php5_module C:/php-5.1.4/php5apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php-source .phps
Back to top
nhv1802



Joined: 29 May 2006
Posts: 1

PostPosted: Mon 29 May '06 6:47    Post subject: Reply with quote

Elwyn wrote:
Apologies. It was an error on my part - I missed a crucial '/' out of the command line. Appears to be working now - many thanks for the tips provided.

Liam


Elwyn, I've got the same problem as you, can you give me more detail to fix my error, thank you!!!
Back to top
v28021



Joined: 28 May 2006
Posts: 3

PostPosted: Mon 29 May '06 17:46    Post subject: Reply with quote

When I delete the line "
LoadModule php5_module c:/php514/php5apache2.dll" in httpd and when I take the file httpd.exe.manifest out of C:\apache2\bin Apache works...

What is the problem...?
Back to top
shaggy



Joined: 15 Nov 2005
Posts: 82
Location: Dundee, Michigan

PostPosted: Tue 30 May '06 0:21    Post subject: Reply with quote

Just to give you all a head's up. it works did the php test file with the php code list in your .pdf file works just fine and pulls everything up properly.

NOW with saying if you had a phpBB pre-php 5.1.4 and pre-mysql 5.0.21 and did an upgrade to current versions of phpBB 2.0.20 then to php 5.1.4 and mysql 5.0.21 U WILL BE DISCONNECTED FROM YOUR DATABASE and you'll have to reset your board.

As far as phpmyadmin if you are running the current version of 2.8.1rc1 then you'll continue to get that aggrivating phpMyAdmin - Error
Cannot load mysql extension. Please check your PHP configuration. - Documentation

Even if you follow the instructions in the first post in this topic you'll still get these errors.
Back to top
RagingFerret



Joined: 01 Jun 2006
Posts: 9

PostPosted: Thu 01 Jun '06 8:11    Post subject: Reply with quote

Sorry if this is a stupid question...but I'm still having problems...
I've restored an old database, recreated the accounts with permissions, and am trying to restore an apache, PHP, MySQL app that I wrote. However, not only does the cname "localhost" not work (I get the message "It works" and not my index.html page..even though it's in the directory) but I always get the error message:

You don't have permission to access /php/php-cgi.exe/file.php on this server.

Suggestions?
Back to top
clubikimakuri



Joined: 29 May 2006
Posts: 7

PostPosted: Thu 01 Jun '06 15:56    Post subject: Reply with quote

I'm having a similar problem to RagingFerret. I've successfully installed Apache 2.2.22 mysql 5.0.21 and PHP 5.1.4 on XP, however, when I try to open localhost in my browser (Firefox or IE) all I get is the "It Works" page instead of the index.php info file that I created and saved in the htdocs directory.

The php.ini and httpd.conf files are appended properly, and I have added my php directory to path. I must be missing or forgetting something, and I hope someone here might be able to point me in the right direction.

Thanks in advance for any suggestions.

Cory.
Back to top
pnllan



Joined: 05 Dec 2005
Posts: 221

PostPosted: Thu 01 Jun '06 17:54    Post subject: Reply with quote

clubikimakuri & RagingFerret,

What do you have for your DirectoryIndex directive in the HTTPD.CONF?
..
.
Back to top
clubikimakuri



Joined: 29 May 2006
Posts: 7

PostPosted: Fri 02 Jun '06 9:56    Post subject: Reply with quote

pnllan, thanks for your reply.

Here's a snipet from my HTTPD.CONF file:

DirectoryIndex index.html index.php

As far as I know that's the way it should be...

The info file I created looks like this:

<?php
phpinfo()
?>

and is saved as index.php in the htdocs folder.

I'm sure I'm making some trivial mistake during the installation process, I just can't figure out what it is...
Back to top
pnllan



Joined: 05 Dec 2005
Posts: 221

PostPosted: Fri 02 Jun '06 18:26    Post subject: Reply with quote

clubikimakuri,

Realize that the DirectoryIndex directive processes in the order that you list. Meaning, the first file processed will be index.html, only IF index.html DOES NOT exists in the specified folder will index.php will be served up.

If you want index.php to be served first, then your statement should read:

Code:
DirectoryIndex index.php index.html


Remember, this is applicable throughout your entire web with a few exception (like using mod_rewrite with htaccess files).

Read the manual for more details on DirectoryIndex and other Configuration Sections.
..
.
Back to top
clubikimakuri



Joined: 29 May 2006
Posts: 7

PostPosted: Sat 03 Jun '06 10:42    Post subject: Reply with quote

pnallan,

Thank you very much for the information. I reordered my directive and everything works as expected.

I really appreciate your help. I have read the manual, and being a complete newbie to programming, it is still rather difficult to understand. It's nice to have a place like there where I can come to when I need help.

Thanks again,
Cory
Back to top
RagingFerret



Joined: 01 Jun 2006
Posts: 9

PostPosted: Thu 08 Jun '06 6:04    Post subject: Reply with quote

Ach, sorry for the late reply.
Mine is set to index.html as well, but my index page is indeed written in just plain HTML and is an index.html file. However, when I try to load ANY .php pages I get that error message.
This is a li'l thing I wrote beforehand that worked well for months, so I know it's not the code...anything else I can do?

*EDIT*
Also, should I take some steps to remove the security flaw, I get a new problem. When loading the websites through firefox, apache won't DISPLAY the .php pages. Instead, it'll prompt me to download them to my home system. IE, on the other hand, just gives me the same security problems.

aarrggghh. This was NEVER this hard before.
Back to top
HobbyTech



Joined: 25 Jun 2006
Posts: 31
Location: USA

PostPosted: Mon 26 Jun '06 0:19    Post subject: Apache with PHP as module? Reply with quote

Hi Pips (or Steffan, if you know),

I am confused about the tutorial I noticed this:
Quote:
Copy the php5ts.dll file from "d:\php514" to "c:\windows\system32"
, but I thought that was only to use PHP as CGI, and 'php5apache2.dll" was for running Apache as a Module. Why is there "php5ts.dll" in your tutorial?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 26 Jun '06 21:41    Post subject: Reply with quote

php5ts is the main PHP file used by cgi and modul version Wink
Back to top


Reply to topic   Topic: Cannot load d:/php514/php5apache2.dll into server: View previous topic :: View next topic
Post new topic   Forum Index -> Other Software Page 1, 2  Next