PHP and MySQL Issues

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
MrNemo
Forum Newbie
Posts: 7
Joined: Sun Dec 14, 2008 11:41 am

PHP and MySQL Issues

Post by MrNemo »

I know this is a double post from another thread but I didn't see this one down at the bottom.

I have the newest php(3.1.1) installed at c:\php with IIS running the web server. I have tested php and it is installed and running correctly showing me the contents of a phpinfo file. I have mysql installed to current default location at c:\program files\ etc. All this is setup on XP SP2 with no firewall and connections opened up on router to allow 3306. I can login to mysql via the command line with the user root and the password I set at install. However, I get this message after I hit ok. Whether I submit correct credentials or not. Note, I am the admin of this box.

PHP has encountered an Access Violation at 0101AC5A

Sometimes it shows that the page cannot be displayed. Has anyone seen this error and may know the problem? I've looked into my windows event viewer and I have an error under System with Source being WAM and problem listed:

I've tried changing the connection type to config, http, and cookie. Still no luck. I do have MySQL Administrator Tools and can connect to my MySQL via Administrator and Browser and what not. I'm stuck! Please help!

The HTTP server encountered an unhandled exception while processing the ISAPI Application '
php5ts!zend_mm_shutdown + 0x1140
php5ts!_efree + 0x39
'.

I havn't received this message in awhile. Friends can also view my login page. I feel safe I can provide that to the public. It's located at http://nemosolutions.mine.nu/phpadmin.
Phpinfo.php shows that mysql is installed. In fact, it can be reached at http://nemosolutions.mine.nu/phpinfo.php if anyone cares to see my config to help. I would really appreciate the help as I'm wanting to get a job I applied for and they user php with mysql as their primary web development. I believe I covered everything. I will post a reply if I realize I forgot something heh. Thanks again for any help!

I changed my extension from mysql to msyqli, restarted mysql and now I get this:
#1045 - Access denied for user 'user'@'localhost' (using password: YES)
I modified my config.inc.php to a different user but to no avail

I've also just tried a simple php file to connect to my mysql.

<?php
mysql_connect("localhost", "some_user", "some_pass") or die(mysql_error());
echo "Connected to MySQL<br />";
mysql_close($dbh);
?>

I still get that same access violation...
MrNemo
Forum Newbie
Posts: 7
Joined: Sun Dec 14, 2008 11:41 am

Re: PHP and MySQL Issues

Post by MrNemo »

I switched to my apache and got php AND mysql working!! Now I can begin developing things!
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: PHP and MySQL Issues

Post by VladSun »

Congrats! Apache rulz ;)
Now think of switching your server to Linux ;)
There are 10 types of people in this world, those who understand binary and those who don't
jason.carter
Forum Commoner
Posts: 35
Joined: Sat Jan 10, 2009 10:05 am

Re: PHP and MySQL Issues

Post by jason.carter »

Thats right! Lets all stick to Linux wherever possible
Post Reply