KB Knowledge Base
How To Install And Configure TYPO3 On Ubuntu

Article By jimmy


BIP media Install typo3 VPS cloud server. The following tutorial will walk you through the install TYPO3 4.5.4 on a pure, freshly installed Ubuntu 10.04

Install TYPO3 Package

Even if synaptic does not install the most recent version of TYPO3, it's very usefull to do a
sudo apt-get install typo3
as all the necessary packages like apache, mysql, php, imagemagick, etc... are installed too. Also, some usefull other settings are made ... Anyway, what's the problem is, that when using the package nowadays, in /etc/typo3-dummy/apache.conf is an alias "cms" defined. So a directory named "cms" in /var/www is useless because the alias takes precedence. For me it was the easiest way to choose another name for the directory - say "content".

Configure Apache

sudo gedit /etc/php5/apache2/php.ini 
open the config file of Apache. Add
and change
memory_limit = 80M 
upload_max_filesize = 10M
post_max_size = 10M

Configure mySQL

During package installation you've been asked for a new mySQL admin password. Use this now instead of youradminpassword to create a database for TYPO3 - say the name for the db will be TYPO3:
sudo mysqladmin -pyouradminpassword create TYPO3
Afterwards start the mysql command line with:
mysql -u root -p
and grant all rights to a new user - say typo3 with password typo3:
mysql> grant all privileges on TYPO3.* to typo3@localhost identified by 'typo3';
mysql> flush privileges; 
mysql> quit

Restart Apache

sudo /etc/init.d/apache2 restart

Import Actual TYPO3 Version

As mentioned, an older version is installed via synaptic. So you have to get the latest one by yourself:
cd /usr/share/typo3
sudo wget http://prdownloads.sourceforge.net/typo3/typo3_src-4.5.4.tar.gz
sudo tar xzf typo3_src-4.5.4.tar.gz
sudo chown root:www-data -R typo3_src-4.5.4
sudo chmod -R 775 typo3_src-4.5.4
The last two lines alter the owner information and access rights so that apache can properly access the files.

Copy Dummy Package To www Directory

Synaptic imports the dummy package to /var/lib. We copy it to /var/www/content (there is another way with an apache redirection but to me it seems easier and clearer to copy it into the www directory):
cd /var/www
sudo mkdir content
sudo cp -R -f /var/lib/typo3-dummy/* content
And we have to correct the symlink to the newest source:
cd content
sudo rm typo3_src
sudo ln -s /usr/share/typo3/typo3_src-4.5.4 typo3_src
Also create a special file so the start of the install tool won't fail:
sudo touch typo3conf/ENABLE_INSTALL_TOOL
Change owner and rights:
cd ..
sudo chown root:www-data -R content
sudo chmod -R 775 content
Be aware NOT to use "cms" as this is an defined alias and any content will be ignored by apache. Use "content" instead!

You've Done It

Congratulations, you've installed TYPO3. Access the Install Tool via
to set all the necessary details (esp. database user, database name, backend admin, backend password) as described elsewhere and start the backend with
Now you're ready to start building your new site.

Tags: , , , ,

Spin up a VPS server in no time flat

Simple setup. Full root access. Straightforward pricing.


Leave a Reply