Connecting Tech Pros Worldwide Forums | Help | Site Map

Trouble with Apache, PHP, pear

Ron King
Guest
 
Posts: n/a
#1: Jul 17 '05
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL
installed correctly. I could serve web pages, MySQL worked, and when I
tried the phpinfo() function, I got a page that looked OK. I could
create simple php pages and serve them up. Then I tried to install
pear, and things started to be not OK after all.

phpinfo() told me that the 'Configure Command' had both the following
in it:

--with-pear=/usr/share/pear
--without-pear

So I tried to install pear manually, and when I tried the command:

$ lynx -source http://go-pear.org/ | php

I got the following response:

bash: php: command not found

I went looking for the executable so I could run it from that
directory, and I couldn't find it anywhere.

I apparently have the following rpms installed:

apache2-2.0.48-6.3.100mdk
apache2-common-2.0.48-6.3.100mdk
apache2-manual-2.0.48-6.3.100mdk
apache2-mod_cache-2.0.48-6.3.100mdk
apache2-mod_disk_cache-2.0.48-6.3.100mdk
apache2-mod_perl-2.0.48_1.99_11-3mdk
apache2-mod_php-2.0.48_4.3.4-1mdk
apache2-mod_proxy-2.0.48-6.3.100mdk
apache2-mod_ssl-2.0.48-6.3.100mdk
apache2-mod_suexec-2.0.48-1mdk
apache2-modules-2.0.48-6.3.100mdk
apache-conf-2.0.48-2mdk

Also the following php-related rpms:

libphp_common432-4.3.4-4.1.100mdk
php-imap-4.3.4-1mdk
php-ini-4.3.4-1mdk
php-mysql-4.3.4-1mdk
php-xml-4.3.4-1mdk
php-xmlrpc-4.3.4-1mdk

When I use rpmdrake to search for other packages to install, I see the
following choices:

mod_php-4.3.4-1mdk
php432-devel-4.3.4-4.1.100mdk
php432-devel-4.3.4-4mdk
php-calendar-4.3.4-1mdk
php-cgi-4.3.4-4.1.100mdk
php-cgi-4.3.4-4mdk
php-dbg-4.3.4_2.11.5-1mdk
php-manual-en-4.3.4-1mdk
phpMyAdmin-2.5.4-1mdk
php-pear-4.3.4-3mdk
php-pear-Date-1.4-4mdk
php-pear-HTML_Common-1.2.1-3mdk
php-pear-HTML_Select-1.2-3mdk

There are a bunch of other php modules available, but I don't think I
need them right away.

Here's my question: Should I just uninstall Apache and reinstall it,
then install php and pear? Should I compile Apache myself? If I do
that, I'm not sure of all the configuration options I should choose.
Or should I just install the new rpms that I think I want, and
rpmdrake will make everything work nicely together?

Sorry if this is too Mandrake-centric, but I'd like to use RPMs if
possible, I'm hoping that makes it easier to upgrade in the future.

Thanks, Ron

CJ Llewellyn
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Trouble with Apache, PHP, pear


"Ron King" <ronking@dslextreme.com> wrote in message
news:k9h1g0lbkqll1bsd6b5cvdtt1qi5u2q5u0@4ax.com...
-snip-[color=blue]
> Here's my question: Should I just uninstall Apache and reinstall it,
> then install php and pear? Should I compile Apache myself? If I do
> that, I'm not sure of all the configuration options I should choose.
> Or should I just install the new rpms that I think I want, and
> rpmdrake will make everything work nicely together?
>
> Sorry if this is too Mandrake-centric, but I'd like to use RPMs if
> possible, I'm hoping that makes it easier to upgrade in the future.[/color]

Have a go at installing manually, I did Apache 2.0.50 & php 5.0.0 yesterday
from source and it all compiled and installed smoothly. I was even able to
add in stuff that Mandrake leaves out such as curl.

Bare in mind that Mandrake offers apache 1 & 2 so mod_php shouldn't be
installed. You'll need to install the php-pear stuff for pear.


Ron King
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Trouble with Apache, PHP, pear


