Tuesday, 28 September 2010
Monday, 27 September 2010
Installing subversion on Ubuntu 10.04 Lamp server
This post is going to outline the steps i took to successfully install subversion on my LAMP server
First you need to add a new group call subversion, to do so you need to first enable viewing all users, to do this press ALT + F2. A run window would pop just like windows run command prompt, enter the following
Go into System> Administration > Users and Groups and add a new group called subversion, add yourself and the user www-data to it. Press OK to save changes and close the window once done.
Fire up your terminal window and type sudo su admin rights
navigate to the root directory by
Now you will have to edit the dav_svn.conf file to tell it where the repositories are located, i like to have all the repositories listed when i type http://localhost/svn. To do so type the following at the terminal prompt:
Once the text editor opens, type the following,
and hit save, close the editor.
Restart apache now by typing the following at the terminal prompt:
To add more users simply type the following at the terminal prompt:
You should now be able to access your svn repository by pointing your browser to
--Eddy
First you need to add a new group call subversion, to do so you need to first enable viewing all users, to do this press ALT + F2. A run window would pop just like windows run command prompt, enter the following
- gconf-editor
Go into System> Administration > Users and Groups and add a new group called subversion, add yourself and the user www-data to it. Press OK to save changes and close the window once done.
Fire up your terminal window and type sudo su admin rights
navigate to the root directory by
- cd /
- mkdir /svn
- cd /svn
- mkdir /tester
- svnadmin create /svn/tester
- chown -R www-data:subversion tester
- chmod -R g+rws tester
- apt-get install libapache2-svn
Now you will have to edit the dav_svn.conf file to tell it where the repositories are located, i like to have all the repositories listed when i type http://localhost/svn. To do so type the following at the terminal prompt:
- gedit /etc/apache2/mods-available/dav_svn.conf
Once the text editor opens, type the following,
<Location /svn>
DAV svn
SVNParentPath /svn
SVNListParentPath On
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>and hit save, close the editor.
Restart apache now by typing the following at the terminal prompt:
- /etc/init.d/apache2 restart
- htpasswd -c /etc/subversion/passwd user_name
To add more users simply type the following at the terminal prompt:
- htpasswd /etc/subversion/passwd Second_user_name
You should now be able to access your svn repository by pointing your browser to
- http://localhost/svn
--Eddy
Labels:
development,
help,
internet,
lamp,
subversion,
svn,
ubuntu,
web access
Ubuntu 10.04 with LAMP server
Let me first explain a little bit about what i'm going to do and why i need to do it. My company requires a stable and secure development environment from which the product, which is all the applications and code cannot be carried out of the office with the employees. For this purpose i proposed a local LAMP server, running SVN and Trac ( to be discussed later).
The reason for this blog is to document my attempts at different installations and tasks in Ubuntu, as well as fixes which have been taken from a lot of different sources because one just doesn't work. Hopefully this blog will help you with your problems.
For this purpose i chose Ubuntu because of all the support that comes with it, you could choose any other distribution of your choice. I tried working on Centos, but it almost drove me mad.
First things first, grab a fresh distribution of Ubuntu from www.Ubuntu.com . I chose the Desktop version because of the Graphical User Interface that comes with it, coming from a life of using Windows from the word go, a nice GUI is always welcome to fiddle around when things arent going your way.
once you've installed Ubuntu login with the account you created during the installation and fire up the terminal. You should find it under Application > Accessories.
Type:
To install LAMP (Linux Apache Mysql PHP) simply type at the terminal prompt:
Once the installation has completed, type the following in the address bar of your browser
At this point you need to install a front end to manage Mysql, a good one is PHPMYADMIN
To install phpmyadmin simply type the following at the terminal prompt:
The reason for this blog is to document my attempts at different installations and tasks in Ubuntu, as well as fixes which have been taken from a lot of different sources because one just doesn't work. Hopefully this blog will help you with your problems.
For this purpose i chose Ubuntu because of all the support that comes with it, you could choose any other distribution of your choice. I tried working on Centos, but it almost drove me mad.
First things first, grab a fresh distribution of Ubuntu from www.Ubuntu.com . I chose the Desktop version because of the Graphical User Interface that comes with it, coming from a life of using Windows from the word go, a nice GUI is always welcome to fiddle around when things arent going your way.
once you've installed Ubuntu login with the account you created during the installation and fire up the terminal. You should find it under Application > Accessories.
Type:
- sudo su
To install LAMP (Linux Apache Mysql PHP) simply type at the terminal prompt:
- sudo tasksel install lamp-server
Once the installation has completed, type the following in the address bar of your browser
- http://localhost OR http://127.0.0.1
At this point you need to install a front end to manage Mysql, a good one is PHPMYADMIN
To install phpmyadmin simply type the following at the terminal prompt:
- apt-get install phpmyadmin
- http://localhost/phpmyadmin OR http://127.0.0.1/phpmyadmin
Alright, so its been a couple of days since i last updated the blog.
This is the story about how i crashed our dedicated server taking down all our client websites along with it.
We run two separate servers, one for development and testing and the other for deployment. The development and testing server isn't stable and has very poor backup options. So we thought we'd create a separate account for testing. So i began fidgeting with the server installing Subversion and Trac. While installing Trac i made an extremely noob mistake, something i should have taken precautions while doing, but didn't. I ran a Perl install command from the root account instead of the client account.
I was already playing with the httpd apache file and so after running the install command when i rebooted, all hell broke loose and apache simply refused to start. This is when i started to panic, if it was the test server the downtime wouldnt have mattered all that much, but considering the fact that it was our deployment server and alot of projects were serving content on the internet was a big problem.
I quickly called up the support of our hosting company and raised a ticket along with it. Thankfully the support team restored the last working copy of the apache httpd file and peace was restored.
Firstly, i cant emphasize enough how important it is if you are running a deployment server that you have good support. We host our server with Liquid Web and kudos to them for the prompt response.
--Eddy
This is the story about how i crashed our dedicated server taking down all our client websites along with it.
We run two separate servers, one for development and testing and the other for deployment. The development and testing server isn't stable and has very poor backup options. So we thought we'd create a separate account for testing. So i began fidgeting with the server installing Subversion and Trac. While installing Trac i made an extremely noob mistake, something i should have taken precautions while doing, but didn't. I ran a Perl install command from the root account instead of the client account.
I was already playing with the httpd apache file and so after running the install command when i rebooted, all hell broke loose and apache simply refused to start. This is when i started to panic, if it was the test server the downtime wouldnt have mattered all that much, but considering the fact that it was our deployment server and alot of projects were serving content on the internet was a big problem.
I quickly called up the support of our hosting company and raised a ticket along with it. Thankfully the support team restored the last working copy of the apache httpd file and peace was restored.
Firstly, i cant emphasize enough how important it is if you are running a deployment server that you have good support. We host our server with Liquid Web and kudos to them for the prompt response.
--Eddy
Thursday, 16 September 2010
About this blog
Please dont be taken in by the absolute meaning of the domain, it doesn't mean what it says.
Linux 'Woes' refers to all the hard times my distro has and will give me at my attempt to try and learn and master it to whatever extent i can.
Coming from a Window life, things are quite difficult by i have to appreciate all the Ubuntu community has done to help me out by just being their with their help.
My first woe should be up in a couple of hours where i took our production server down 'accidentally', leading to mass panic and chaos with client rants on the fly.
--Eddy
Linux 'Woes' refers to all the hard times my distro has and will give me at my attempt to try and learn and master it to whatever extent i can.
Coming from a Window life, things are quite difficult by i have to appreciate all the Ubuntu community has done to help me out by just being their with their help.
My first woe should be up in a couple of hours where i took our production server down 'accidentally', leading to mass panic and chaos with client rants on the fly.
--Eddy
Subscribe to:
Comments (Atom)
