kriege php5 nicht ans Laufen (Windows)

Eine Neuinstallation von phpBB 2.0 wird auf phpBB.de nicht mehr unterstützt.
Siehe auch Entwicklungs-Ende von phpBB 2.0 - Auswirkungen auf phpBB.de
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.

Eine Neuinstallation von phpBB 2.0 wird auf phpBB.de nicht mehr unterstützt.
Siehe auch Entwicklungs-Ende von phpBB 2.0 - Auswirkungen auf phpBB.de
Gesperrt
chriskuku
Mitglied
Beiträge: 126
Registriert: 31.01.2003 13:18

kriege php5 nicht ans Laufen (Windows)

Beitrag von chriskuku »

Habe, um erstmal phpBB2.0.22 zu installieren - später dann 3.0 -
php5.2.5 heruntergeladen (der MSI-Installer ist im Moment fehlerhaft,man kann also nur manuell installieren).

Habe das Apache Modul geladen und kann auch die phpBB2-Installation anstarten, bekomme aber die Meldung:"The PHP configuration on your server doesn't support the database type that you chose"
(MySQL 5.0 ist das in diesem Falle).

Habe dann eine Datei /phpinfo.php mit Inhalt: <? phpinfo() ?>
in meine Documentroot gelegt und kann diese öffnen, bekam aber
nicht den Pfad der php.ini-Datei.

Stellte dann fest, daß ich mich in der httpd.conf vertippt hatte.
Mache ich den php.ini-Pfad aber richtig, so bekomme ich mit der
phpinfo.php-Datei überhaupt nichts gelistet.

EDIT: Sorry, jetzt wohl doch. Also ich bekomme eine Konfiguration von php5 gelistet, da sehe ich aber nichts von MySQL, obwohl ich in der php.ini extensions=php_mysql.dll eingeschaltet habe.
chriskuku
Mitglied
Beiträge: 126
Registriert: 31.01.2003 13:18

Beitrag von chriskuku »

Gelöst! Nach einigem Suchen und dieser Anleitung kam ich zum Erfolg:

EDIT: Link funktionierte nicht, deshalb Text hier hineingepastet:

Code: Alles auswählen

Posted by: Indu Sekar () 
Date: May 28, 2007 11:23PM


FOR THOSE WHO TRIED INSTALLING APACHE,PHP AND MYSQL BEFORE AND FAILED TO CONNECT 

1) Search My Computer for php.ini..If found delete all the instances. 
2) Search My Computer for libmysql.dll..If found delete all the instances. 
3) Delete Previous Installations directories of Apache, PHP and MySQL. Go to Step 5 
4) If you have installed PHPDEV and want to try this Standalone installations Go To 
Start-> 
Run-> 
type regedit-> 
Go To the Following Key: HKLM/CurrentControlSet/Services/dev4_* or dev5_*----* represents the version number of phpdev 
Delete the Key. 
Delete phpdev installation Directory and Startmenu Directory. 
Do the Steps 1,2 and 3 above. 
5) Restart the Computer. 


FOR FRESH INSTALLATION AND THOSE WHO HAVE ADOPTED THE STEPS ABOVE. 
1) Install Apache - www.apache.org - VERSION 2.2.4--(recomend version 2+) 

2) Choose Custom installation and install it into directory C:\Apache 

3) Install Mysql - www.mysql.com - VERSION 5.0.41 -(recomend version 5+) 

4) Choose Custom installation and install it into directory C:\MySQL 

5) Download PHP5(Not Windows Installer but only Zip binaries-VERSION 5.2.2) 

6) Unzip into C:/php - www.php.net - (recomend version 5+) 

7) Configure Apache>Edit http.config from Directory C:\Apache\Conf\ and do the following: 

For Apache version 2.2.4 Add To the http.config file 

1) Find 'DirectoryIndex index.html' in dir_module and change it to: 
<IfModule dir_module> 
DirectoryIndex index.html index.php 
</IfModule> 

2) Insert the following lines inside <IfModule mime_module> below AddType application/x-gzip .gz .tgz 
# Load php module 
LoadModule php5_module c:/php/php5apache2_2.dll (!!!!Front Slashes please) 
AddType application/x-httpd-php .php 




8) Config php 

1) Copy the 'php5ts.dll' from "C:\php\" to the bin dir in the Apache main dir 
(C:\Apache\bin) 

2) Copy the 'php.ini-dist' from "C:\php\" to "C:\Windows" and rename it as 'php.ini' (Don't Move) 

3) Open C:\Windows\php.ini 

Set extension_dir: 
extension_dir = "C:/php/ext/" (!!!!Front Slashes please) 
Find and remove the ';' 
;extension=php_mysql.dll 

4) Copy the 'libmysql.dll' file from "C:\php\" to C:\Windows 



*** NO NEED FOR ANY OTHER SETTINGS AND NO NEED FOR ANY PHP.INI IN PHP INSTALLATION PATH.. 
*** NO NEED FOR ANY CHANGES IN THE PHP DIRECTORY APART FROM THE ONE'S EXPLAINED ABOVE .. 
*** DON'T TEST UNTIL THE COMPLETION OF ALL THE CHANGES ABOVE 

RESTART THE COMPUTER SEE IT WORKS.....BEST OF LUCK.... 

FOR TESTING PURPOSE NOW... 
1) Ensure Apache Server is running... 
2) Open a Notepad and Type: 
<? 
phpinfo(); 
?> 
3) Save it as info.php at "C:\Apache\htdocs\" 
4) Open your browser and type http://localhost/info.php 
5) PHP information pages will be displayed in the browser and you have successfully integrated everything. 
6) If the page displays blank, then flush the browser cache 
7) Open C:\Windows\php.ini for editing 
8) Find the setting short_open_tag and Change its value to On if Off. 
9) If it still displays blank page 
10) Open a Notepad and Type: 
<?php 
phpinfo(); 
?> 
11) Save it as info1.php at "C:\Apache\htdocs\" 
12) Open your browser and type http://localhost/info1.php 
13) PHP information pages will be displayed in the browser and you have successfully integrated everything. 


AND LAST BUT NOT THE LEAST..I WISH TO INFORM YOU ALL THAT I AM A NEWBIE THAT TRIED THE INTEGRATION OF APACHE,PHP AND MYSQL FOR DEVELOPING A FORUM...THESE PIECES OF INFORMATION IS COLLECTED FROM VARIOUS SUPPORT WEBSITES AFTER STRUGGLING FOR MORE THAN 16 HOURS OF CONTINOUS SITTING IN FRONT OF MY PC TO FIND A WAY OUT FOR CONFIGURING INSTEAD OF USING EITHER APPSERVER OR PHPDEV.. I TRIED ATLEAST 25 TIMES INSTALLING AND UNINSTALLING ALL THESE APPLICATIONS.. WHEN I GOOGLED "THE PHP CONFIGURATION DOES NOT SUPPORT THE DATABASE YOU CHOSE" AFTER INSTALLATIONS, I FOUND 100's of SUPPORT FORUMS HAVE BEEN ADDRESSED FOR A SOLUTION TO THIS.. 
SO I THOUGHT IT FIT TO SHARE MY SUCCESSFUL CONFIGURATION WITH WHICH I WAS ABLE TO INSTALL PHPBB 2.0.22 DATABASE IN THE ABOVE APACHE, MYSQL AND PHP SERVERS.
Gesperrt

Zurück zu „phpBB 2.0: Installation und Update“