- Minimum System Requirements
- Wizard installation
- Apache configuration
- Nginx configuration
- Lighttpd configuration
- Command-line installation
There are two ways you can install October, either using the Wizard or Command-line installation process. Before you proceed, you should check that your server meets the minimum system requirements.
October CMS has a few system requirements:
- PHP 5.4 or higher with safe_mode restrictions disabled
- PDO PHP Extension
- cURL PHP Extension
- MCrypt PHP Extension
- ZipArchive PHP Library
- GD PHP Library
As of PHP 5.5, some OS distributions may require you to manually install the PHP JSON extension.
When using Ubuntu, this can be done via apt-get install php5-json
.
The wizard installation is a recommended way to install October. It is simpler than the command-line installation and doesn't require any special skills.
- Prepare a directory on your server that is empty. It can be a sub-directory, domain root or a sub-domain.
- Download the installer archive file.
- Unpack the installer archive to the prepared directory.
- Grant writing permissions on the installation directory and all its subdirectories and files.
- Navigate to the install.php script in your web browser.
- Follow the installation instructions.
-
The page appears empty when opening the installer: This might be caused by using older versions of PHP, check that you are running PHP version 5.4 or higher.
-
An error 500 is displayed when downloading the application files: You may need to increase or disable the timeout limit on your webserver. For example, Apache's FastCGI sometimes has the
-idle-timeout
option set to 30 seconds.
If your webserver is running Apache there are some extra system requirements:
- mod_rewrite should be installed
- AllowOverride option should be switched on
In some cases you may need to uncomment this line in the .htaccess
file:
##
## You may need to uncomment the following line for some hosting environments,
## if you have installed to a subdirectory, enter the name here also.
##
# RewriteBase /
If you have installed to a subdirectory, you should add the name of the subdirectory also:
RewriteBase /mysubdirectory/
There are small changes required to configure your site in Nginx.
nano /etc/nginx/sites-available/default
Use the following code in server section.
if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php?/$1 break;
break;
}
rewrite themes/.*/(layouts|pages|partials)/.*.htm /index.php break;
rewrite uploads/protected/.* /index.php break;
If your webserver is running Lighttpd you can use the following configuration to run OctoberCMS.
Open your site configuration file with your favorite editor.
nano /etc/lighttpd/conf-enabled/sites.conf
Paste the following code in the editor and change the host address and server.document-root to match your project.
$HTTP["host"] =~ "example.domain.com" {
server.document-root = "/var/www/example/"
url.rewrite-once = (
"^/(plugins|modules/(system|backend|cms))/(([\w-]+/)+|/|)assets/([\w-]+/)+[-\w^&'@{}[\],$=!#().%+~/ ]+\.(jpg|jpeg|gif|png|svg|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf)(\?.*|)$" => "$0",
"^/(system|themes/[\w-]+)/assets/([\w-]+/)+[-\w^&'@{}[\],$=!#().%+~/ ]+\.(jpg|jpeg|gif|png|svg|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf)(\?.*|)$" => "$0",
"^/uploads/public/[\w-]+/.*$" => "$0",
"^/(favicon\.ico|robots\.txt|sitemap\.xml)$" => "$0",
"(.*)" => "/index.php$1"
)
}
If you feel more comfortable with a command-line, there is a CLI install process on the Console interface page.