LÄS TEXTEN INSTALL som följer med PHP paketet.
Jag har på en tidigare cgi-installation av PHP försökt installera php som modul istället.
Har kollat i manualen lite och gjort följande:
Kommenterat bort gamla cgi direktiven i httpd.conf.
Lagt till dessa direktiv längst ner i httpd.conf istället:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .phtml
OCH allting fungerar när jag startar Apache, dvs, alla php sidor utom dom som är databasrelaterade. Så fort jag försöker komma åt en sådan får jag följande felmeddelanden(nån som vet orsaken? Observera denna sida funkar när jag kör PHP som CGI):
Warning: Can't connect to MySQL server on 'localhost' (10061) in c:\rootwww\root.php on line 13
Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (10061) in c:\rootwww\root.php on line 13
Warning: Access denied for user: 'ODBC@localhost' (Using password: NO) in c:\rootwww\root.php on line 15
Warning: MySQL Connection Failed: Access denied for user: 'ODBC@localhost' (Using password: NO) in c:\rootwww\root.php on line 15
Warning: MySQL: A link to the server could not be established in c:\rootwww\root.php on line 15
Warning: Access denied for user: 'ODBC@localhost' (Using password: NO) in c:\rootwww\root.php on line 19
Warning: MySQL Connection Failed: Access denied for user: 'ODBC@localhost' (Using password: NO) in c:\rootwww\root.php on line 19
Warning: MySQL: A link to the server could not be established in c:\rootwww\root.php on line 19
Warning: Access denied for user: 'ODBC@localhost' (Using password: NO) in c:\rootwww\root.php on line 23
Warning: MySQL Connection Failed: Access denied for user: 'ODBC@localhost' (Using password: NO) in c:\rootwww\root.php on line 23
Warning: MySQL: A link to the server could not be established in c:\rootwww\root.php on line 23
Warning: Supplied argument is not a valid MySQL-Link resource in c:\rootwww\root.php on line 25