Howto install Typo3 Neos

Post your tutorials and howtos here.
User avatar
Arjen Balfoort
Site Admin
Posts: 9223
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Howto install Typo3 Neos

Postby Arjen Balfoort » 08 Jan 2015 12:10

TYPO3 Neos is the next-generation open source content management system made by the TYPO3 community. Neos is based on the PHP framework TYPO3 Flow.
Website: http://neos.typo3.org/

This tutorial describes the steps I took to install Typo3 Neos.
>> Run commands as root (su)

Assumptions:
  • This is a clean install
  • Current user = solydxk
  • All used passwords = solydxk (change to your liking)
  • You can replace mycompany.com with any name you wish
===========================================
  1. Install some packages

    Code: Select all

    sudo apt-get install apache2 mysql-server php5 php5-mysql php5-memcache php5-curl php-soap php5-imap memcached php5-gd php-pear php5-ldap git phpmyadmin
    New password for the MySQL "root" user: solydxk
    >> info is later used in setup below.

    Configuring phpmyadmin: select apache2; select Yes to configure with dbconfig-common; root password = solydxk; application password = solydxk
  2. Configure MySql
    Execute:

    Code: Select all

    MYCNF='/etc/mysql/my.cnf'
    if grep -Fq 'collation-server' $MYCNF; then
      sed -i '/collation-server/c collation-server = utf8_unicode_ci' $MYCNF
    else
      sed -i '/\[mysqld\]/a \collation-server = utf8_unicode_ci' $MYCNF
    fi
    if grep -Fq 'character-set-server' $MYCNF; then
      sed -i '/character-set-server/c character-set-server = utf8' $MYCNF
    else
      sed -i '/\[mysqld\]/a \character-set-server = utf8' $MYCNF
    fi
    Restart mysql:

    Code: Select all

    service mysql restart
    Note: if you accidentally skipped this step and need to change it after database creation:

    Code: Select all

    mysql -u root -psolydxk -e 'ALTER DATABASE neos CHARACTER SET utf8 COLLATE utf8_unicode_ci;'
  3. Enable php rewrite module

    Code: Select all

    a2enmod rewrite
  4. Set the php timezone
    List with time zones: http://php.net/manual/en/timezones.php

    Code: Select all

    sed -i -e 's/;date\.timezone.*/date.timezone = "America\/New_York"/' /etc/php5/apache2/php.ini
  5. Install Typo3 Neos

    Code: Select all

    curl -sS https://getcomposer.org/installer | php
    mv composer.phar /usr/local/bin/composer

    Code: Select all

    cd /var/www/html
    php /usr/local/bin/composer create-project typo3/neos-base-distribution TYPO3-Neos
  6. Code: Select all

    Set permissions

    Code: Select all

    cd /var/www/html/TYPO3-Neos/
    mkdir -p Web/_Resources
    php flow core:setfilepermissions solydxk www-data www-data
  7. Add user to www-data group

    Code: Select all

    sudo usermod -a -G www-data solydxk
  8. Configure virtual host

    Code: Select all

    nano /etc/apache2/sites-available/typo3-neos.conf
    Paste this:

    Code: Select all

    <VirtualHost *:80>
        ServerName mycompany.com
        ServerAlias www.mycompany.com
        ServerAdmin webmaster@localhost
        DocumentRoot "/var/www/html/TYPO3-Neos/Web/"
        
        # skip the following line for development
        #SetEnv FLOW_CONTEXT Production
        
        <Directory "/var/www/html/TYPO3-Neos/Web/">
    	Options Indexes FollowSymLinks MultiViews
    	AllowOverride All
    	Order allow,deny
    	allow from all
        </Directory>
        
        ErrorLog /home/solydxk/error.log
        LogLevel warn
        CustomLog /home/solydxk/access.log combined
        ServerSignature On
    </VirtualHost>
  9. Not using DNS: configure /etc/hosts

    Code: Select all

    sed -i 's/localhost/localhost mycompany.com http://www.mycompany.com/' /etc/hosts
  10. Enable site

    Code: Select all

    a2ensite typo3-neos
    Note: if you want to disable the site:

    Code: Select all

    a2dissite typo3-neos
  11. Restart apache2

    Code: Select all

    service apache2 restart
  12. Start setup
    In browser type: http://mycompany.com/setup
    Backup the password file and read the password:

    Code: Select all

    cp /var/www/html/TYPO3-Neos/Data/SetupPassword.txt ~/
    password = cat ~/SetupPassword.txt
    DB Username = root
    DB Password = solydxk
    DB Name = neos

    [Personal data]
    Username = my_user_name (change this!)
    Password = solydxk
  13. Links
    [Backend]
    http://mycompany.com/neos

    [Documentation]
    http://docs.typo3.org/neos/


SolydXK needs you!
Development | Testing | Translations

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest