Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
phprojekt and virtual servers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
janh
n00b
n00b


Joined: 20 Dec 2003
Posts: 31

PostPosted: Fri Sep 10, 2004 7:54 am    Post subject: phprojekt and virtual servers Reply with quote

does anybody know where I can find a howto that covers:
1. DNS configuration when using multiple instances of phprojekt
2. virtual server configuration when using multiple instances of phprojekt

basically something in the style of this manual page:
(which was written for squirrelmail)

http://www.gentoo.org/doc/en/virt-mail-howto.xml

Regards[/quote]
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Sep 10, 2004 8:26 am    Post subject: Reply with quote

Is it covered in Gentoo's webapp-config system yet ?
In that case, setting up multiple copies should be trivial[1]

1[]admittedly, for unspecified values of trivial...
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
janh
n00b
n00b


Joined: 20 Dec 2003
Posts: 31

PostPosted: Fri Sep 10, 2004 9:16 am    Post subject: Reply with quote

Don't how to verify it is available in webapp-config.

On the other hand it is available under portage.

The postinstall is below, unfortunately this nowhere mentions webapp-config


Postinstall:
You are almost done!


1. Restart your webserver

2. You will need to create a blank database for phprojekt to use. Consult
your database manual.

3. If this is a new install, you will need to
touch ${MY_INSTALLDIR}/config.inc.php
chown ${VHOST_SERVER_GID}:${VHOST_SERVER_UID} ${MY_INSTALLDIR}/config.inc.php

4. It's a good idea to check your configuration by running
http://YOURHOST/env_test.php
Examine its output and fix whatever problems you encounter.

5. Complete the installation by logging on to
http://YOURHOST/setup.php

Enjoy!
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Sep 10, 2004 9:42 am    Post subject: Reply with quote

Well, no webapp-config then, but you should quite easily be able to copy it to every virtual host you need it, and change the relevant bits in config.inc.

Which is basically what webapp-config does, only nicer ;-)

EDIT: as for DNS, that's even more trivial.
Virtual hosting == everything goes to one IP.
You have to configure apache to get it to work; DNS is not an issue.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
janh
n00b
n00b


Joined: 20 Dec 2003
Posts: 31

PostPosted: Fri Sep 10, 2004 10:09 am    Post subject: Reply with quote

busy trying will let you know how I get one
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Fri Sep 10, 2004 11:28 am    Post subject: Reply with quote

it's not fancy, but without knowing more about phprojekt it's the best I can do.

install apache, php, mysql, etc.
Get apache running and turn on vhosts.
Make sure vhosts are working
install phprojekt normally.
cd /var/www/localhost/htdocs/
assuming you have some sort of nice naming scheme for your vhosts the next commands will look something like this.
cp -a phprojekt/ /var/www/www.domain1.com/htdocs/
cp -a phprojekt/ /var/www/www.domain2.com/htdocs/
cp -a phprojekt/ /var/www/www.domain3.com/htdocs/

Now point your browser to the following address to configure the first instance. Obviously you'll want different mysql database names and logins for each instance.
www.domain1.com/phprojekt/setup.php

Wash, rinse, repeat.

I'm guessing that this is probably the best way to do it. Mail and web generally assume you'll have differnet users and allows you to split acces. Most webapp project don't make this assumption which is why running mutiple instances is probably the way to go.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Sep 10, 2004 12:07 pm    Post subject: Reply with quote

Quote:
Mail and web generally assume you'll have differnet users and allows you to split acces. Most webapp project don't make this assumption which is why running mutiple instances is probably the way to go.


I think you should read the docs for webapp-config - it does make multiple copies with as many hardlinks as is warranted, and softlinks or unique instances otherwise.

If I understand you correctly, that is.

It even remembers were you've installed which webapp - which is just that little bit closer to the Gentoo way.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum