LAMP How To – Open Source At Work

Only Passion Matters

Entries for the ‘Think Technology’ Category

Google Ads Error

sometimes you get script errors in your browser when you run google ads. It is most likely that you have flash in the ads.
Based on normal broadband speed, there is a very high chance that the full page is rendered even before the flash ad started downloading (as it gets redirected to a 3rd [...]

Preserving HTML in XML

Characters like “<” and “&” are illegal in XML elements. “<” will generate an error because the parser interprets it as the start of a new element. “&” will generate an error because the parser interprets it as the start of an character entity. Some text, like JavaScript code, contains a lot of “<” or [...]

SVN over HTTP

Objective
I want to be able to browse the svn dir from a website like http://zeus.dev/svn.php and at the same time, be able to checkout from the repository via http://zeus.dev/svn/projectname
How

First of all, install mod_dav_svn
Then in the apache config, I am using vhost for example
<VirtualHost *:80>
DocumentRoot /home/data/zeus.dev/apps/
ServerName zeus.dev
# this is for [...]

Quick SVN Tutorial

Create New Repo
svnadmin create /home/data/svn/[dir-name]
chown apache:developer -R /home/data/svn/[dir-name]
chown 2770 /home/data/svn/[dir-name]

Import New Site

ssh into server
to import new site to the trunk,

svn import [your-site] file:///home/data/svn/[your-site-name] -m “[import comments]”

View Available Sites In Trunk
svn ls file:///home/svn/trunk/

Checking Out a Site

Create a directory to checkout and use ’svn co’

cd ~
mkdir [my-site]
svn co file:///home/svn/trunk/[site-name] [my-site]

Updating a [...]

Implementing SSL Certificates in Apache

Creating a Private Key
To create a private key without triple des encryption, use the following command:
openssl genrsa -out ssl.key 1024

Creating a Certificate Signing Request
To obtain a certificate signed by a certificate authority, you will need to create a Certificate Signing Request (CSR). The purpose is to send the certificate authority enough information to create the [...]