You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Maruf Khan <mk...@uwba.org> on 2009/03/24 01:25:57 UTC

How to use subversion in Ubuntu server using Wordpress for CMS

Hi Everyone:

We have already installed Wordpress for  our non-profit org. intranet website on our Ubuntu server and it was loaded with info and pictures. Now the developer is thinking that we should have installed  the wordpress using Suversion. I had earlier installed subversion last year on our Ubuntu server and it is remaining there unused.

Could you let us know what is the best course to follow?

Now shall we delete the WWW folder to delete the older version of Wordpress and go about downloading the new  version of Wordpress using seuversion?

Any assistance given will be highly appreiciated.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 30, 2009, at 15:04, Maruf Khan wrote:

> 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?

You can put whatever you like into the repository, but my  
understanding of the instructions I referred you to are that having a  
local repository is not part of the usual strategy for updating a  
WordPress installation using Subversion.

> 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.

Ok.

> 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?

Yes, of course with a different version number in the tag url.

> Will that automatically install the newer version?

That depends on your meaning of "install". It will *download* the  
files necessary to give you the new version on your server's hard  
drive. It's up to you to see if you then need to change any  
configuration files to make use of new features of that 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.

You can read the script yourself, but as far as I can tell, its  
purpose is to install multiple different versions of WordPress  
simultaneously. If you run the script as written, I believe you will  
end up with separate copies of WordPress 1.5, 2.0, 2.1, 2.2, 2.3,  
2.5, and 2.6, so that doesn't sound like what you want. Feel free to  
ask the authors of that script for further information about it.


If you haven't already, you might want to read the Subversion Book,  
to get a better understanding of how Subversion works. You can read  
it for free online here:

http://svnbook.org/

And if you have questions about how to set up or update WordPress,  
your best bet would be to ask in a WordPress support venue.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Maruf Khan <mk...@uwba.org>.
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@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@subversion.tigris.org].


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

Posted by Ryan Schmidt <su...@ryandesign.com>.
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=1453317

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 23, 2009, at 20:25, Maruf Khan wrote:

> We have already installed Wordpress for  our non-profit org.  
> intranet website on our Ubuntu server and it was loaded with info  
> and pictures. Now the developer is thinking that we should have  
> installed  the wordpress using Suversion. I had earlier installed  
> subversion last year on our Ubuntu server and it is remaining there  
> unused.
>
> Could you let us know what is the best course to follow?
>
> Now shall we delete the WWW folder to delete the older version of  
> Wordpress and go about downloading the new  version of Wordpress  
> using seuversion?

If you would like to start using Subversion to update your Wordpress  
installation, that can certainly be done. Before you follow my  
instructions below, please back up your Wordpress directory in case  
my instructions are wrong. I'm writing this off the top of my head  
and have not tested it.


First, what version of Wordpress did you already install? Find its  
corresponding tag in the Wordpress Subversion repository.

http://svn.automattic.com/wordpress/tags/

For example, if you installed Wordpress 2.6, then the tag directory is:

http://svn.automattic.com/wordpress/tags/2.6/


Now, go into the directory where the Wordpress 2.6 source code is  
already installed.

cd /path/to/wordpress

You can tell Subversion to check out into this existing directory.

svn co --force http://svn.automattic.com/wordpress/tags/2.6/ .

Note the very important "." at the end of the command. This means  
check out into the current directory (as opposed to the default,  
which would be to check out to a subdirectory of the current  
directory, which is not what we want here).


Your Wordpress installation should now be the same as before, except  
that it is a Subversion working copy.


Now you need to decide whether you will follow the Wordpress trunk or  
stick with stable releases. Continue with "Updating to a New Trunk  
Version" or "Updating to a New Stable Version" in this guide:

http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion


Alternate to my instructions above for converting your existing  
Wordpress installation into a working copy, you can follow the  
instructions under "Converting a 'Traditional' WordPress Blog to a  
Subversion Checkout" in the guide above. They do not use the --force  
option, probably because it is a new option that did not exist when  
those instructions were written.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].