LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-08-2005, 02:49 PM   #1
BorgAssimilator
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Rep: Reputation: 0
Apache/PHP not talking to mysql database


First, my specs and whatnot:
Distro: Slackware 10.2
Kernel: 2.4.31
Apache: 1.3.31
PHP: 5.0.3
MySQL: 4.0.20

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.
 
Old 11-11-2005, 03:12 AM   #2
karpi
Member
 
Registered: Oct 2005
Location: Germany
Distribution: Suse
Posts: 134

Rep: Reputation: 15
Hello,

sounds to me as a port-problem.

Are you using the same port for the torrent down-/upload and the mysql-port?

Can you connet with "mysql" to your mysql-server?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Php search mysql database jamesjoy Programming 4 12-02-2005 07:28 AM
cannot connect to mysql database from php rocordial Linux - Software 2 08-21-2005 02:05 PM
php won't write in mysql database!! Boby Programming 5 04-26-2004 04:20 PM
PHP is not talking to Mysql in Fedora mahugl Linux - Software 4 02-03-2004 03:55 AM
MySQL php database and financial stuff esteeven Linux - Software 1 11-06-2003 03:35 AM


All times are GMT -5. The time now is 02:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration