[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: How to use subversion in Ubuntu server using Wordpress for CMS

From: Maruf Khan <mkhan_at_uwba.org>
Date: Mon, 30 Mar 2009 13:04:06 -0700

Hi Everyone:

Thank you, Ryan for your reply. I realize I did not have to create a repository. I wonder now that I have created one, can the developer use it that could be needful?

The latest one is 2.7.1. By the way, Ryan, when I wrote this e-mail below, I made a typo [Svn sw http://svn.automattic.com/wordpress/tags/2.7 .] I actually used .1 at the end for the version /tags/2.7.1.

Now, next time, a new version comes along, shall I use the same command as above on the Ubuntu server directory where the Wordpress had been downloaded? Will that automatically install the newer version?

I have also found a script in the following link. How does this come into play? The download link is quite at the end of this KB.

http://crowdfavorite.com/wordpress/

I would appreciate your comments on this.

Thank you.

_Maruf Khan
Network Systems Engineer

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2009a_at_ryandesign.com]
Sent: Saturday, March 28, 2009 1:14 AM
To: Maruf Khan
Cc: Subversion Users
Subject: Re: How to use subversion in Ubuntu server using Wordpress for CMS

I am sending your reply back to the Subversion mailing list where you
first asked your question. Remember to Reply All so that your reply
goes to the list too, not just to me.

On Mar 27, 2009, at 22:32, Maruf Khan wrote:

> Hi Mr. Schmidt:
>
> Thank you for your quick reply. I have followed your suggestion to
> make a fresh install of Wordpress 2.71 with subversion.
>
> A.
> From our non-subversion wordpress, our web developer removed all
> the files, that she worked on for our intranet and deleted all the
> Wordpress files except the following:
>
> .htaccess, wp-config, wp-content, phpmyadmin, htmal and forum. She
> removed them to her workstation's Dreamweaver folder.
>
> B.
> Next, I have created a directory called "svn" at /var
> Var#mkdir dvn
> #sudo svnadmin create /var/svn/repos
> #adduser svn
>
> It asked for password, I gave the name webadmin, our intranet web
> developer and the administrator.
>
> #chown -R svn.svan svn
> #vigr
>
> At the very last line, I added two users for the servers( webadmin,
> administrator): svn: x: 1004: administrator webadmin
> Next it asked to check with vigr -s:
> www-data*:: administrator, webadmin
> svn: !:: administrator, webadmin

You do not need to create a repository with "svnadmin create", you do
not need to add a system user. You just need to check out a working
copy, as per my original recommendations, and the online
documentation I referred you to.

> C.
> Next I configured the apache2 server on our Ubuntu server for
> subversion. I applied special lines for "Access via WebDav" on our
> apache2/sites-enabled/000-default file. I created a user/group
> called 'svn"
> and gave requisite ownership and permission.
>
> <location /svn/repos>
> DAV svn
> SVNPath /var/svn/repos
> AuthType Basic
> AuthName "Subversion Repository"
> AuthUserFile /etc/pacahe2/passwords
> Require valid-users
> </Location>
>
>
> I have also added our web developer and the administrator by
> #sudo htpasswd -c /etc/apache2/passwords webadmin (same way for
> the administrator)
>
> #sudo chown -R www-data:www-data /var/svn/repos
> #sudo chmod -R g+ws /var/svn/repos

You do not need to serve any repository, with apache or otherwise.
You just need to check out a working copy from the repository where
the Wordpress source code is being hosted.

> D.
>
> I have then gone to our www folder where our wordpress was
> installed previously, applied the following command:
>
> Svn co http://svn.automattic.com/wordpress/tags/2.7 . It filled in
> with all the Wordpress files. At the end it said that "Checked out
> external at revision 105811. Checked out revision 10848".
>
> Then I realized that this is a newer version. So, I applied the
> command for the new stable version (with the switch command):
>
> Svn sw http://svn.automattic.com/wordpress/tags/2.7 . It also
> filled out wordpress files and at the end of the lines, it said
> that "Updated to revision 10848."

If you checked out tag 2.7 as you said you did, then subsequently
switching to tag 2.7 should be irrelevant and not have any effect.

> E.
> I then applied the svn repository url: http://10.100.100.116/svn/rpos
>
> ( for some reason, the server name, UWSF-116, was not resolved,
> even though I inserted a line, ServerName UWSF-116 on apache 2.conf
> and 000-default. Do you have any suggestion on this?)
>
>
> It asked for login credential . I used 'webadmin' with the
> password. Then it opened a page which says that "Revision 0/:
> Powered by subversion ( a link to the subversion website). Attached
> is a screenshot

You don't need to do anything with any local Subversion repository.

> NOW MY QUESTION IS HOW DOES THE ABOVE PAGE FIT INTO THE SUBVERSION
> MECHANISM FOR WORDPRESS. THE WEBDEVELOPER WANTED SUBVERSION SO THAT
> OUR INTRANET WORDPRESS WHEN NEED TO BE UPDATED WILL BE DONE
> AUTOMATICALLY WITHOUT MOVING THE EXISTING FILES ETC, JUST AS THE
> WINDOWS SERVICE PACK ARE INSTALLED.
>
> SO, DOES SHE HAVE TO TRANSFER MANUALLY ANY FILE TO THE ABOVER URL
> PAGE, OR IT WILL BE DONE AUTOMATICALLY. WHAT ELSE NEED BE DONE BY
> HER WHEN A NEW VERSION OF WORDPRESS APPEARS ON THE HORIZON.
>
> WHAT I AM MISSING IS THE LINK BETWEEN THE svn FOLDER I HAE CREATED
> ON APACHE SERVER AND HOW IT FITS INTO THE WORDPRESS I HAVE
> DOWNLOADED WITH SVN AND HOW IT WILL BE UPDATED.
>
> I would appreciate your reply on this as I am new in this and my
> project (to have the Intranet up and running) is due at the end of
> March. If you see that I have made some mistake in my configuration
> as described above, please feel free to point it out to me.
>
> Many, many thanks.
>
> _Maruf

The online instructions I referred you to explain how to update to
the new version of the code, depending on whether you're following
trunk or following specific tags. You should direct further questions
that are specific to how to update a Wordpress installation with
Subversion to the developers of Wordpress. I personally have not set
up Wordpress so I'm not well-equipped to help you with these questions.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1485546

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-30 22:11:08 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.