473,788 Members | 2,868 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1684
Â¥|Â¥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.c om | 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_erro r()" 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.c om | 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
3388
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: 1. An html page that holds the applet. 2. a php page that accepts data submitted to it by the applet via the $_POST array and writes it to the mysql database. This page never makes it to the browser window. 3. a simple Thank you page that shows...
6
1497
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 MySQL. I noticed that there is no mysql.so file in the /usr/lib/php4 directory. Please let me know what I need to do in order to get this working. Thanks!
0
1119
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 MySQL was installed from the source in /usr/local/mysql/ directory and the version is 4.1.8
12
2795
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 both the iis and sql server in a single machine. Not too long ago, the machine had some hardware problems, and management has decided to purchase new servers, for both asp.net and sql server.
2
2516
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 `test`.`sp_returns_string`$$ CREATE PROCEDURE `test`.`sp_returns_string`(OUT vOutput varchar(32))
3
3222
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 to configure them on my computer. Can somebody help me - this is what I have done so far. Installed Apache 2.0, it worked perfectly ( I checked with my browser - http://localhost) till the point where I started to point where I
6
9757
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 uploaded to my server but it does not work . I script does not display the data from the database. Can anyone look at this and help me out.
5
4592
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
1374
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 the button to move to another month I can’t move to another month. I have no idea why it happened. Here is the old calendar code: <?php $dbCnx = @mysql_connect("localhost","", "") or die('Could not Connect to the database')...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10175
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10112
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7518
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4070
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 we have to send another system
2
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.