losthost SVN repository and php testing configuration

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
laserbeamninja
Forum Newbie
Posts: 12
Joined: Mon Apr 18, 2005 3:58 pm

losthost SVN repository and php testing configuration

Post by laserbeamninja »

I am a little confused about what I should do about a configuration I am attempting to arrange for my laptop, which is used primarily for writing and testing code.

I have some requirements and some assumptions with regard to the problem, and some questions to answer that stem from them. I am also learning about this stuff and somewhat of a noob.

Requirements:
- host a subversion repository locally.
- whether via a separate instance of apache (or via a configuration of apache2 that is more suitable to these aims), host a webserver locally that can be used for testing and development of PHP for now, and later for perl, etc.
- I already have svn up and running on apache 2 ssl and unless avoidable, I'd like not to have to rebuild that.

Assumptions:
- subversion requires apache 2
- subversion requires, at minimum, a self-signed ssl cert.
- apache 2 is considered by many unreliable for a production environment and therefore less suitable for a development environment, whereas most webservers still run apache 1.3.
- php does not support threading.
- "php-cgi" by which I assume to mean the cgi interface for php may support threading or work somehow in compatibility with the threaded apache2???

Questions:
- does subversion require that threading be enabled in the apache build?
- would an apache2-based testing environment be best considering that an app under development may ultimately be deployed on apache1.3 indefinitly.
- could I benefit from having an instance of apache 1.3 operating on another port?
- would "php-cgi" be better than a separate instance of apache and why?

I have been somewhat stymied by this problem.

Thanks, and sorry for the longwindedness.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Subversion doesn't actually require Apache. The web access interface to Subversion does. The actual Subversion daemon runs separately.
laserbeamninja
Forum Newbie
Posts: 12
Joined: Mon Apr 18, 2005 3:58 pm

Post by laserbeamninja »

So I revise that assumtion thusly:

- the web interface for subversion requires apache 2 as does eclipse which is what I have been using thus far for my subversion client.

Is there a better Mac OS X alternative? I like certain things about eclipse, but am not married to it.

Thanks for bearing with me.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I haven't shifted my development or personal machines to the Mac as yet, so I can't say what the good editors are thus far. I personally like Eclipse in that since it is written in Java, it is available on many platforms relatively easily.

For editor recommendations, I would suggest reading the rather long thread we have on editors found in the General Discussion board.
laserbeamninja
Forum Newbie
Posts: 12
Joined: Mon Apr 18, 2005 3:58 pm

Post by laserbeamninja »

Incidentally, I think I have settled on the idea of running Apache2 with the prefork MPM rather than threaded. This will, I believe, be the most appropriate solution for the moment at least.

Does anyone know if it is possible to switch mpms without rebuilding apache, and furthermore if it is possible to rebuild apache without rebuilding subversion. I know these questions may be dumb, but I am asking them anyway.

Thanks,
Chris
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I think subversion is its own server, standalone independent of the web server as it relates to managing versioning. However, when hitting the web server for subversion server use, the web server plays a role. I think you can rebuild your web server without affecting your subversion server, although I am not totally sure. Have you read through the subversion docs and apache docs on this yet?
laserbeamninja
Forum Newbie
Posts: 12
Joined: Mon Apr 18, 2005 3:58 pm

Post by laserbeamninja »

Well, from the documentation it certainly appears that a recompile will be necessary...

This is going to be odious though, because I have already invested a lot of time and effort into configuring the ssl cert and subversion server. As far as the structure of my subversion repository, I know all this will be unaffected... Nonetheless, I believe I will end up repeating a lot of steps.

Sighhh....
Post Reply