I realize this is a dumb question after searching the forums and drupal site, but I get this error message after installing drupal and trying to access it for the first time:
Fatal error: Call to undefined function mysql_connect() in /var/www/drupal/includes/database.mysql.inc on line 31
According to what I read on the drupal site, this is caused by a missing myslq module for php. However, I installed the php5-mysql package (I am running debian) along with php5.
I am new to php as well, so I am not sure how to debug this problem.
I am trying to run drupal 4.6.6, mysql 4.0.24, and php5 on linux (debian) kernel 2.24.
I believe I set up the mysql database correctly - at least there are a lot of tables in my drupal database!
Thanks for any help you can provide!
On 4/11/06, Mark Phillips mark@phillipsmarketing.biz wrote:
According to what I read on the drupal site, this is caused by a missing myslq module for php. However, I installed the php5-mysql package (I am running debian) along with php5.
If you create a phpinfo() page what does it tell you?
Thanks, Greg
-- Growing Venture Solutions | Denver, CO Technology Solutions for Communities and Small Businesses http://growingventuresolutions.com/
Greg,
It tells me a ton of stuff. However, when I searched through the page for "mysql" there was nothing. I assume there should have been something.
So, it seems that installing the packages php5 and php5-mysql on a debian machine is not enough to get php v5 running with mysql.
Does anyone know what I may be missing for a debian system?
Thanks!
Mark
On Tuesday 11 April 2006 04:01 pm, Greg Knaddison - GVS wrote:
On 4/11/06, Mark Phillips mark@phillipsmarketing.biz wrote:
According to what I read on the drupal site, this is caused by a missing
myslq
module for php. However, I installed the php5-mysql package (I am running debian) along with php5.
If you create a phpinfo() page what does it tell you?
Thanks, Greg
-- Growing Venture Solutions | Denver, CO Technology Solutions for Communities and Small Businesses http://growingventuresolutions.com/ -- [ Drupal support list | http://lists.drupal.org/ ]
Hi,
Normally when installing php5 and php5-mysql on debian it will auto enable mysql automatically.
But it will not restart apache. Try restarting apache and see it this fixes it.
Or
You will need to enable mysql by using the php5-modconf (this is also called php5.0-modconf or php5.1-modconf) which will enable the module for you. You will then need to restart apache again.
Gordon.
On Tue, 2006-04-11 at 21:40 -0700, Mark Phillips wrote:
Greg,
It tells me a ton of stuff. However, when I searched through the page for "mysql" there was nothing. I assume there should have been something.
So, it seems that installing the packages php5 and php5-mysql on a debian machine is not enough to get php v5 running with mysql.
Does anyone know what I may be missing for a debian system?
Thanks!
Mark
On Tuesday 11 April 2006 04:01 pm, Greg Knaddison - GVS wrote:
On 4/11/06, Mark Phillips mark@phillipsmarketing.biz wrote:
According to what I read on the drupal site, this is caused by a missing
myslq
module for php. However, I installed the php5-mysql package (I am running debian) along with php5.
If you create a phpinfo() page what does it tell you?
Thanks, Greg
-- Growing Venture Solutions | Denver, CO Technology Solutions for Communities and Small Businesses http://growingventuresolutions.com/ -- [ Drupal support list | http://lists.drupal.org/ ]
-- Mark Phillips Phillips Marketing, Inc mark@phillipsmarketing.biz 602 524-0376 480 945-9197 fax
Hello, Mark,
Without more details it's hard to tell precisely, but check out this page -- http://www.debianhelp.co.uk/php5.htm
You also might want to look through the Ubuntu forums for installing and configuring PHP, Apache, and MySQL to run together-- Ubuntu is based on Debian, so the advice would be pretty relevant --
Also, at the risk of stating the obvious, you should shut down and restart MySQL and Apache after each new item is installed.
Hope this is useful as you sort it out.
Cheers,
Bill
Mark Phillips wrote:
Greg,
It tells me a ton of stuff. However, when I searched through the page for "mysql" there was nothing. I assume there should have been something.
So, it seems that installing the packages php5 and php5-mysql on a debian machine is not enough to get php v5 running with mysql.
Does anyone know what I may be missing for a debian system?
Thanks!
Mark
On Tuesday 11 April 2006 04:01 pm, Greg Knaddison - GVS wrote:
On 4/11/06, Mark Phillips mark@phillipsmarketing.biz wrote:
According to what I read on the drupal site, this is caused by a missing
myslq
module for php. However, I installed the php5-mysql package (I am running debian) along with php5.
If you create a phpinfo() page what does it tell you?
Thanks, Greg
-- Growing Venture Solutions | Denver, CO Technology Solutions for Communities and Small Businesses http://growingventuresolutions.com/ -- [ Drupal support list | http://lists.drupal.org/ ]
------ http://www.funnymonkey.com Tools for Teachers
Greg, Gordon and Bill,
Thanks for your help. Yes, in my haste, I forgot to restart apache after installing php5-mysql. I feel dumb! ;-(
I got this as the output when I accessed drupal for the first time:
{head} {styles} {_BLOCK_.header.logo} {_BLOCK_.header.site_name} {secondary_links} {primary_links} {_BLOCK_.header.blocks}
Welcome to your new Drupal-powered website. This message will guide you through your first steps with Drupal, and will disappear once you have posted your first piece of content.
I must be missing something with the missing information at the top of the page? Or is this normal?
Thanks!
Mark
On Tuesday 11 April 2006 09:40 pm, Mark Phillips wrote:
Greg,
It tells me a ton of stuff. However, when I searched through the page for "mysql" there was nothing. I assume there should have been something.
So, it seems that installing the packages php5 and php5-mysql on a debian machine is not enough to get php v5 running with mysql.
Does anyone know what I may be missing for a debian system?
Thanks!
Mark
On Tuesday 11 April 2006 04:01 pm, Greg Knaddison - GVS wrote:
On 4/11/06, Mark Phillips mark@phillipsmarketing.biz wrote:
According to what I read on the drupal site, this is caused by a missing
myslq
module for php. However, I installed the php5-mysql package (I am
running
debian) along with php5.
If you create a phpinfo() page what does it tell you?
Thanks, Greg
-- Growing Venture Solutions | Denver, CO Technology Solutions for Communities and Small Businesses http://growingventuresolutions.com/ -- [ Drupal support list | http://lists.drupal.org/ ]
-- Mark Phillips Phillips Marketing, Inc mark@phillipsmarketing.biz 602 524-0376 480 945-9197 fax -- [ Drupal support list | http://lists.drupal.org/ ]
Mark,
On 4/12/06, Mark Phillips mark@phillipsmarketing.biz wrote:
Thanks for your help. Yes, in my haste, I forgot to restart apache after installing php5-mysql. I feel dumb! ;-(
That's ok, glad you got it working!
{head} {styles}
A very quick search gives the answer: http://www.google.com/search?q=%7Bhead%7D%20%7Bstyles%7D%20drupal
Doing a search before asking the question may get you the answer faster than the list can provide.
Regards, Greg
-- Growing Venture Solutions | Denver, CO Technology Solutions for Communities and Small Businesses http://growingventuresolutions.com/
Greg,
Thanks again....:">
I think I will just unsubscribe from the list, and start all over with a new subscription to wipe the slate clean. ;-)
Two gaffs in as many days is really embarrassing!
Mark
On Wednesday 12 April 2006 07:19 am, Greg Knaddison - GVS wrote:
Mark,
On 4/12/06, Mark Phillips mark@phillipsmarketing.biz wrote:
Thanks for your help. Yes, in my haste, I forgot to restart apache after installing php5-mysql. I feel dumb! ;-(
That's ok, glad you got it working!
{head} {styles}
A very quick search gives the answer: http://www.google.com/search?q=%7Bhead%7D%20%7Bstyles%7D%20drupal
Doing a search before asking the question may get you the answer faster than the list can provide.
Regards, Greg
-- Growing Venture Solutions | Denver, CO Technology Solutions for Communities and Small Businesses http://growingventuresolutions.com/ -- [ Drupal support list | http://lists.drupal.org/ ]
A very quick search gives the answer: http://www.google.com/search?q=%7Bhead%7D%20%7Bstyles%7D%20drupal
We should all probably lose the habit of relying on google to search drupal.org :)
http://drupal.org/search/node/%7Bhead%7D+%7Bstyles%7D
-K
"Karthik" wrote:
A very quick search gives the answer: http://www.google.com/search?q=%7Bhead%7D%20%7Bstyles%7D%20drupal
We should all probably lose the habit of relying on google to search drupal.org :)
Perhaps that'll happen when Drupal searching yields results as useful as Google. :) Right now, it's hit or miss. And, it's hard to limit searches to a particular site area ... something that's quite easy with Google.
-- Gary
On Wednesday 12 April 2006 11:14 am, Lists wrote:
"Karthik" wrote:
A very quick search gives the answer: http://www.google.com/search?q=%7Bhead%7D%20%7Bstyles%7D%20drupal
We should all probably lose the habit of relying on google to search drupal.org :)
Perhaps that'll happen when Drupal searching yields results as useful as Google. :) Right now, it's hit or miss. And, it's hard to limit searches to a particular site area ... something that's quite easy with Google.
You sound like you haven't checked out the new search facilities that have been in place for a couple of weeks [0]. With the new search mechanism finally in place, searching druapl.org on drupal.org (rather than on google.com) should be much better than it used to be.
[0] http://drupal.org/node/56057
"Jason Flatt" wrote:
On Wednesday 12 April 2006 11:14 am, Lists wrote:
"Karthik" wrote:
A very quick search gives the answer: http://www.google.com/search?q=%7Bhead%7D%20%7Bstyles%7D%20drupal
We should all probably lose the habit of relying on google to search drupal.org :)
Perhaps that'll happen when Drupal searching yields results as useful as Google. :) Right now, it's hit or miss. And, it's hard to limit searches to a particular site area ... something that's quite easy with Google.
You sound like you haven't checked out the new search facilities that have been in place for a couple of weeks [0]. With the new search mechanism finally in place, searching druapl.org on drupal.org (rather than on google.com) should be much better than it used to be.
Ah, the gulf between "should" and "is". ;)
I don't think the Drupal search algorithm is quite on par with Google's algorithm, but I'll take your word for it.
-- Gary