BIP KB:
How To Install And Configure TYPO3 On Ubuntu
Article By jimmy
![]() |
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 asudo apt-get install typo3as 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
Withsudo gedit /etc/php5/apache2/php.iniopen the config file of Apache. Add
extension=mysql.so extension=gd.soand 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 TYPO3Afterwards start the mysql command line with:
mysql -u root -pand 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.4The 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/* contentAnd 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_srcAlso create a special file so the start of the install tool won't fail:
sudo touch typo3conf/ENABLE_INSTALL_TOOLChange owner and rights:
cd .. sudo chown root:www-data -R content sudo chmod -R 775 contentBe 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 viahttp://localhost/content/typo3/installto set all the necessary details (esp. database user, database name, backend admin, backend password) as described elsewhere and start the backend with
http://localhost/content/typo3Now you're ready to start building your new site.
Tags: Linux, ubuntu, install, Configure, TYPO3
Spin Up A VPS Server In No Time Flat
Simple Setup
Full Root Access
Straightforward Pricing
DEPLOY A SECURE VPS SERVER TODAY!Leave a Reply
Feedbacks
![]() This work is licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License. |