Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-25 14:42:02

kadams1869
New Member
Registered: 2006-01-25
Posts: 5

Installing for the first time

When I go to the index.php file in the textpattern/setup/ directory I follow the directions until after I enter the userid/password/db/etc and then I get a “Fatal error: Call to undefined function mysql_connect() … on line 189” error. What should I do?

Offline

#2 2006-01-25 15:38:03

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: Installing for the first time

It looks like PHP doesn’t have MySQL compiled in. Check the output of phpinfo() to be sure.

You can create a new file with the following contents:

<?php
phpinfo();
?>

Visit that file with your browser, and it will list the various modules compiled into PHP—mysql should be listed there.

-Kurt


kurt@kurtraschke.com

Offline

#3 2006-01-25 17:26:59

kadams1869
New Member
Registered: 2006-01-25
Posts: 5

Re: Installing for the first time

Its not there. How do I add it?

Offline

#4 2006-01-25 17:58:55

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Installing for the first time

You ask your host, or if you are doing it yourself you Read The Fine Manual of PHP.

http://de3.php.net/mysql
http://de3.php.net/manual/en/install.windows.extensions.php (assumin you are on windows…)

Offline

#5 2006-01-25 19:12:36

kadams1869
New Member
Registered: 2006-01-25
Posts: 5

Re: Installing for the first time

Thanks.

Offline

#6 2006-01-25 19:37:48

kadams1869
New Member
Registered: 2006-01-25
Posts: 5

Re: Installing for the first time

Okay. I have downloaded the php_mysql and php_mysqli dll’s and placed them in the c:\php\extensions directory. I have modified the php.ini file and set “extension_dir=C:\php\extensions” and uncommented “extension=php_mysql.dll” and “extension=php_mysqli.dll”. Now when I run the phpinfo() I get:

PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\php\extensions\php_mysql.dll’ – The specified module count not be found. in Unknown on line 0

I get a like error for the php_mysqli.dll. Please help!

Offline

#7 2006-01-25 20:05:45

kadams1869
New Member
Registered: 2006-01-25
Posts: 5

Re: Installing for the first time

Nevermind. I figured out that the libmysql.dll belonged in the installation directory not the extension dir. Thanks for all of your help!

Offline

Board footer

Powered by FluxBB