php5 mysql localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can someone help me with the configuration of Apache.
I have PHP5, MySQL and Apache2.2 all installed and working independantly on Windows XP. 
which dir in Apache should the php.ini file be located? I tried /htdocs and /lib but still cannot view any php on localhost.
I have these lines in my http/conf:
AddType text/html .php .phps
AddType application/x-httpd-php .php
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps#
LoadModule php5_module "c:/php/php5apache2_2.dll"
When trying to connect to MySQL server using this test script, I am getting Access denied for 'user'@'localhost'. No idea why!
<?php
$mysqluser = 'root';
$mysqlpasswd = ' ';
$mysqlhost = 'localhost';
$connID = mysql_connect($mysqlhost, $mysqluser, $mysqlpasswd);
$result = mysql_list_dbs();
echo "<p>Databases in the local MySQL server</p>\n";
echo "<p>";
while ($row = mysql_fetch_row($result)) {
  echo "<br><em>$row[0]</em>\n";
}
echo "</p>";
?>
Any pointers would be appreciated.
 
Richard.
 
 
 


Never miss a thing. Make Yahoo your homepage.
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux