I make use of the following on the server:
- Red Hat E5.
- Direct Admin.
All paths listed in this document depend on how you’ve build up your server. All paths listed will be the ones I used on my server.
The build up is done as follows:
Placing the Central Core: After the server had been completely installed I placed the core for the concrete sites in a directory. I used the following location for this: /usr/local/share/concrete5/ In that directory I placed a folder called concretenewest in which I placed the core of concrete188.8.131.52. In the folder concretenewest I placed the concrete folder with the core files.
To the folder concretenewest I made a symlink in the same directory which I called concrete-latest-stable. This is done to avoid having to modify a lot when an update comes along. ( ln –s concrete-latest-stable concretenewest )
Applying the core to all sites: To make use of the core on all sites you have to make all sites which require /concrete to look for that directory on the location you placed the core. This is done as follows:
- in the httpd.conf (located at: /etc/httpd/conf) of the server you need to put the following line: a. alias /concrete /usr/local/share/concrete5/concrete-latest-stable/concrete
I placed said line at the bottom of the file. It actually makes no real difference on where you place it.
- the next step is to put another line in the servers php.ini (located at: /usr/local/etc/php5/cgi/) a. include_path = ".:/usr/share/pear:/usr/local/share/concrete5/concrete-latest-stable"
the line for the php.ini I placed at the following location in the file:
;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" ; ; Windows: "\path1;\path2" ;include_path = ".;c:\php\includes"
include_path = ".:/usr/share/pear:/usr/local/share/concrete5/concrete-latest-stable"
By placing these lines and the corefiles in a single location you have now managed to make the sites use a single core. However, the single core is only used when you remove the core that comes with the install package, as long as the site itself has a concrete directory in it, it will not use the central core. To use the single core you need to remove the concrete folder from the installation package and from the existing websites.