Jump to content
The Uniform Server Community
mojito

Set a config option to allow me to use multiple sites local

Recommended Posts

I use Uniform Server to test and develop joomla sites.

localhost/sitea

localhost/siteb/

etc

 

within the joomla config though the host is given as just localhost for all the sites.

if i set the host as lcoalhost/sitea then the database connection dies...

 

this is what I could use some help to understand...so in a way I guess joomla is using the host value to connect to the db - but when i created the db it was created using phpmyadmin kind of out of the box...

 

where do i make the changes...the site works apart from images specified like

 

/images/test.jpeg as this should be here /sitea/images/test.jpg

 

so I want the root of each site to be the sites root not localhost root...

 

I hope this helps explain better


http://www.landed.at - a travel forum, please come along and post something about a destination you know.

Share this post


Link to post
Share on other sites

Each Joomla site requires a separate folder and database.

 

1) Create folder www/sitea – Your first Joomla site

2) Create folder www/siteb – Your second Joomla site

 

Each of these folders (sites) requires a corresponding database.

Using phpMyAdmin

1) Create a database named sitea – First Joomla database

2) Create a database named siteb – Second Joomla database

 

Note: Since these are test Joomla sites no need to create a separate user or password for the databases use user root and password root when requested during Joomla installation.

 

Installation - sitea:

 

1) Unzipped Joomla full package and copy to folder www/sitea

Type localhost/sitea/ the installer (for your first Joomla site ) starts

Follow installation instructions, for MySQL server use

 

Database Type: mysql

Host Name: localhost

Username: root

Password: root

Database Name: sitea

 

After installation site access:

* Site address: http://localhost/sitea/

* Admin address: http://localhost/sitea/administrator/

 

Installation - siteb:

 

2) Unzipped Joomla full package and copy to folder www/siteb

Type localhost/siteb/ the installer (for your second Joomla site ) starts

Follow installation instructions, for MySQL server use

 

Database Type: mysql

Host Name: localhost

Username: root

Password: root

Database Name: siteb

 

After installation site access:

* Site address: http://localhost/siteb/

* Admin address: http://localhost/siteb/administrator/

 

The following although a little dated is worth reading:

http://wiki.uniformserver.com/index.php/In...mla_on_5.0-Nano

 

All the best

Ric :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...