Cyclone3 Skin

Create domain service

From Cyclone3 Wiki

This is 5 minute howto to domain service installation. At first don't forget to install Cyclone3 Framework :)

Note: Running domain service is available in Cyclone3 Server (VMware) image.

Create and configure

  • Export domain example from subversion into: /Cyclone3. There ate 2 options. Choose one. Example domain is a working installation of Cyclone3 with all the addons enabled to demonstrate the variety of applications that the framework has. Default web is a skeleton web structure to be used with new, clean projects.
cd /Cyclone3

Example web (!example.tld - a working web, various applications)

svn export http://svn.cyclone3.org/trunk/frame/\!example.tld \!domain.tld

Empty web (!default.tld - an empty web. use for new projects)

svn export http://svn.cyclone3.org/trunk/frame/\!default.tld \!domain.tld
  • Configure domain
vim \!domain.tld/master.conf
vim \!domain.tld/local.conf
  • Create database source for domain
mysql -h localhost -u TOM -p
CREATE DATABASE domain_tld;
  • Install required application tables (articles, images, videos, ...) into database, and check installation
tom3-db_install --domain=domain.tld --name=a160,a210,a401,a411,a501,a510,a542,\
a710,a720,a821,a910,a920
tom3-chtables --domain=domain.tld
  • Fix file permissions
cd /Cyclone3
sudo tom3-chfiles -t
cd \!domain.tld
sudo tom3-chfiles -r
  • Add domain services into apache virtual hosts
vim /Cyclone3/_config/httpd.virtual.conf

Add these lines:

#######################################################################

<VirtualHost 127.0.0.1:80>
       ServerName www.domain.tld
       ServerAlias domain.tld
       DocumentRoot /Cyclone3/!domain.tld/!www
       CustomLog /Cyclone3/_logs/httpd/www_domain_tld.acc.log combined
       <Directory /Cyclone3/!domain.tld/!www>
               AllowOverride All
       </Directory>
</VirtualHost>

Install XULadmin backend domain.tld/rpc

  • Export XULadmin backend to manage domain.tld domain service
cd \!domain.tld
svn co http://svn.cyclone3.org/trunk/xuladmin/docroot rpc
  • Add your account into XULadmin backend ( execute Cyclone3 module with console command )
tom3-cron --domain=domain.tld ---global=1 ---category=301 ---name=user_new \
--login=username --pass=password --groups=admin,editor
  • Add domain services into apache virtual hosts
vim /Cyclone3/_config/httpd.virtual.conf

Update these lines:

#######################################################################

<VirtualHost 127.0.0.1:80>
      ServerName www.domain.tld
      ServerAlias domain.tld
      DocumentRoot /Cyclone3/!domain.tld/!www
      CustomLog /Cyclone3/_logs/httpd/www_domain_tld.acc.log combined
      <Directory /Cyclone3/!domain.tld/!www>
              AllowOverride All
      </Directory>
      # rpc
      Alias /rpc "/Cyclone3/!domain.tld/rpc/!www"
      <Directory /Cyclone3/!domain.tld/rpc/!www>
              Options FollowSymlinks ExecCGI
              AllowOverride All
      </Directory>
</VirtualHost>
  • Fix file permissions
cd /Cyclone3/\!domain.tld/
sudo tom3-chfiles -t
cd rpc
sudo tom3-chfiles -r

Start

Just type:

/etc/init.d/apache2 restart