Page 1 of 1

Apache php MySQL phpMyAdmin

Posted: Fri Aug 11, 2006 11:45 pm
by rf
Hi:
On two identicle computers - one has MySQL, php, Apache, phpMyAdmin that works fine.
On the other computer I have upgraded httpd-2.2.2 to httpd-2.2.3
MySQL from 5.0.20 to 5.0.24
and phpMyAdmin from 2.8.2 to 2.8.2.1
php-5.1.4 has stayed the same. :D

But even though:
httpd.conf
config.inc.php
and my.cnf
are the same on two identical computers running Linux OS

The upgraded programs give me only text on the Firefox browser pointing to a php program.

Is my only solution to go back to the older versions that work? Or is there something I have missed? How to get the graphical interface working in place of the text of the php program? :?

Thanks much :D
rf

Posted: Sat Aug 12, 2006 8:04 pm
by munky
is php compiled static into apache? or is it compiled using DSO?

if it's static, make sure `httpd -l` lists the php module.

Posted: Sun Aug 13, 2006 4:36 pm
by rf
:(
I don't understand the question
is php compiled static into apache? or is it compiled using DSO?
Further research reveals that I installed it using DSO (as a module during the ./configure stage). Re-installing (following Gilmore pg16 Beginning PHP 5 and MySQL) made no difference.

I installed httpd-2.2.3.tar.gz and php-5.1.4.tar.bz2 and mysql-pro-gpl-5.0.24-linux-i686-glibc23.tar.gz in this order: first mysql, httpd-2.2.3 and then php-5.1.4

httpd -l (whether Apache is running or not i.e. /usr/local/apache2/bin/apachectl graceful ) returns "bash: httpd: command not found"

This is probably the answer to the problem. :oops:

So what did I not do or leave out in the installation/configuration? How do I get bash to recognize httpd -l?

(php -v returns "php 5.1.4(cli)"; php-cgi returns "command not found"; apache -v returns "bash: apache: command not found")

Thanks for your much appreciated help.

rf :D

Posted: Mon Aug 14, 2006 11:41 am
by munky
rf wrote::(
I don't understand the question
is php compiled static into apache? or is it compiled using DSO?
read the INSTALL docs distributed with PHP
rf wrote: httpd -l (whether Apache is running or not i.e. /usr/local/apache2/bin/apachectl graceful ) returns "bash: httpd: command not found"

This is probably the answer to the problem. :oops:
no, this is because you have to provide the path to httpd. `/usr/local/apache2/bin/httpd -l`

if you are going to administer a linux server, you are going to have to learn how to use it first.