473,396 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

A webserver (PHP 5) with a few database server (MySQL)

Dear all,

Please help~~

I have a problem in connecting my new FC5 webserver (apache 2.2 + php 5.1.4)
to a few database servers through the PHP scripts (RH9, FC2, FC3). I have
set host privileges correctly for the database servers. It seems that after
I migrated the php files (originally in each database server) to the
centralised FC5 webserver, it failed to work. Is it because of the PHP5 is
compiled with MySQL version 4 +? Since those RH9 / FC2 and FC3 are equipped
with only MySQL 3.2x.

What I have done:

1. Rebuild the Apache 2.2.0, PHP 5.1.4 with mysql support (both mysqli &&
mysql) on FC5 webserver
2. Host privileges in each of the database servers.
3. Firewall rules for port 3306 on each server.

What is successful:
1. The FC5 webserver is able to connect to its own MySQL server (version
4.x)

What is failed:
1. There wasn't any error message from PHP 5 (display through the browser),
until I pop into console and type at the prompt let say "php index.php",
then all the error message was displayed through the console.
Many thanks
M.
Jul 21 '06 #1
2 1668
Â¥|Â¥J wrote:
I have a problem in connecting my new FC5 webserver (apache 2.2 + php
5.1.4) to a few database servers through the PHP scripts (RH9, FC2, FC3)

[...]

What is failed: 1. There wasn't any error message from PHP 5 (display
through the browser), until I pop into console and type at the prompt let
say "php index.php", then all the error message was displayed through the
console.
It would be a great help if you could be more specific about your problem...
exactly what problems are occuring? If you could quote some of the errors
the people in this group would have a better chance of being able to fix
them.

--
Benjamin D. Esham
bd*****@gmail.com | AIM: bdesham128 | Jabber: same as e-mail
"I haven't been on Usenet for very long, but it seems to be a
black hole with regards to the time it requires to keep up with
it." — an anonymous Usenet user, from a 1983 survey

Jul 21 '06 #2
Dear Benjamin,

I was unable to get any error code from the browser. I can only add "or die
('XXX')" and "mysql_error()" to indicate that I was unable to connect to the
database server. Let me try a little bit more. I do appreciate for any kind
of help.

Thanks

M
"Benjamin Esham" <bd*****@gmail.comwrote in message
news:pa****************************@gmail.com...
¢D|¢DJ wrote:
>I have a problem in connecting my new FC5 webserver (apache 2.2 + php
5.1.4) to a few database servers through the PHP scripts (RH9, FC2, FC3)

[...]

What is failed: 1. There wasn't any error message from PHP 5 (display
through the browser), until I pop into console and type at the prompt let
say "php index.php", then all the error message was displayed through the
console.

It would be a great help if you could be more specific about your
problem...
exactly what problems are occuring? If you could quote some of the errors
the people in this group would have a better chance of being able to fix
them.

--
Benjamin D. Esham
bd*****@gmail.com | AIM: bdesham128 | Jabber: same as e-mail
"I haven't been on Usenet for very long, but it seems to be a
black hole with regards to the time it requires to keep up with
it." ¡X an anonymous Usenet user, from a 1983 survey

Jul 21 '06 #3

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

Similar topics

5
by: apchar | last post by:
I am trying to use php as a kind of servlet to act as a middle man between a java applet and mysql. I know java has jdbc but it's flakey and painful. php access to mysql is much nicer. So I have:...
6
by: John | last post by:
All: I have PHP 4.2.2 and MySQL 3.23.54 running on a RH9 server. I've been using the MySQL database for other things but have now decided to use PHP. Currently, I can't get PHP to recognize...
0
by: Dev | last post by:
Hi, I am trying to configure PHP for the MySQL support. I am using redhat 8.0 with 2.4.18-14 kernel # uname -a Linux Server 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux ...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
2
by: James | last post by:
Hey everyone... I'm having an issue with a seemingly simple piece of PHP/MySQL I have a stored procedure in MySQL5 as such: SQL: -------------- DELIMITER $$; DROP PROCEDURE IF EXISTS...
3
by: genenamg | last post by:
Hi, I am trying to run and configure Apache 2.0, php 5 and mysql on win xp professional - this is the first time I have tried to install and configure all three. I am having difficulty trying...
6
jafarsalam
by: jafarsalam | last post by:
hi; I'm new to PHP and AJAX MySQL codes. I found a simple code for PHP and AJAX MySQL Database communication on : http://www.w3schools.com/php/php_ajax_database.asp I downloaded the code and...
5
by: mtuller | last post by:
I would like to encrypt data passed between my web server and the database server. I have looked all over, but don't see any information on how to connect to mysql via ssh with php. Is it possible?
1
by: newphpcoder | last post by:
I changed my database from mysql 4.1.10 to mysql 5.0 and I encountered error in my calendar event page. The output of my calendar date was change instead of date it becomes “>” and also when I press...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...

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.