Being a PHP developer and a System Administrator, Setting up the development environment and Development both are my Key Responsibilities. For years, I have been away from the Source control, but as you grow, your needs also grow to get more managed and secure.
One fine day, I went through the process of version control in PHP basically Subversion. Initially, the idea sounded very good, however, a new issue came to my mind that although, the source code will be version controlled, yet, how the actual work done by the developers will be previewed?
Suppose I have some code that is not under source control system. The project is located at
I have a common svn repository location at
“/var/svn/”, so Project x svn repository will be “/var/svn/x”
For achieving this, I follow these instructions
#svnadmin create /var/svn/x
#svn import file:///var/svn/x -m "Initial Import"
Write these lines in this file
anon-access = none
auth-access = write
password-db = passwd
Save and Exit the vi editor
Add these lines in this file.
anil = konsal
save and exit the vi editor
#svn checkout svn://127.0.0.1/var/svn/x x
#cp post-commit.tmpl post-commit
#chmod 755 post-commit
Goto the end of file
/usr/bin/svn update /var/www/html/x
Save and quit vi
#chown -Rv apache.root /var/svn/x