LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   php with mysql (https://www.linuxquestions.org/questions/linux-software-2/php-with-mysql-167472/)

Longinus 04-07-2004 06:10 PM

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

Longinus 04-07-2004 10:19 PM

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

Longinus 04-08-2004 09:12 AM

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?

Longinus 04-08-2004 09:23 PM

ah! i need help please

Hangdog42 04-09-2004 07:26 AM

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.

kev82 04-09-2004 08:38 AM

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.

Longinus 04-09-2004 01:05 PM

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?

Hangdog42 04-09-2004 01:16 PM

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.

Longinus 04-09-2004 04:05 PM

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


All times are GMT -5. The time now is 03:56 PM.