Skip to content
Legacy PHP content management system
JavaScript CSS PHP HTML ColdFusion ASP Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
application
assets/images/default
bin
library/CMS
public
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
composer.json
database.sql

README.md

Legacy PHP Content Management System

This CMS was used to power several websites that were developed whilst I was technical lead at a small digital agency. I'm publishing it mainly for posterity and to serve as an example of my past work. I don't recommend it be used in production for future projects.

Installation

It's designed around a standard Linux/Apache/MySQL/PHP stack.

Apache

Apache will need the rewrite module enabled.

Apache virtual host configuration:

<VirtualHost *:80>
    ServerName legacycms.local
    DocumentRoot /path/to/legacycmsroot/public
 
    SetEnv APPLICATION_ENV "development"
 
    <Directory /path/to/legacycmsroot/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

PHP

PHP will need the MySQL PDO and GD extensions enabled.

Run composer install to install dependencies.

Rename application/config/config.example.ini to application/config/config.ini and change values accordingly.

Permissions

Create cache, assets, search/site-index directories and give write permissions to server.

Create Admin and Search Indexes

Run

php bin/install.php -e <admin-email> -p <admin-password>

This will create a super admin user with the alias admin with the email address and password as specified. The initial Lucene Search index will be created.

Licence

MIT

You can’t perform that action at this time.