I did try a search of the forums before posting this, but was not able to find a solution. Forgive me if it has been addressed ad nauseam.
I am trying to install MODx 0.9.5 beta5-rev1785.
[table]
[tr]
[td]Web server:[/td]
[td]Apache 1.3.37[/td]
[/tr]
[tr]
[td]PHP version:[/td]
[td]4.4.4[/td]
[/tr]
[tr]
[td]MySQL version:[/td]
[td]4.1.21[/td]
[/tr]
[tr]
[td]Browser name and version:[/td]
[td]Firefox 1.5.x (XP)[/td]
[/tr]
[tr]
[td][/td]
[td]Camino ver. 2006102101 (1.1a1+) (OS X)[/td]
[/tr]
[tr]
[td]OS/version:[/td]
[td]XP Pro SP2[/td]
[/tr]
[/table]
The XP box is my local dev server. I first tried the installation without any preparation. When that didn’t work, I created database modx, created user admin, and granted admin all privileges on that db. No matter what I do, though, I am told that the connection to the host has failed. I’ve tried as "localhost" and I’ve also tried my internal and external IP addresses. I had no trouble with my Movable Type or WordPress installations, for both of which I also created a db beforehand.
Another user experiencing this problem (there’s a post from back in Jan or Apr 2006) resolved the issue by installing PHP5, I think, but the reason I have MySQL 4.x, PHP 4.x, and Apache 1.3x is because I duplicated my host’s environment as closely as I could so that I wouldn’t get any nasty surprises when I went from dev to production. I would like to sort this without resorting to upgrading PHP (can both be installed in parallel?, I dunno), but will do so if that’s my only option.
Thanks for your help!
-
MODX Staff
- 12,272 Posts
Try 127.0.0.1 for the DB connection (the loopback IP), as that’s what I’ve got to use on my localhost installs, although on OS X.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Thank you for the ridiculously fast response. =) Unfortunately, that didn’t work either. =(
Do you use the default port number in your mysql database server? If not, use 127.0.0.1:12345 as the database server address where 12345 is the correct port number. You could also try with small php script to see if it can connect:
<?php
mysql_connect("127.0.0.1", "admin", "password") or die(mysql_error());
echo "Connected to MySQL<br />";
mysql_select_db("modx") or die(mysql_error());
echo "Connected to Database";
?>
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
That’s not really a viable solution. I have a had a perfectly working dev environment for years, and it doesn’t really make sense to install a "boxed" solution just to try MODx. What I’m failing to understand is why MODx has a problem where my other stuff (Movable Type, WordPress) does not. Surely there is a way to get around this?
-
MODX Staff
- 12,272 Posts
Actually, that particular version of MySQL has caused more than a few problems. I don’t have any other suggestions for you sadly, but I’m sure it’s a simple oversight in the install SQL files. You might dig through those to see if you can find the offending culprit.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Great that you got it resolved.. What a weird error message from MySQL if it was just a password issue
"He can have a lollipop any time he wants to. That's what it means to be a programmer."