"CJ Llewellyn" <satest@tmslifeline.com> wrote:
[color=blue]
>"Ron King" <ronking@dslextreme.com> wrote in message
>news:k9h1g0lbkqll1bsd6b5cvdtt1qi5u2q5u0@4ax.com.. .
>-snip-[color=green]
>> Here's my question: Should I just uninstall Apache and reinstall it,
>> then install php and pear? Should I compile Apache myself? If I do
>> that, I'm not sure of all the configuration options I should choose.
>> Or should I just install the new rpms that I think I want, and
>> rpmdrake will make everything work nicely together?
>>
>> Sorry if this is too Mandrake-centric, but I'd like to use RPMs if
>> possible, I'm hoping that makes it easier to upgrade in the future.[/color]
>
>Have a go at installing manually, I did Apache 2.0.50 & php 5.0.0 yesterday
>from source and it all compiled and installed smoothly. I was even able to
>add in stuff that Mandrake leaves out such as curl.[/color]

I assume I should uninstall everything I have now and start from
scratch? Could I at least keep Apache, which is otherwise fine?
[color=blue]
>Bare in mind that Mandrake offers apache 1 & 2 so mod_php shouldn't be
>installed. You'll need to install the php-pear stuff for pear.[/color]

Could you please explain this further? My Apache book tells me that
there are 3 ways to install php: 1) shared module with apxs, 2) static
module, and 3) CGI binary. How can I tell which I have. I'm pretty
sure it's not CGI.

Thanks, Ron

CJ Llewellyn
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Trouble with Apache, PHP, pear


"Ron King" <ronking@dslextreme.com> wrote in message
news:a2j1g0dt6ckirhbm0eifsjhrbud261io0v@4ax.com...[color=blue]
> "CJ Llewellyn" <satest@tmslifeline.com> wrote:
>[color=green]
> >"Ron King" <ronking@dslextreme.com> wrote in message
> >news:k9h1g0lbkqll1bsd6b5cvdtt1qi5u2q5u0@4ax.com.. .
> >-snip-[color=darkred]
> >> Here's my question: Should I just uninstall Apache and reinstall it,
> >> then install php and pear? Should I compile Apache myself? If I do
> >> that, I'm not sure of all the configuration options I should choose.
> >> Or should I just install the new rpms that I think I want, and
> >> rpmdrake will make everything work nicely together?
> >>
> >> Sorry if this is too Mandrake-centric, but I'd like to use RPMs if
> >> possible, I'm hoping that makes it easier to upgrade in the future.[/color]
> >
> >Have a go at installing manually, I did Apache 2.0.50 & php 5.0.0[/color][/color]
yesterday[color=blue][color=green]
> >from source and it all compiled and installed smoothly. I was even able[/color][/color]
to[color=blue][color=green]
> >add in stuff that Mandrake leaves out such as curl.[/color]
>
> I assume I should uninstall everything I have now and start from
> scratch? Could I at least keep Apache, which is otherwise fine?[/color]

No, the Mandrake version of Apache is still in it's original position and
can be run.

When you run the configure script use ./configure --prefix=/usr/local and
that'll build apache well away from your existing install.

This should give you pretty much the same as Mandrake installs (I've added
curl)

../configure --prefix=/usr/local --with-apxs2=/usr/local/bin/apxs --with-mysq
l=/usr
--with-curl=/usr/local --with-gd=/usr --with-gd-native-ttf --enable-discard-
path --disable-force-cgi-redirect --enable-shared --disable-static --disable
-debug --disable-rpath --enable-pic --enable-inline-optimization --enable-me
mory-limit --with-pear=/usr/share/pear --enable-magic-quotes --enable-debugg
er --enable-track-vars --with-versioning --with-mod_charset --with-regex=ph
p --enable-trans-sid --enable-safe-mode --enable-ctype --enable-ftp --with-g
ettext=/usr --enable-posix --enable-session --enable-sysvsem --enable-sysvsh
m --enable-yp --with-openssl=/usr --without-kerberos --with-ttf --with-freet
ype-dir=/usr --with-zlib=/usr --with-zlib=/usr --with-zlib-dir=/usr --with-p
gsql

[color=blue][color=green]
> >Bare in mind that Mandrake offers apache 1 & 2 so mod_php shouldn't be
> >installed. You'll need to install the php-pear stuff for pear.[/color]
>
> Could you please explain this further? My Apache book tells me that
> there are 3 ways to install php: 1) shared module with apxs, 2) static
> module, and 3) CGI binary. How can I tell which I have. I'm pretty
> sure it's not CGI.[/color]

Apache 2 with php is not yet considered stable enough for production sites.
So Mandrake are hedging their bets by including Apache 1 and 2 in the
distribution. The mod_php package is for running php with apache 1.



Closed Thread