Click to See Complete Forum and Search --> : i'm about to crack my skull open over this!


tweety
10-09-2000, 12:49 PM
i will probably be booted for this post, but i need some fundamental help yet again. you may even question my ability to own a box after this...

i'm running mandrake 7.1 on one of my machines, and have installed it as a server. i'm a web designer, and i want to begin learning php/mysql. the default installation of apache on mdk 7.1 is 1.3.12 (which is the same version on apache's site).

i ran the rpm -qa|more to find my installed packages dealing with apache (2) and php(3, all dealing with version 3, i want to go to version 4).

i tried to rpm -e <packagename> (i believe that is the correct command) to remove the apache rpm's, but was given errors basically dealing with apache's requirement for perl and some other packages installed.

i've read that i need to uninstall older versions of apache, php, and mysql (if they are all installed) before i load new versions of the respective programs. why is this? are they not automatically overwritten (maybe i'm M$ spoiled).

also, am i correct in assuming that i need to install the three (apache, mysql, php) in a certain order, with apache being last?.

many of the articles i have read basically say 'uninstall older versions, and then follow these steps'... leaving me a little unclear on the whole uninstalling deal.

i appreciate any help, and will not be the _slightest_ bit offended if i get a url to a decent article instead of a posted answer. also, i'm trying to work at the command line, instead of using a gui (maybe i'm a purest, but i have a better understanding of html from hardcoding it... i'd like to follow suit w/ linux) so command line resources are very much appreciated.

just leave my mother out of any flames http://www.linuxnewbie.org/ubb/smile.gif every time i say linux, she thinks i'm mispronouncing one of the 'peanuts'.


thanks, and have a great day.



[This message has been edited by tweety (edited 09 October 2000).]

scottt
10-09-2000, 01:24 PM
Hello my friend,
I believe you can just do an:

rpm -e --nodeps packagename

and not get the perl error. What the error prolly is, is that mod_perl is installed and requires apache.

Or you can download every thing in rpm format.

php and mysql and apache if you want and do:

rpm -Uvh packagename.rpm packagename2.rpm

For a good article on installation look at:
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/

Hope this helps.
Cheers,

tweety
10-09-2000, 03:27 PM
if i do removed everything, and perl is dependent on apache, will i need to

a) remove perl, and reinstall it along with everything else, or

b) just install everything besides perl, and it will still be able to work with the reinstalled version of apache?

scottt
10-09-2000, 03:49 PM
Either a or b.

A would be the safest.....

But I though you already had the latest version of apache. Can't you just install the php and sql rpm's?

Scott

mangeli
10-09-2000, 03:55 PM
Just follow the instructions at the url that scott gave you and change the rc.httpd file to open the new apache...



------------------
http://www.tinyminds.f2s.com

tweety
10-09-2000, 03:58 PM
i am under the impression (and someone please correct me if i'm wrong) that my two options for installing php are as either:

a) a module
or
b) a cgi

i prefer the module version, and for that version, don't you have to install php and then apache?

(i don't know what the (a) and (b) stuff is. . . maybe a throwback to school )

tweety
10-09-2000, 04:02 PM
<sorry, cache problem, i posted twice>


[This message has been edited by tweety (edited 09 October 2000).]

scottt
10-09-2000, 04:02 PM
Just use the module. I did and I feel greaat! I'm running apache, mysql, and php on www.primewest.net (http://www.primewest.net) just as kinda a testing site thing. I just followed the directions I gave you.

tweety
10-09-2000, 04:54 PM
i noticed you are using php-nuke.

are you using php3 or php4?

php-nuke looks pretty cool, but i've noticed alot of the sites using it look the same. is this a 'default' type deal, or can it be changed?

(my how i've strayed from this thread, but i've got a better idea of what is going on, and i wish 5 o'clock would hurry up so i can go home and try it!)

scottt
10-09-2000, 05:11 PM
Yes I am.

4

Oh it can be changed. I've teaked it a little. But once I'm more versed in php, I believe massive tweaking will be in order.

Sweede
10-09-2000, 05:16 PM
rpm -e `rpm -qa | grep apache`
rpm -e `rpm -qa | grep php`
rpm - Uhv perl-5.6.i386.rpm
(` = backtick)

that usually does a good job of uninstalling things.

ok you dont need to update to the latest perl, but it doesnt hurt http://www.linuxnewbie.org/ubb/smile.gif