Using database for a sub domain
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Using database for a sub domain
Using database for a sub domain
06-11-2009 8:09 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
All I need to do now is to get my forum software installed but I need to get the sub domain to use my MySQL DB in Plesk PAYH. I can't quite figure that one out.
Just tried the 'web applications' tool in plesk but it rejected the install for the obvious reason that it can't connect to the database.

Help in pointing things in the right direction needed please.
Andy
Re: Using database for a sub domain
06-11-2009 9:43 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
When you install the packages you need to specify a different table name prefix obviously. I also created an extra user on the database which I use to access it from the me.uk applications.
jelv (a.k.a Spoon Whittler) Why I have left Plusnet (warning: long post!) Broadband: Andrews & Arnold Home::1 (FTTC 80/20) Line rental: Pulse 8 Home Line Rental (£14.40/month) Mobile: iD mobile (£4/month) |
Re: Using database for a sub domain
16-11-2009 10:15 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote webinstall.php
Then you type into the address bar of browser, domain (where file is) /webinstall.php and allegedly hey presto! but it clearly isn't seeing my DB so how do I tell my subdomain to use my main DB. Can't seem to tell subdomain.domain.co.uk to point at DB. I'm clearly missing something but need a prod in the right direction.
On the other hand perhaps this method doesn't work on payh and I need to untar the full package using the CRON method and manually telling it where things are.
Guidance from you far superior beings please.
Andy
Re: Using database for a sub domain
16-11-2009 11:11 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
In Plesk, when you created the database (using a name you chose) you will have created a database login and user name. In the installation when it asks for the database details you enter the name of the database server which will be something like plesk-db01.plus.net and the login name and password you created. You will also have to give it the name of the database you created. Then to make sure that the tables about to be created don't clash with tables used in other domains you will give a prefix (e.g. SMF2_)
jelv (a.k.a Spoon Whittler) Why I have left Plusnet (warning: long post!) Broadband: Andrews & Arnold Home::1 (FTTC 80/20) Line rental: Pulse 8 Home Line Rental (£14.40/month) Mobile: iD mobile (£4/month) |
Re: Using database for a sub domain
16-11-2009 11:37 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'll upload the tar file and untar it in the usual way then go on from there.
Thanks for your help.
Stand back, I'm going in, this could be messy!

Re: Using database for a sub domain
16-11-2009 11:42 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I think the webinstall failure may have been down to permissions/safe mode issues.
jelv (a.k.a Spoon Whittler) Why I have left Plusnet (warning: long post!) Broadband: Andrews & Arnold Home::1 (FTTC 80/20) Line rental: Pulse 8 Home Line Rental (£14.40/month) Mobile: iD mobile (£4/month) |
Re: Using database for a sub domain
16-11-2009 11:46 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'm going to pop a note to the moderators.
jelv (a.k.a Spoon Whittler) Why I have left Plusnet (warning: long post!) Broadband: Andrews & Arnold Home::1 (FTTC 80/20) Line rental: Pulse 8 Home Line Rental (£14.40/month) Mobile: iD mobile (£4/month) |
Re: Using database for a sub domain
16-11-2009 2:13 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator

I'm falling at the same hurdle even from a different approach.
I first tried the CRON method of untarring (after changing the path to the right directory. and it wouldn't play. So I untarred on my computer and up loaded all the files into the httpdocs directory of my forum sub domain by ftp.
I pointed my browser at forum.mydomain.co.uk/index.php and up popped the installer but when filling in the host, username, password and path (it worked the last bit out itself) it came up with:-
This is exactly what the 'webinstall.php' script did too.
Quote 550 /vhosts/mydomain.co.uk/subdomains/forum/httpdocs: No such file or directory
I also tried changing this to:-
but still it wouldn't have it.
Quote /vhost/forum.mydomain.co.uk/httpdocs
I assume that old chestnut 'paths' is my problem but can't figure what I am doing wrong.
I also changed the suggested files and folder permissions to 755 and still nothing. Any ideas?
Regards
Andy
Re: Using database for a sub domain
16-11-2009 2:16 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
jelv (a.k.a Spoon Whittler) Why I have left Plusnet (warning: long post!) Broadband: Andrews & Arnold Home::1 (FTTC 80/20) Line rental: Pulse 8 Home Line Rental (£14.40/month) Mobile: iD mobile (£4/month) |
Re: Using database for a sub domain
16-11-2009 2:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've even rechecked the permissions on the suggested directories and files.
Re: Using database for a sub domain
16-11-2009 2:29 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Using database for a sub domain
16-11-2009 2:31 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
jelv (a.k.a Spoon Whittler) Why I have left Plusnet (warning: long post!) Broadband: Andrews & Arnold Home::1 (FTTC 80/20) Line rental: Pulse 8 Home Line Rental (£14.40/month) Mobile: iD mobile (£4/month) |
Re: Using database for a sub domain
16-11-2009 2:36 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote You haven't put the /var/www/ on the front! That's what worked for me.
Not in the attachment but I have tried it.
What you see in the attachment is what it detects automatically.
Re: Using database for a sub domain
16-11-2009 2:57 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
jelv (a.k.a Spoon Whittler) Why I have left Plusnet (warning: long post!) Broadband: Andrews & Arnold Home::1 (FTTC 80/20) Line rental: Pulse 8 Home Line Rental (£14.40/month) Mobile: iD mobile (£4/month) |
Re: Using database for a sub domain
16-11-2009 3:02 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: jelv Was that using webinstall?
Both in web install and having uploaded all the files into the directory and putting forum.mydomain.co.uk/index.php into the browser address.
Same results
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Using database for a sub domain