Have a serevr with MySQL and PHP 5.3+.
Novius OS can run with:
We describe following the install process on a server LAMP (Linux/Apache/MySQL/PHP), Debian type, for which you have admin rights. Adapt to your configuration.
Install of AMP.
sudo apt-get install apache2 php5 mysql-server libapache2-mod-php5 php5-mysql
Enable mod_rewrite of Apache.
sudo a2enmod rewrite
Open a terminal and enter:
cd /var/www
sudo wget http://raw.github.com/novius-os/ci/master/chiba2/tools/install.sh && sh install.sh
Once the installation completes:
Note
We recommend you follow this procedure when installing Novius OS on shared hosting:
The following commands are provided as example when installing Novius OS on Ubuntu, you should adapt depending on your distribution.
sudo nano /etc/apache2/sites-available/novius-os
<VirtualHost *:80>
DocumentRoot /var/www/novius-os/public
ServerName novius-os
<Directory /var/www/novius-os/public>
AllowOverride All
Options FollowSymLinks
</Directory>
</VirtualHost>
The default configuration has a public folder. This is where the DoumentRoot should point.
Enable the new VirtualHost:
sudo a2ensite novius-os
Then, reload Apache to apply the new configuration.
sudo service apache2 reload
If you install Novius OS on your local computer, you must add a line in the /etc/hosts file, containing the value you entered for ServerName (novius-os in the above example).
sudo nano /etc/hosts
Add the following line:
127.0.0.1 novius-os
You should clone the repository available on GitHub:
git clone --recursive git://github.com/novius-os/novius-os.git
This command downloads the main repository, and its submodules :
cd /var/www/novius-os/
git checkout dev
git submodule update --recursive
Sample of Nginx configuration:
server {
listen 80;
server_name localhost;
root /var/www/novius-os;
index index.php index.html;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log notice;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
error_page 404 /public/htdocs/novius-os/404.php;
autoindex off;
location @rewrites {
rewrite ^/(admin(/.*)?)$ /public/htdocs/novius-os/admin.php last;
rewrite ^/.+(.html|/)$ /public/htdocs/novius-os/front.php last;
rewrite ^/([^.]*)$ /public/htdocs/novius-os/front.php last;
rewrite ^ /public/htdocs/novius-os/front.php last;
}
rewrite ^/(static|cache|media|data|htdocs)/(.*) /public/$1/$2 break;
rewrite ^/install.php /public/htdocs/install.php last;
try_files $uri @rewrites;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}