This might do it: run phpinfo to see where your php.ini file is. Make a plain text file and call it phpinfo.php and put just this line in it:
<?php phpinfo(); ?>
then put the file in the root of your server, and then go to that file with your web browser. Find ‘Loaded Configuration File’. This will tell you the php.ini that is being used.
and uncomment this line and remove the preceding semicolon:
extension=php_mysql.dll
Thread Starter
jmiked
(@jmiked)
Thanks songdogtech, did as you suggested and have now proceeded to another problem.
Now the message is:(pasting in the view source)
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” >
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>WordPress › Error</title>
<link rel=”stylesheet” href=”css/install.css” type=”text/css” />
</head>
<body id=”error-page”>
<p>
<h1>Error establishing a database connection</h1>
<p>This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.</p>
- Are you sure you have the correct username and password?
- Are you sure that you have typed the correct hostname?
- Are you sure that the database server is running?
<p>If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.</p>
</p></body>
<!– Ticket #8942, IE bug fix: always pad the error page with enough characters such that it is greater than 512 bytes, even after gzip compression abcdefghijklmnopqrstuvwxyz1234567890aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz11223344556677889900abacbcbdcdcededfefegfgfhghgihihjijikjkjlklkmlmlnmnmononpopoqpqprqrqsrsrtstsubcbcdcdedefefgfabcadefbghicjkldmnoepqrfstugvwxhyz1i234j567k890laabmbccnddeoeffpgghqhiirjjksklltmmnunoovppqwqrrxsstytuuzvvw0wxx1yyz2z113223434455666777889890091abc2def3ghi4jkl5mno6pqr7stu8vwx9yz11aab2bcc3dd4ee5ff6gg7hh8ii9j0jk1kl2lmm3nnoo4p5pq6qrr7ss8tt9uuvv0wwx1x2yyzz13aba4cbcb5dcdc6dedfef8egf9gfh0ghg1ihi2hji3jik4jkj5lkl6kml7mln8mnm9ono –>
MySQL is running and the database name, username and password are correct in the config file. Scratches head and mumbles.
</html>
I don’t need to see the source of the page. Your password or database name is wrong. Use PHPMyAdmin to check on the databse name, as well as your write privledges for the database. You might need to reset the root passowrd for MySQL.
Thread Starter
jmiked
(@jmiked)
Got lazy with the ctrl+a songdogtech. I have redone all the passwords and retyped the install.php fields and nothing changed.
I can get into MySQL from Webmin for remote admin.
I even tried making the user root using the root password.
I am beginning to think is has to be something with Red Hat. I checked and my setup as far as I can tell is identical with my Fedora 10 system which has a site up and running.
I am baffled to say the least.
Thread Starter
jmiked
(@jmiked)
Rolling my own straight from the Red Hat repositories. Do the same with Fedora (X) and have no problems.
Just would hate to take my wife’s business applications o=ff of a stable platform like Red Hat. I may look into xampp if research shows that might be the answer.
You have any experience with the xampp package?
I don’t use xammp or mamp; I installed everything from scratch under OS X. But xammp makes things easy; I’d try it rather than fighting with building from source.
Thread Starter
jmiked
(@jmiked)
Finally found it. If you load Webmin 1.500 the MySQL manager has a tab to change the Admin password for MySQL. It works and does not make typos.
Call this closed and a good tip!