Installation
Server Requirements
The O2System framework has a few system requirements to start working on your local application development environment. You will need to make sure your server meets the following requirements:
HTTP Server
Apache
Module Rewrite (mod_rewrite)
Module Header (mod_header)
NGINX
PHP FPM
Microsoft IIS
PHP Fast-CGI
Rewrite Rule
Supported PHP Versions
PHP v5.6.0+
PHP v7.0.0+ (Recommended)
For best performance, please use v7.0.0+
PHP Extensions
Fileinfo
Mcrypt
OpenSSL
Mbstring
Tokenizer
XML
APCu & Zend OPCache
Installing Framework
The O2System Framework use Composer as Dependency Management so the easiest way to installing is issuing the Composer with create-project command in your terminal:
Local Development Server
If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve O2System Framework Console command. This command will start a development server at http://localhost:8000
You may also define PHP's built-in development server to serve your application with custom hostname and custom port number:
Configuration
Public Directory
After installing O2System Framework, you should configure your web server's document / web root to be the public
directory. The index.php
in this directory serves as the front controller for all HTTP requests entering your application.
Configuration Files
All of the configuration files for the O2System Framework are stored in the app/Config
directory. Each option is documented, so feel free to look through the files and get familiar with the options available to you.
Directory Permissions
After installing O2System Framework, you may need to configure some permissions. Directories within the cache
and the storage
directories should be writable by your web server or O2System Framework will not run.
Perizinan Direktori
Setelah selesai melakukan instalasi O2System Framework anda wajib memastikan bahwa direktori cache
dan storage
dapat ditulis oleh aplikasi anda.
Mengubah permission pada direktori cache
Mengubah permission pada direktori storage
Web Server Configuration
Apache
O2System Framework includes a public/.htaccess
file that is used to provide URLs without the index.php
front controller in the path. Before serving O2System Framework with Apache, be sure to enable the mod_rewritemodule
so the .htaccess
file will be honored by the server.
NGINX
If you are using Nginx, the following directive in your site configuration will direct all requests to the index.php
front controller:
Microsoft IIS
If you are using IIS create a web.config file at your public directory and put the following code into it, now all request will direct all requests to the index.php
front controller:
Last updated