Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-13-2007, 04:55 PM   #1
Registered: Oct 2003
Location: Colorado
Distribution: SLackware 14
Posts: 62

Rep: Reputation: 16
Dedicated Server mysql issues

I installed slackware 11 on a dedicated machine striclty to dish out web pages
I did not install mysql server because I do not want this service on this box.
However though I now get the infamous

Fatal error: Call to undefined function: mysql_connect()

Since I "thought" i had a good grasp on these simple issues I made sure it is loading the extenstion in php.ini which of course it is

In fact everything with the ini and httpd.conf are identical to another server running the only difference is that one has mysql on board and it is working fine.

So what I want to know or do is find out if there is a way to properly load what ever it needs to use the mysql functions in PHP without installing mysql server. I really didnt think it would be such a pita but as usuall im wrong.

Any help from anyone that has done it before will be appreciate otherwise i suppose i will just install the mysql server and be done with it...
Old 03-13-2007, 05:10 PM   #2
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
As far as I know (which may not be very far ) the only way around that fatal arror is to have a MySQL server reply to the mysql_connect() call. I've never implemented another means of having MySQL function calls actually 'work' without MysQL installed.
I wouldn't put it past some very creative scripting though, for there to be a way around it. Php is a pretty powerful language. Perhaps in the Apache httpd.conf (or *maybe* php.ini) you could arrange to pre-empt or redirect the mysql call(s) to another page with a little script which simply returns 'TRUE' or whatever value/return-code would be returned by the mysql_connect() function?
I/we did this to implement part of a firewall on a Debian server a while back using Apache's php-prepend functionality. You might have the mysql_connect function call all alone on a page by itself, which when called would actually get prepended by apache and replaced by the script which would return the phony 'TRUE' (or error=0)
Of course, the php may be 'too smart to fool' so easily :P

Last edited by GrapefruiTgirl; 03-13-2007 at 05:16 PM.


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
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM
Dedicated Server Distros (SME server and Censornet) Sugga Linux - General 2 09-22-2005 04:15 AM
how do i Know Apache PHP MYSQL Installed on my Dedicated Server? phpsharma Linux - Newbie 3 04-18-2005 06:40 PM
Trying to start mysql on freebsd 4.8 dedicated server NoS Sr50 *BSD 1 12-08-2004 12:46 AM
Half-life dedicated server ip issues FonduHell Linux - Games 0 11-20-2003 09:19 PM > Forums > Linux Forums > Linux - Distributions > Slackware

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

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