View previous topic :: View next topic |
Author |
Message |
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Thu Feb 07, 2008 5:47 pm Post subject: [CLOSED] phpmyadmin on port 81 |
|
|
I have two instances of Apache running on my box. Port 80 for WAN users and port 81 for private users as I had to rollback the WAN version due to probs with virtual servers using the current version of Apache.
Having looked at various sites, I see that 'phpma' is the directory that should be placed into the DocumentRoot directory to serve pages from. But I do not see this on my box having emerged phpmyadmin. Is there a how to I can go to to make phpmyadmin available?
Also, using port 81 normally I would x.domain.co.uk:81 how would this work with phpmyadmin? Thanks.
Last edited by trossachs on Tue Feb 19, 2008 12:34 pm; edited 1 time in total |
|
Back to top |
|
|
di1bert l33t
Joined: 16 May 2002 Posts: 963 Location: Oslo, Norway
|
Posted: Fri Feb 08, 2008 1:32 pm Post subject: |
|
|
Once installed with emerge, you will need to install it using webapp-config, although the exact syntax will
depend on your setup.
Here's an example I've used before...
Code: |
webapp-config -I -d localhost pma phpmyadmin 2.10.2
|
You usually get the syntax once you've installed it from portage.
The to access you'd simply go to the URL:
http://x.domain.co.uk:81/pma
HTH
-m |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Fri Feb 08, 2008 5:04 pm Post subject: |
|
|
Thanks dilbert, but I have configured your line:
Code: | webapp-config -I -d foo pma phpmyadmin 2.11.2.2 |
and get the following print:
Code: | * Fatal error: Please emerge pma-2.11.2.2 first.
* Fatal error(s) - aborting
foo ~ #
|
Pma, is not something that I have seen which has to be enabled in Portage and I have installed phpmyadmin to the version above. |
|
Back to top |
|
|
di1bert l33t
Joined: 16 May 2002 Posts: 963 Location: Oslo, Norway
|
Posted: Fri Feb 08, 2008 5:08 pm Post subject: |
|
|
I think I might have the syntax wrong for the webapp-config command. I haven't used it in a while...
I pulled this from the man page..I think I may have missed a parameter or two
Code: |
webapp-config -I -h www.example.com -d /databases/admin/ phpmyadmin 2.5.6
|
When in doubt, check the man page
-m |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Sun Feb 10, 2008 9:53 am Post subject: |
|
|
dilbert isn't there some 'directory' containing all the phpmyadmin files and directories that I would have to place in the DocumentRoot as would be the case with phpBB? Oncethis is in place, I would then add in the appropriate virtual host for Apache to call upon? |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sun Feb 10, 2008 11:00 am Post subject: |
|
|
trossachs wrote: | dilbert isn't there some 'directory' containing all the phpmyadmin files and directories that I would have to place in the DocumentRoot as would be the case with phpBB? Oncethis is in place, I would then add in the appropriate virtual host for Apache to call upon? |
webapp-config is what installs those files from /var/webapp (or similar path, i forget its exact path) to your htdocs dir.
cheers _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Sun Feb 10, 2008 11:04 am Post subject: |
|
|
I'd better get the webapp config bit correct then! |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Sun Feb 10, 2008 11:09 am Post subject: |
|
|
Bunder, with this line:
Code: | webapp-config -I -h www.example.com -d /databases/admin/ phpmyadmin 2.5.6 |
I have two different instances of Apache running. When I try and invoke the one working under port 81 like this:
Code: | webapp-config -I -h x.dom.co.uk:81 -d /databases/admin/ phpmyadmin 2.11.2.2 |
I get this error:
Code: | * Fatal error: The user for the server type "Apache" does not exist!
* Fatal error(s) - aborting
foo shoutcast #
|
|
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sun Feb 10, 2008 11:13 am Post subject: |
|
|
i just installed it on my end and got it to install with this syntax:
Code: | webapp-config -I -d phpmyadmin phpmyadmin 2.11.2.2 |
i'm wondering though if you really need to specify :81 though... did you try with just the hostname alone?
cheers _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Sun Feb 10, 2008 11:38 am Post subject: |
|
|
But how do I direct phpmyadmin to use the instance of Apache running on port 81.
Code: | * Fatal error: Package phpmyadmin-2.11.2.2 is already installed here.
* Fatal error: Use webapp-config -C to uninstall it first.
* Fatal error: Install directory already contains a web application!
* Fatal error(s) - aborting
foo shoutcast #
|
|
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Tue Feb 19, 2008 12:34 pm Post subject: |
|
|
Sorted!
Got this to work, also by changing the bind address to enable login from other than ssh. Thanks for all your help! |
|
Back to top |
|
|
|