LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2004, 07:10 PM   #1
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Rep: Reputation: 30
Question need connection php mysql.. help


hi

i have been wondering how i can enable php with mysql

i looked in the phpinfo() file and i noticed i am missing mysql

my php was already installed when i installed slackware

i searched here on linuxquestions.org on how i would be able to solve this

i have found that people have gotten it to work by getting php-mysql-4.2.2-8.0.5

so i :

rpm -i php-mysql-4.2.2-8.0.5

and restarted apache and see if that would work

but it didnt

how would go about uninstalling php so that i can:

./configure --with-mysql=shared,/usr

any suggestions?

thanks

Last edited by Longinus; 04-08-2004 at 10:19 AM.
 
Old 04-07-2004, 11:19 PM   #2
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
hrm....

am i installing the rpm wrong?

it doesnt give me any error nor any output on the screen and bash gave me a prompt after 1 second of pressing enter... the file is like 10 megs though...

any suggestions?

thanks
 
Old 04-08-2004, 10:12 AM   #3
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
hrmm....

can i just reinstall php without getting rid of my old copy?

like would it just overwrite my old stuff so i dont have to worry about deleting my current php stuff?
 
Old 04-08-2004, 10:23 PM   #4
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
ah! i need help please
 
Old 04-09-2004, 08:26 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
I honestly don't know how the rpm was compiled, but you are probably better off getting the PHP source code and compiling yourself. Just be sure to remove the PHP rpm before you do so.


There is a decent set of installation documents on the Snort website that may be helpful.
 
Old 04-09-2004, 09:38 AM   #6
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
can i suggest the xampp project, its apache, php, perl, mysql, ftp all bundled into one tarball, its already compiled and configured, ive had no problems with it.
 
Old 04-09-2004, 02:05 PM   #7
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
ah cool thanks guys

yeah i was thinking about recompiling php and enabling it with mysql

but when i installed slackware it cam with php

so i dont know how to uninstall it

any suggestions?
 
Old 04-09-2004, 02:16 PM   #8
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
That would be pkgtool. Pretty much everything in Slackware is installed as a Slackware package, and pkgtool (as well as installpkg and removepkg) are the tools you use to manage them.

By the way, if you compile from source, you need to install checkinstall . It replaces the make install step of compiling and instead creates a Slackware package and then installs it. Basically it allows you manage your compiled programs as easily as a Slackware package.
 
Old 04-09-2004, 05:05 PM   #9
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
ah thanks alot hangdog42

yeah till now ive been using make install and i have alot of directories just laying around everywhere

thanks for the advice
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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-server4.1 and mod php-mysql conflig kernelvn *BSD 0 06-18-2005 12:52 PM
Problem getting PHP to recognize MySQL, Using PHP 4.0 and MySQL 4.0.20 d2army Programming 4 06-27-2004 09:54 PM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 03:54 PM
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 01:06 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration