[RESOLVED] PHP5 installation problem

liunx

Guest
Hey all. Long time listener, first time caller. Love the show.

Installed Apache 2.2. Server starts great, test page loads. Check.

Installed PHP5. Apache won't start. Ran Dependency Walker and discovered that php5apache2.dll couldn't find 3 dll files. I fixed that by adding the apache bin folder to the path.

Now, it still won't start. I looked at the Event Application Viewer and saw the following error message:The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 115 of C:/Program Files/Apache Software
Foundation/Apache2.2/conf/httpd.conf: API module structure `php5_module' in file
C:/php/php5apache2.dll is garbled - perhaps this is not an Apache module DSO? .
Huh? Is it just a bad dll file? If so, wouldn't the Dependency Walker choke on it?

Any ideas?Never mind. Installed XAMPP, works like a charm. Move along, nothing to see here...That would have been my suggestion, why people beat themselves up with all the headaches of attemptin to install what should be a one time thing (excepting newer versions) I have no clue XAMPP is simple and works and easily modified to your own preferences after you are comfortable with the server and its setup. But trying to set it all up is too much a hassle when you can just download a great package and be DONE WITH IT.FYI, I got Apache 2.2.2 and PHP 5.1.4 manually installed and working on Windows XP SP2. You'll need to download 3 things.

Apache 2.2.2 (<!-- m --><a class="postlink" href="http://apache.mirrors.versehost.com/httpd/binaries/win32/">http://apache.mirrors.versehost.com/htt ... ies/win32/</a><!-- m -->) (MSI Installer)
PHP 5.1.4 (<!-- m --><a class="postlink" href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a><!-- m -->) (Zip Package)
php5apache2.dll-php5.1.x.zip (<!-- m --><a class="postlink" href="http://www.apachelounge.com/download/">http://www.apachelounge.com/download/</a><!-- m -->) (New Module Binary)


Install and configure Apache as normal.
Extract PHP and configure INI as normal.
Replace php5apache2.dll with new one
Copy httpd.exe.manifest to apache2/bin (View Readme)
Add PHP to the Apache config
Restart Apache, Done!

Let me know if you still have troubles, I could go into further details. Basically, all you need to do is replace the php5apache2.dll.Hi Rpanning,

I did as you suggested, but still I can't start Apache2.2: with 4 (httpd.exe.manifest in apache2/bin) I get a Windows message: httpd.exe can't start because it is not correctly configured (translated from more wordy french).
If I remove httpd.exe.manifest from apache2/bin I get the old error as BuzzLY

any hints?

UliA correction: I don't get BuzzLY's error. I get

Cannot load C:/PHP/php5apache2.dll into server: the modul sp\xe9cifi\xe9 cannot be foundwith apache 2.2.22 doesn't works, i tried with 2.0.58 and it's okphp5apache2.dll doesn't work with Apache 2.2 (see the Apache installation instructions on PHP's site for details).FYI, I got Apache 2.2.2 and PHP 5.1.4 manually installed and working on Windows XP SP2. You'll need to download 3 things.

Apache 2.2.2 (<!-- m --><a class="postlink" href="http://apache.mirrors.versehost.com/httpd/binaries/win32/">http://apache.mirrors.versehost.com/htt ... ies/win32/</a><!-- m -->) (MSI Installer)
PHP 5.1.4 (<!-- m --><a class="postlink" href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a><!-- m -->) (Zip Package)
php5apache2.dll-php5.1.x.zip (<!-- m --><a class="postlink" href="http://www.apachelounge.com/download/">http://www.apachelounge.com/download/</a><!-- m -->) (New Module Binary)


Install and configure Apache as normal.
Extract PHP and configure INI as normal.
Replace php5apache2.dll with new one
Copy httpd.exe.manifest to apache2/bin (View Readme)
Add PHP to the Apache config
Restart Apache, Done!

Let me know if you still have troubles, I could go into further details. Basically, all you need to do is replace the php5apache2.dll.

Thanks for that info!! :D :D

I'm a newbbie in php but i want to learn very much. I hope I can help this community in the future

Thanks to all!
 
Back
Top