How To :: Create a Tag from Trunk in SVN

This command creates a version tag in /project_name/tags of the current /project_name/trunk. svn copy svn://svn_host/project_name/trunk svn://svn_host/project_name/tags/release-1.0.0 -m “Tagging the 1.0.0 release of the ‘Project Name’ project.”

How To :: Install DBus for PHP on Ubuntu

First you need to install pkg-config package. sudo apt-get install pkg-config Now you need to install DBus package. This will manage all background actions needed by the PHP extension. sudo apt-get install dbus libdbus-1-dev libxml2-dev Now we can install the PECL DBus extension sudo pecl install DBus * if you do not have PECL installed click here * if you get an error like "Failed to download pecl/Dbus within preferred state stable, latest release is version 0.1.1, stability 'beta', use ..... install failed" you need to install the version it says it's the last. For example : sudo pecl install DBus-0.1.1 add the extension to PHP echo -e "; configuration for php DBus module\nextension=dbus.so"| sudo tee -a /etc/php5/conf.d/dbus.ini

How To :: Install PECL on Ubuntu

sudo apt-get php-pear php5-dev sudo pear install PEAR

How To :: Unpack a .tgz file in Linux

tgz files are gzip compressed tar archives, so they can be unpacked like this : tar xzf <filename>.tgz

How To :: Install Apache2 + PHP5 + MySQL 5 on Ubuntu

First of all you need to have root rights for all your commands. The easiest way to do this is to switch to root privileges by typing : sudo su

1. Install MySQL 5

apt-get install mysql-server mysql-client * in the setup flow you will be asked for MySQL root user password - this password is valid for root@localhost or root@127.0.0.1.

2. Install Apache2

apt-get install apache2 After installation is done, you can check if everything worked fine by entering in your Browser the URL http://localhost or http://127.0.0.1 - a page with the message "It works !" should appear.

The default Document Root (that means the folder where your Website files should be) is in /var/www. This folder has now owner root and group root, because we had root privileges during installation. We need to change the owner and group to be a normal user - now, that depends on the machine you have and on the groups you are in, but by Default (or most cases) you have a username (let's say 'mike') and the main group you're in is also 'mike' - so you will change owner and group by typing: chown -R mike.mike /var/www * of course you need to change 'mike' with your username

3. Install PHP 5


First you need to install PHP5 and the connection with Apache2 apt-get install php5 libapache2-mod-php5 After this you will also need to install PHP modules like the connector to MySQL, Imagick for processing images maybe curl if you want to connect to or fetch other pages and so on. You can get a list of all the PHP5 Modules by typing: apt-cache search php5 Now i will install the libraries i think are most used in project. Feel free to install the ones you need for your project. apt-get install php5-mysql php5-curl php5-gd php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-intl php5-xmlrpc php5-xsl php5-cgi php5-dbg php5-dev Now you'll need to restart Apache2 /etc/init.d/apache2 restart (optional) You are able to test or check if your Modules are installed by printing out PHP's install and configure information by creating a file, lets say phpinfo.php in the folder /var/www/ containing : '' - then you can access the file under 'http://localhost/phpinfo.php' or 'http://127.0.0.1/phpinfo.php'

4. PHPMyAdmin


Personally, I'm not a fan of PHPMyAdmin, I work with other more powerful tools but in some cases or for some people PHPMyAdmin is the best choice.
apt-get install phpmyadmin * you will be asked for : Web server to reconfigure automatically: (answer : apache2) Configure database for phpmyadmin with dbconfig-common? (answer : No)

Now you can access PHPMyAdmin under 'http://localhost/phpmyadmin' or 'http://127.0.0.1/phpmyadmin'

5. Exit root privileges


You are still in root privileges, that means root user. It is important that you log in/ switch back to your normal user account exit

Summary


Because I'm a fan of summaries and because some of you need this page just to copy-paste the code instead of typing it (for every installation you make) here the list of all commands. sudo su
apt-get install mysql-server mysql-client
chown -R mike.mike /var/www
apt-get install php5 libapache2-mod-php5
apt-get install php5-mysql php5-curl php5-gd php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-intl php5-xmlrpc php5-xsl php5-cgi php5-dbg php5-dev
apt-get install phpmyadmin
/etc/init.d/apache2 restart
exit