Hallo,

Ik ben hier nieuw, voor de duidelijkheid.
En ik hoop dat jullie mij kunnen helpen, met mijn probleem.

Situatieschets.
- Eerst heb ik apache (Apache/2.2.16 (Win32))(httpd-2.2.16-win32-x86-openssl-0.9.8o) geinstalleerd.
- Daarna heb ik php-5.3.3-Win32-VC6-x86 geinstalleerd.

Tot zover ging het goed, maar toen ik phpinfo(); raadpleegde, bleken de mysql(i) extensies niet te werken.

En ik heb zoals het op php.net staat, eerst php geinstalleerd, zonder de extensions, en daarna met.

Maar nu wil apache helemaal niet meer starten, en ik denk dat er een fout in mijn httpd.conf zit, of in php.ini. Maar die kan ik gewoon niet vinden.

WieOWie kan mij helpen? En de foutmelding die ik krijg bij het opstarten van apache is deze:
The requested operation has failed!


De code van httpd.conf, dit staat er onderaan in het bestand.
####################################################################

# For PHP 5 do something like this:
LoadModule php5_module "C:/Program Files (x86)/PHP/php5apache2_2.dll"

# configure the path to php.ini
PHPIniDir "C:/Program Files (x86)/PHP"

# For configure PHP 5
AddHandler application/x-httpd-php .php


Als ik nu een '#' voor LoadModule, en PHPIniDir, zet start apache.

En in php.ini staat onder andere dit:

extension_dir = "C:\Program Files (x86)\PHP\ext"

En een onder in het bestand staat dit:

[PHP_MYSQL]
extension=php_mysql.dll
;extension_dir = "C:\Program Files (x86)\PHP\ext\php_mysql.dll"
[PHP_MYSQLI]
extension=php_mysqli.dll




Mvg ThvD
Ik zal er eens een experimentje mee proberen.
Het zal wel raar zijn, aangezien de php installer dat als standaard map aanwees.

[size=xsmall]Toevoeging op 25/09/2010 15:43:39:[/size]

SanThe Nvt op 25/09/2010 15:12:36

Ligt het niet aan die foute mapnaam (met spatie's en haken er in)?
C:/Program Files (x86)


Wat een geniale uitvinding zeg, die C:/Program Files (x86) Folder;

Ik heb ondertussen php verwijdert en op nieuw geinstalleerd, maar dan in C:/PHP/

En wat denk je? Mysql(i), werkt gewoon.
goed opgemerkt SanThe!
Alvast bedankt voor alle hulp!

Maar nu heb ik het volgende probleem.
"De functie mysql_connect, connect niet".



Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\index.php on line 6

Warning: mysql_connect(): [2002] Een verbindingspoging is mislukt omdat de verbonden party niet c (trying to connect via tcp://localhost:3306) in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\index.php on line 6

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\index.php on line 6

Warning: mysql_connect(): Een verbindingspoging is mislukt omdat de verbonden party niet correct heeft geantwoord na een bepaalde tijd, of de gemaakte verbinding is mislukt omdat de verbonden host niet heeft geantwoord.
 in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\index.php on line 6

Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\index.php on line 6

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\index.php on line 6

Je moet de eerste regel eens goed lezen;)

Je moet dus de default timezone instellen
Die error begrijp ik nog wel, want die error is nu ook weg.

Warning: mysql_connect(): [2002] Een verbindingspoging is mislukt omdat de verbonden party niet c (trying to connect via tcp://localhost:3306) in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\index.php on line 9 Warning: mysql_connect(): Een verbindingspoging is mislukt omdat de verbonden party niet correct heeft geantwoord na een bepaalde tijd, of de gemaakte verbinding is mislukt omdat de verbonden host niet heeft geantwoord. in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\index.php on line 9 Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\index.php on line 9


Maar het connecten van mysql wil nog steeds niet. Zijn er nog speciale settings nodig?
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\index.php

Ik zie nog steeds foute mapnamen.
Misschien ook hier het probleem?
Nu heb ik apache ook in C:/apache geinstalleerd, maar dat resulteerd nog steeds in deze error:



Warning: mysqli::mysqli(): [2002] Een verbindingspoging is mislukt omdat de verbonden party niet c (trying to connect via tcp://localhost:3306) in C:\apache\htdocs\index.php on line 25

Warning: mysqli::mysqli(): (HY000/2002): Een verbindingspoging is mislukt omdat de verbonden party niet correct heeft geantwoord na een bepaalde tijd, of de gemaakte verbinding is mislukt omdat de verbonden host niet heeft geantwoord.
 in C:\apache\htdocs\index.php on line 25

Fatal error: Maximum execution time of 30 seconds exceeded in C:\apache\htdocs\index.php on line 25



[size=xsmall]Toevoeging op 25/09/2010 17:44:58:[/size]

Nou, laat maar mensen, hij werkt al..

Laat nu die hostname, een IP-adres moeten zijn. En een hostname, zoals localhost, werkt niet, een IP adres, zoals 192.168.1.xx, werkt wel..

Graag hoor ik nog wel hoe dat komt.
Ik denk simpel weg omdat hij om een ip adres vraagt en localhost geen ip adres is
Als localhost niet werkt is de hosts file misschien niet correct.

Reageren