Apache/PHP not talking to mysql database
First, my specs and whatnot:
Distro: Slackware 10.2
Ok. Now that that's out of the way:
My webserver had an uptime of about 10 days. Everything was working perfectly. I then started putting .torrent files on my site avalible for download (all legal fyi). However, I had to change the mime type. So I then went into the mime.types file and added the nessisary line. I restarted the webserver. It restarted, no apachectl error was given and my config file checked out, but I went to see my site, and php wouldn't connect to the database. I restarted the database and the same thing happened. I then logged into the database directly to see that it was working fine. So something has to be wrong with the apache / php config. However, I haven't touched those files for a long time, and I don't see how anything could have happened. I deleted the line I made in the file, and then even restored the defaults, same thing.
My guess is something in the apache httpd.conf or php.ini files. However I have no idea what to look for since I haven't touched those files recently.
Restarting the machine also didn't help.