Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

TYPO3 Installation on Ubuntu

From TYPO3Wiki
Jump to: navigation, search

Just a few steps to a succesfull installation of TYPO3 4.5.4 on a pure, freshly installed Ubuntu 10.04:


Contents

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

With

sudo gedit /etc/php5/apache2/php.ini 

open the config file of Apache. Add

extension=mysql.so
extension=gd.so

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

http://localhost/content/typo3/install

to set all the neccessary details (esp. database user, database name, backend admin, backend password) as described elsewhere and start the backend with

http://localhost/content/typo3

to start implementing your breathtaking site ;-)

Go to: typo3.org    
Login, and you can edit.
Personal tools
Namespaces

Variants
Actions