Configuring Apache Server for home network

peterchan75

Supremacy Member
Joined
Apr 26, 2003
Messages
6,719
Reaction score
529
Hi,

Let's say I have 5 PCs connected to my home network. I would like to 2 MySQL databases, database A in PC1 and database B in PC2. All the PCs are able to access to the 2 databases.

How to go about configuring the Apache servers ?

Thanks.
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
Thanks. I haven't reached MySQL stage.
Will need to sort out the Apache setup first. I am looking at the doc now.
Apache Virtual Host documentation - Apache HTTP Server Version 2.2

Apache do not normally uses the MySQL itself. It's more often that the web application that is connecting to the databases.

Only a few modules in Apache will utilised the database such as mod_authn_dbd, mod_log_dbd etc.

Look at the web application documentation, or scripting engine documentation such as PHP, Perl, etc on how the database drivers in these engines connect to the database.
 

peterchan75

Supremacy Member
Joined
Apr 26, 2003
Messages
6,719
Reaction score
529
Sorry, I didn't mention PHP. I plan is to use browser to access 2 saparate MySql databases. Will use PHP to create form/template for display and update database. Many reference books only mention the Apache server setup briefly and don't even talk about vertual host.
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
Sorry, I didn't mention PHP. I plan is to use browser to access 2 saparate MySql databases. Will use PHP to create form/template for display and update database. Many reference books only mention the Apache server setup briefly and don't even talk about vertual host.

Why do you need to recreate the wheel when phpMyAdmin is already available ? phpMyAdmin does not require the use of virtual host. One instance of phpMyAdmin can already manage multiple databases.

Configuration — phpMyAdmin 4.4.0-dev documentation
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top