niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » PHP
A webserver (PHP 5) with a few database server (MySQL)
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
¥|¥J
*nix forums beginner


Joined: 21 Jul 2006
Posts: 2

PostPosted: Fri Jul 21, 2006 1:43 am    Post subject: A webserver (PHP 5) with a few database server (MySQL) Reply with quote

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.
Back to top
Benjamin Esham
*nix forums beginner


Joined: 13 Jul 2006
Posts: 7

PostPosted: Fri Jul 21, 2006 2:41 am    Post subject: Re: A webserver (PHP 5) with a few database server (MySQL) Reply with quote

Â¥|Â¥J wrote:

Quote:
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
bdesham@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
Back to top
¥|¥J
*nix forums beginner


Joined: 21 Jul 2006
Posts: 2

PostPosted: Fri Jul 21, 2006 2:56 am    Post subject: Re: A webserver (PHP 5) with a few database server (MySQL) Reply with quote

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" <bdesham@gmail.com> wrote in message
news:pan.2006.07.21.02.40.50.206705@gmail.com...
Quote:
¢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
bdesham@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
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 7:48 pm | All times are GMT
navigation Forum index » Programming » PHP
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts postfix smtp authentication using mysql stored user/pass rtresidd Postfix 0 Fri Oct 03, 2008 5:58 am
No new posts Postfix + MySQL error: very strange variable %s iWarior Postfix 0 Mon Aug 25, 2008 2:01 pm
No new posts Transfer qmail email account to postfix server tallman Postfix 0 Thu Jun 05, 2008 12:43 pm
No new posts NFS server on Solaris 10 gurgle Solaris 0 Tue Sep 04, 2007 7:05 pm
No new posts Help required for configuring the VPN Server in Linux SHERDIL security 0 Sun Nov 19, 2006 2:22 pm

Mortgage Calculator | Credit Card Consolidation | Online Advertising | Credit Cards | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1944s ][ Queries: 16 (0.0944s) ][ GZIP on - Debug on ]