473,509 Members | 2,950 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trouble with Apache, PHP, pear

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
Jul 17 '05 #1
3 2437
"Ron King" <ro*****@dslextreme.com> wrote in message
news:k9********************************@4ax.com...
-snip-
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.


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.
Jul 17 '05 #2
"CJ Llewellyn" <sa****@tmslifeline.com> wrote:
"Ron King" <ro*****@dslextreme.com> wrote in message
news:k9********************************@4ax.com.. .
-snip-
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.
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.


I assume I should uninstall everything I have now and start from
scratch? Could I at least keep Apache, which is otherwise fine?
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.


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

Jul 17 '05 #3
"Ron King" <ro*****@dslextreme.com> wrote in message
news:a2********************************@4ax.com...
"CJ Llewellyn" <sa****@tmslifeline.com> wrote:
"Ron King" <ro*****@dslextreme.com> wrote in message
news:k9********************************@4ax.com.. .
-snip-
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.


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


I assume I should uninstall everything I have now and start from
scratch? Could I at least keep Apache, which is otherwise fine?


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

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.


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.


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.

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3306
by: Mike | last post by:
Hi, I have an architectural type question that centers around php. We have a website that people hit that uses php to dynamically generate web pages. We use Apache and php (although we don't have...
5
2341
by: go-tard | last post by:
Hello, I'm wondering if there's a way to pass a value from apache to php through httpd.conf. I've noticed that php settings can be changed using php_value. Is there a way to send a value that is...
4
2604
by: Marek Möhling | last post by:
My server (Apache/1.3.28 - PHP/4.3.3) is configured to receive gzipped data via: Header append Accept-Encoding "gzip, deflate" PHP is configured to send gzipped data via: php_value...
2
14146
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
0
1232
by: st | last post by:
Hi all, I can't get packageInfo of some packages installed on my system(Fedora Core 3 with bundled httpd and php): # pear list Installed packages: =================== Package Version...
1
1685
by: bertoulin | last post by:
When I run my script via the shell (e.g. "php test.php") the script generates the correct output everytime. If I attempt to access the script via the web (e.g. http://localhost/test.php), Apache...
0
2032
by: bwhitehd | last post by:
I'm having a problem installing php. The compile seems to go fine, but when it gets to the install step I get the following errors. Does anyone have an idea of what might be the problem? We...
2
2850
by: Paul | last post by:
I am moving an existing app written years ago to a new server. It uses Sigma Template 1.3 and Quickform 1.1.1 and PEAR.php,v 1.1.1.1 2004/02/16 The directory structure is like this: /site...
5
5200
by: john | last post by:
All: Very experienced developer, newbie to PHP. My situation: I have installed on my WIndows XP machine the following: * PHP 5.2.1 * MySQL 5.0 * Apache 2.2 All of these are installed...
0
7234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7136
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7344
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5652
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4730
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
441
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.