Apache php MySQL phpMyAdmin

Post everything else here

Moderators: Website/Forum Admins, Other/Off Topic Moderators

rf
Posts: 30
Joined: Wed Apr 05, 2006 10:16 pm

Apache php MySQL phpMyAdmin

Postby rf » Fri Aug 11, 2006 11:45 pm

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
User avatar
munky
Site Admin
Posts: 826
Joined: Wed Jul 02, 2003 4:54 pm
Location: Phoenix AZ
Contact:

Postby munky » Sat Aug 12, 2006 8:04 pm

is php compiled static into apache? or is it compiled using DSO?

if it's static, make sure `httpd -l` lists the php module.
In God we trust,
Everyone else must have an X.509 certificate.
rf
Posts: 30
Joined: Wed Apr 05, 2006 10:16 pm

Postby rf » Sun Aug 13, 2006 4:36 pm

:(
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
User avatar
munky
Site Admin
Posts: 826
Joined: Wed Jul 02, 2003 4:54 pm
Location: Phoenix AZ
Contact:

Postby munky » Mon Aug 14, 2006 11:41 am

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.
In God we trust,
Everyone else must have an X.509 certificate.

Who is online

Users browsing this forum: No registered users and 4 guests