reinstalling php

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

reinstalling php

Post by ol4pr0 »

my Question.

first i had a rpm install of the apache 1.3 and php 4.2.1

problems i had -> mysql_connect undefined
answer -> do a ./configure --with-mysql=ect.

however with the rpm this should already been done if i am not mistaken.

Now i am trying to reinstall everthing exept de apache.

when trying to configure --with-mysql --with-apache=/usr/include/apache ( sinds this is where the httpd.h is..

however on ./configuration with the apache command it will say that it can not find the httpd.h

locate httpd.h -> /usr/include/apache/httpd.h

I am kinda stuck here

Help would be very welcome
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Actually, you should be able to find a php-mysql rpm, and you just install that.
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

yea i know that one does come with a mysql 3.23...

however the default httpd / php that came with the red hat didnt configure it well.. ( or not at all.. )

however i will give it a try with the php-mysql

( just for now, sinds it will need to work with php 4.3.4 and apache2 aswell for certen fixes in security and all that.

Dont think that installing the php-mysql is the best option here..
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

Actually, Jason is correct here. If you are using the standard stuff that came with Red Hat (the rpm packages) you SHOULD BE using the php-mysql rpm.

Otherwise, what you should REALLY be doing is using Apache 1.3.x and compiling PHP to work with it. The reason being that PHP with Apache 2.0 is not a good idea due to Apache 2 having a very different execution model (threads as opposed to forks).

Follow the instructions carefully in the PHP source download. They'll help you through it. It may be a little tough the first couple of times, but it will help you in the long run.

Cheers,
BDKR
Post Reply