Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have set up an apache server and added a module for php4, and these seem to be working okay. But now I seem to be having trouble with mysql. I am trying to set up the program web AimSniff, which uses php scripts to run, but when I attempt to view the file index.php (used by AimSniff) I get the following error:
Fatal error: Call to undefined function: mysql_connect() in /var/www/was/.global.php on line 5
I have no idea what this means or how to fix it.
P.S. Here is some information that may help you help me:
OS: SimplyMEPIS (Debian based distro)
Apache server: Version 1.3.33
Php: version 4.x <--not sure of exact version (4.3.10-9 I think)
Mysql: version 4.x <--not sure of exact version (4.0.24 I think)
Browser: Firefox
To the best of my knowledge, apache and the php module for apache are running correctly. The mysql server is also running, but as is evident, it doesn't appear to be working quite right. Either that, or I've configured something wrong for apache.
The problem appears to be with your PHP installation.
a) Apache needs to talk to PHP, and
b) PHP needs to talk to mySQL, and
c) mySQL manages your data.
Please try the following:
1. Check your "phpinfo ();" output
2. Make sure you don't have a second, different
installation of PHP on your system
3. Consider re-building/re-installing PHP. Make sure you explicitly enable mySQL support (this *should* be the default)
First of all configure php.ini to load mysql extension.
And then, you have to configure the mysql server name, database name, username, password properly on AImSniff script files. The file to make changes is /var/www/was/.global.php
Edit this file and make necessary changes.
Other things to consider,
Make sure mysql server is running.
A databse is created for AimSniff or whatever it is.
Hi again, shortname. With all due respect to evil_empire, I think you're picking up a version of PHP that wasn't built to support mySQL. If that's true, modifying php.ini won't help at all - you'll need to either rebuild it, or find a pre-built binary with mySQL support.
1. Check your "phpinfo();" output.
2. Make sure you don't have some "rogue version" of PHP that your Apache server isn't picking up, instead of the one you intended.
3. Rebuild and reinstall (explicitly specifying "--with-mysql" in your "configure" script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.