Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th May 2006, 08:20
kong121s kong121s is offline
Member
 
Join Date: Apr 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default MySQL is not enabled in PHP Configure

I can't use mysql_connect in php page.
then I run test.php that contain this code
Code:
<? phpinfo(); ?>
It appears many table.
in Configure Command row. It show this
Code:
./configure' '--build=x86_64-redhat-linux' '--host=x86_64-redhat-linux' 
'--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' 
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' 
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' 
'--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' 
'--mandir=/usr/share/man' '--infodir=/usr/share/info' 
'--cache-file=../config.cache' '--with-libdir=lib64' 
'--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' 
'--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' 
'--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' 
'--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' 
'--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' 
'--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' 
'--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' 
'--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' 
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' 
'--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' 
'--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' 
'--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' 
'--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' 
'--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' 
'--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' 
'--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader'
'--disable-xmlwriter'
How to fix this. I know it is my mistake on Fedoro core5 installation.
but I don't want to reinstall all.
Thank you

Last edited by kong121s; 18th May 2006 at 08:25.
Reply With Quote
Sponsored Links
  #2  
Old 18th May 2006, 08:56
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Just install the php-mysql package from fedora to get mySQL support.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 18th May 2006, 10:35
kong121s kong121s is offline
Member
 
Join Date: Apr 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried to run "yum install php-mysql" , but not work.

But now, I run this command.
"yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc
php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick
libxml2 libxml2-devel"
It already work.

But result of test.php didn't change??
Does "--without-mysql" mean I can't use mysql??
Reply With Quote
  #4  
Old 18th May 2006, 10:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Quote:
Originally Posted by kong121s
But result of test.php didn't change??
Does "--without-mysql" mean I can't use mysql??
No, it just means MYSQL is not compiled in. This is OK for most linux distributioons incl. fedora.

Please check your phpinfo output, if there is a mysql section. You can also try to restart your apache webserver.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 18th May 2006, 12:46
kong121s kong121s is offline
Member
 
Join Date: Apr 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

thank, till.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make php to work with mysql (php installed with apt-get, (no mysql support) grafik Installation/Configuration 3 16th May 2006 00:18
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58
all my site go to /var/www/ Absolusteph Installation/Configuration 14 11th March 2006 22:27
Mandriva 10.2 Perfect Setup Install Problems... ctroyp Installation/Configuration 12 30th December 2005 17:04
ERROR: Could not configure PHP guybrush Installation/Configuration 3 4th November 2005 19:11


All times are GMT +2. The time now is 09:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.