CosCMS (diversen)


A simple CMS :: System dependencies

 Diversen (14-Nov-2010 11:00:26)
 0 comments

Supported Servers

You will need a web server, PHP >= 5.3, and MySQL

Working HTTP servers

It will work with Apache2 on any *nix system. It works with Apache2 on windows, but it is not well tested. It also works with the CLI build in Server for PHP >= 5.4 (this is just the servers tested). I guess it will also work on ISS, and Apache2 on AppleOS etc.

Bash LAMP install script

The following is a simple shell scripts, The first script will check and install all needed packages, which means a complete server setup including Apache2, MySQL, PHP >= 5.3, memcached, and git. And also a few PHP5 specific modules like e.g. APC (cache), GD (images) etc. For server setup on windows see this article

In order to install we need apache2, mysql-server, and php >= 5.3, git and a few more programs. You can run the following script on a recent Debian like system, e.g. Ubuntu - or just check to see what you might be missing. If you have these programs you should not need anything:

#!/bin/sh
aptitude install apache2-mpm-prefork
aptitude install mysql-server
aptitude install libapache2-mod-php5

# enable mod rewrite
a2enmod rewrite

# enable default image transformation tool
# GD
aptitude install php5-gd

# install php5 module for mysql
aptitude install php5-mysql

# default configuration uses memcache. If you don't install this
# you will have to change your config/config.ini file after install
# and comment out: session_handler = 'memcache'
aptitude install memcached

# install the php5 module for memcache
aptitude install php5-memcache

# install apc cache for storing all files in memory
aptitude install php-apc

# for doing development - all modules can (should) be installed with
# the {coscli.sh git} commands
aptitude install git

# We need some pear packages. Install the base package
# From version 1.9x the pear packages is included
# aptitude install php-pear

Note about PHP built in CLI server

On the CLI server the only thing you need is to change the files/ path owner to who runs the CLI server. Otherwise there is no issues in my 5 minutes test, quite surprised to see how well it worked, it routes all requests correct (in the same way as mod_rewrite for apache2).

If you have set your server name to e.g. coscms, then cd coscms/htdocs and run the following command:

php -S coscms:8000

Share email, Google+, Twitter, Facebook.

comments