LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-17-2004, 04:00 PM   #1
smaida
Member
 
Registered: Apr 2004
Location: Richmond, VA - USA
Distribution: Debian
Posts: 62

Rep: Reputation: 15
Question PHP and MYSQL ("mysql_connect")


Hello,

I am currently trying to install phpbb on debian with apache2 and I have been chasing down a blank index.php issue for several days.

It appears now that the server is unable to find the function "mysql_connect" which I suspect is at the core of my problem.

Here is the configure command displayed from my phpinfo script:

Code:
 	 '../configure' '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2'

'--with-regex=php' '--with-config-file-path=/etc/php4/apache2' '--disable-rpath' '--enable-memory-limit' '--disable-debug' '--with-layout=GNU' '--with-pear=/usr/share/php' '--enable-calendar' 
'--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' 
'--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' 
'--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' 
'--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' 
'--enable-shmop' '--enable-sockets' '--enable-wddx' '--disable-xml' 
'--with-expat-dir=/usr' '--enable-yp' '--with-zlib' '--without-pgsql' 
'--with-kerberos=/usr' '--with-openssl=/usr' 
'--with-exec-dir=/usr/lib/php4/libexec' '--disable-static' 
'--with-curl=shared,/usr' '--with-dom=shared,/usr' 
'--with-dom-xslt=shared,/usr' '--with-dom-exslt=shared,/usr' 


'--with-zlib-dir=/usr' '--with-gd=shared,/usr' '--enable-gd-native-ttf' 
'--with-jpeg-dir=shared,/usr' '--with-xpm-dir=shared,/usr/X11R6' 
'--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr' 
'--with-imap=shared,/usr' '--with-imap-ssl' '--with-ldap=shared,/usr' 
'--with-mcal=shared,/usr' '--with-mhash=shared,/usr' '--without-mm' 
'--with-mysql=shared,/usr' '--with-unixODBC=shared,/usr' 
'--with-recode=shared,/usr' '--enable-xslt=shared' 
'--with-xslt-sablot=shared,/usr' '--with-snmp=shared' 
'--enable-ucd-snmp-hack' '--with-sybase-ct=shared,/usr' 
'--with-ttf=shared,/usr' '--with-t1lib=shared,/usr'
Doesn't the above mean that mysql support is installed or is this just the command that was run when configuring php?

If in fact php mysql support is not installed do you have any suggestions?

php, apache, mysql and phpbb were all installed using apt and the php4.load and php4.conf symlinks are set in the mods-enabled section of /etc/apache2/

Squirrelmail and phpmyadmin work with out error althout testing for the mysql_connect function in their respective directories also shows that the function is not available.

Thanks for the help

Shawn

Last edited by smaida; 05-17-2004 at 04:03 PM.
 
Old 05-17-2004, 04:59 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you have php4-mysql package?
 
Old 05-17-2004, 05:40 PM   #3
smaida
Member
 
Registered: Apr 2004
Location: Richmond, VA - USA
Distribution: Debian
Posts: 62

Original Poster
Rep: Reputation: 15
Yes,

It's been installed with apt.
 
Old 05-17-2004, 05:55 PM   #4
smaida
Member
 
Registered: Apr 2004
Location: Richmond, VA - USA
Distribution: Debian
Posts: 62

Original Poster
Rep: Reputation: 15
I uncommented the following line in my php.ini file.

extension=mysql.so

Then I restarted apache and I am now getting the following error in my php.log file.

[17-May-2004 17:47:41] PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/20020429/msql.so' - /usr/lib/php4/20020429/msql.so: cannot open shared object file: No such file or directory in Unknown on line 0

The file
/usr/lib/php4/20020429/msql.so
does exist

permission are
drwxr-xr-x root root 20020429
-rw-r--r-- root root mysql.so

Not sure if the permissions are the problem or if it's somthing else. I tried changing the permissions and ownership, but that doesn't seem to do anything.

Thanks
 
Old 05-18-2004, 05:27 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Try to make the library executable.
 
  


Reply



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/PHP/Horde "Failed to write session data" Big Money Linux - Software 0 11-23-2004 01:33 PM
Php or Mysql upgrade on Fedora Core 2 "Uptodate" Program geninblaze Fedora 1 07-12-2004 09:56 PM
PHP "for.. loop" to insert into mysql Boby Programming 10 05-29-2004 10:07 AM
Redhat Enterprise AS, php-mysql-4.3.3-4.1.i386.rpm, mysql_connect() error apradhan Linux - Distributions 0 02-18-2004 03:11 PM
php ide with "break" and "trace" Kayaker Programming 3 04-25-2003 02:52 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:50 PM.

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