Author |
|
Elwyn
Joined: 22 May 2006 Posts: 2
|
Posted: Mon 22 May '06 23:58 Post subject: Cannot load d:/php514/php5apache2.dll into server: |
|
|
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
|
Posted: Tue 23 May '06 12:50 Post subject: |
|
|
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
|
Posted: Tue 23 May '06 20:37 Post subject: |
|
|
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
|
Posted: Thu 25 May '06 5:55 Post subject: |
|
|
Thanks for the cheat sheet. It works well. |
|
Back to top |
|
shaggy
Joined: 15 Nov 2005 Posts: 82 Location: Dundee, Michigan
|
|
Back to top |
|
jonase
Joined: 24 May 2006 Posts: 1
|
Posted: Fri 26 May '06 9:45 Post subject: |
|
|
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
|
Posted: Sun 28 May '06 18:58 Post subject: |
|
|
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
|
Posted: Sun 28 May '06 20:31 Post subject: |
|
|
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
|
Posted: Mon 29 May '06 6:47 Post subject: |
|
|
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
|
Posted: Mon 29 May '06 17:46 Post subject: |
|
|
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
|
Posted: Tue 30 May '06 0:21 Post subject: |
|
|
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
|
Posted: Thu 01 Jun '06 8:11 Post subject: |
|
|
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
|
Posted: Thu 01 Jun '06 15:56 Post subject: |
|
|
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
|
Posted: Thu 01 Jun '06 17:54 Post subject: |
|
|
clubikimakuri & RagingFerret,
What do you have for your DirectoryIndex directive in the HTTPD.CONF?
..
. |
|
Back to top |
|
clubikimakuri
Joined: 29 May 2006 Posts: 7
|
Posted: Fri 02 Jun '06 9:56 Post subject: |
|
|
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
|
Posted: Fri 02 Jun '06 18:26 Post subject: |
|
|
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
|
Posted: Sat 03 Jun '06 10:42 Post subject: |
|
|
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
|
Posted: Thu 08 Jun '06 6:04 Post subject: |
|
|
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
|
Posted: Mon 26 Jun '06 0:19 Post subject: Apache with PHP as module? |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 26 Jun '06 21:41 Post subject: |
|
|
php5ts is the main PHP file used by cgi and modul version |
|
Back to top |
|