|
|
|
|
Joined: Aug 2000
Posts: 3,590 Likes: 1
Moderator
|
|
Moderator
Joined: Aug 2000
Posts: 3,590 Likes: 1 |
I have not used WWWThreads or PHP before. I downloaded the files, got mysqld up and running, and edited main.inc.php and config.inc.php.
When I attempt to run createtable.php, I get the following error:
Fatal error: Call to undefined function: mysql_pconnect() in /home/httpd/html/wwwthreads/mysql.inc.php on line 26
I checked the php, and there is a simple branch to invoke either mysql_connect() or mysql_pconnect() depending on whether there are persistent connections. I grepped on the function names within the wwwthreads package, and no implementation of either of these methods is offered.
Am I missing some sort of shared library that needs to be installed? I am running Red Hat 7 and Apache. Please help.
Corby
|
|
|
|
|
Joined: May 1999
Posts: 41
Power User
|
|
Power User
Joined: May 1999
Posts: 41 |
Try running a simple php script that just has the command phpinfo(); You can then see if persistent connections are allowed to the database. Not sure if that will help, but it may give you a little information. http://www.clickteam.com
|
|
|
|
|
Joined: Aug 2000
Posts: 3,590 Likes: 1
Moderator
|
|
Moderator
Joined: Aug 2000
Posts: 3,590 Likes: 1 |
Thanks! I checked the PHP documentation, and verified that I was missing the PHP-MYSQL libraries. I upgraded to version 4.0.4 of PHP, and I installed the 4.0.4 mod_php and php-mysql packages.
Now, when I run the config.inc.php script, I get the following messages:
Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/httpd/html/wwwthreads/mysql.inc.php on line 26 Seeya! : Warning: Supplied argument is not a valid MySQL-Link resource in /home/httpd/html/wwwthreads/mysql.inc.php on line 33 Creating the tables...
Warning: Supplied argument is not a valid MySQL-Link resource in /home/httpd/html/wwwthreads/mysql.inc.php on line 58 Seeya! : Board table created...
Warning: Supplied argument is not a valid MySQL-Link resource in /home/httpd/html/wwwthreads/mysql.inc.php on line 58 Seeya! : Posts table created... Adding a master poll table... . . .
I have no problems connecting to the database and issuing commands with /usr/local/mysql/bin/mysql. Are there other packages I need to update?
Thanks again for any assistance, Corby
|
|
|
|
|
Joined: Mar 2000
Posts: 84
Member
|
|
Member
Joined: Mar 2000
Posts: 84 |
Have you configured your wwwthreads setup by changing the variables in config.inc, main.inc, mysql.inc and themes.inc yet? The paths given in the error look like the familiar defaults Scream uses in the files before the user customizes it to their particular setup. --------- Shalazar www.charisma-carpenter.com
|
|
|
|
|
Joined: Aug 2000
Posts: 3,590 Likes: 1
Moderator
|
|
Moderator
Joined: Aug 2000
Posts: 3,590 Likes: 1 |
Turns out that sock error is a known bug in the version of MySQL that ships with Red Hat 7. I updated to MySQL 3.23.29, and everything works great.
Thanks, Corby
|
|
|
|
|
Joined: Aug 2000
Posts: 3,590 Likes: 1
Moderator
|
|
Moderator
Joined: Aug 2000
Posts: 3,590 Likes: 1 |
I dont quite understand why ppl answer these questions when they have no idea what they are talking about. What you need to do is to configure and compile the php package with mysql support, a simple ./configure --help | grep -i mysql will give us...
--with-mysql[=DIR] Include MySQL support. DIR is the MySQL base directory. If unspecified, the bundled MySQL library
In other words, you need to use that switch when you configure the php package in order to get support for mysql. Even thought it's installed on the box dosn't mean that there is any connection between php and mysql.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 253
Joined: January 2000
|
|
|
Forums63
Topics37,583
Posts293,957
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 4445
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 30
|
|
|
|
|
|