Install xcache

You will need xcache technology if you are running a PHP site, this compiles the PHP code so that it does not have to be done on the fly all of the time.

It is a bit of a fiddle to install, the main documents can be found at the xcache wiki

As per usual though I have taken this and added the bits that are missing or not that clear.

You will need the php headers to make this configuration, you will also need a compiler and make (you may have these installed already)

yum install php-devel gcc make

cd ~
cd software
wget http://xcache.lighttpd.net/pub/Releases/2.0.0/xcache-2.0.0.tar.gz
tar -zxf xcache-*.tar.gz
cd xcache*

We now need to run phpize on the files to make them ready for installing.

To find where phpize is residing

whereis phpize

Change this line to suite the location

../../../usr/local/bin/phpize

note the . at the start as we want to run the phpize command

If your copy and pasting then the — is really – – the WordPress editor messes with the formating

The path to php-config maybe different from the one below, to find the location

whereis php-config

./configure –with-php-config=/usr/local/bin/php-config –enable-xcache

make

make install

To find out where the php.ini file is use the <php? phpinifo.php=”” ?=””> file that is described in installing PHP, Apache etc..

cat xcache.ini >> /usr/local/lib/php.ini

navigate to this directory

/usr/local/lib/php/extensions/

ls

take note of the no-debug-non-zts-XXXXX directory name

If this directory does not exist then

find /. -name xcache.so

This will give the path that needs to be inserted in php.ini file. The path if php was install via a package manager will be /usr/lib/php/modules

vi /usr/local/lib/php.ini or  /etc/php.ini

The php.ini file is found using the method previous. The ini file resides in different place depending if this was a package or source install.

Find the following entry

zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-xxx/xcache.so

And change it to match the directory that you have just noted down

e.g.

zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/xcache.so

(make sure zend_extension=../../xcache.so is the first before any other zend_extension=***)

Navigate to your root web directory

echo “<?php” > phppass.php

echo “echo md5(“Enter A Password that you want for the admin site“);” >> phppass.php

echo “?>” >> phppass.php

chmod 755 phppass.php
chown apache:apache phppass.php

web browse to the site and the password will be displayed

once you have a note of the password

rm -f pass.php

vi /usr/local/lib/php.ini

find the
[xcache.admin]
xcache.admin.enable_auth = On
xcache.admin.user = “mOo”
; xcache.admin.pass = md5($your_password)
xcache.admin.pass = “”

and change to

[xcache.admin]
xcache.admin.enable_auth = On
xcache.admin.user = “A username that you want”
xcache.admin.pass = “The MD5 password that was generated”
;xcache.admin.pass = “”

cd ~

cd software
cd xcache*

In this example apache was installed from source code, typically if it had bee installed from a package manager then replace /usr/local/apache2 with /var/www/html/

cp -R admin /usr/local/apache2/

cd /usr/local/apache2/

mv admin/ XXXXX/ where XXXXX is a directory name of your choice

chown -R apache:apache XXXXXX

chmod -R 755 XXXXX

cd htdocs/root site folder

ln -s /usr/local/apache2/XXXXX secure_folder_name

The last thing to do is restart the http server

./usr/local/apache2/bin/apachectl.sh restart

or

service httpd restart

You should then be able to navigate to folder to see the statistics


Drupal

Download the Drupal code and install it to /var/www/drupal

All the prerequisite are the same as for OpenPublish.  Please see these before you start, this includes creating a database.

Just a note, once you have the system up and running, you will probably remove the login box, the URL to allow you to logon and administer the site is

The admin page is http://x.x.x.x/drupal/?q=user

Navigate to /var/www/drupal/sites/default

mkdir files

chmod o+rw files

cp default.settings.php settings.php

chmod o+rw default.settings.php

chmod o+rw  settings.php

http://x.x.x.x/drupal/setup

This will start the installation.

Once done you will have an empty web site.  One useful tool to have is a Wysywig creator for you content, I am lead to believe that

Wysiwyg with TinyMCE is a good bet

Download from the respective sites.

Copy or move the

cp -R wysiwyg /var/www/drupal/modules/wysiwyg

Copy or move the tinymce directory into the all/libraries

cp -R tinymce /var/www/drupal/sites/all/libraries/tinymce/

Go into the Drual configuration and enable the wysiwy module

Administer –> Site building –> Modules

Go to the bottom and enable the module.

To check if everything is OK

Administer –> Site Configuration

You should see the Wysiwig menu at the bottom, try logging out of the web site if this does not show.

Choose the Wysiwyg menu as you need to now enable the editors in the site, this area also allows you to download other editors.  The choice is entirely yours.

You should be up and running, I now just have to figure out how to use the bloody thing 🙂


Drupal – OpenPublish

OpenPublish is build on Drupal and is my first foray into the world of Drupal.

I have not started with the core Drupal product as I need to quickly evaluate a CMS for an intranet project.  This appears ideal for the this so here goes.

OpenPublish requires GD installed and configured

apt-get install php5-gd

Restart Apache

/etc/init.d/apache2 restart

You also need a MySql database configured before you can start the install, Install PHPMyAdmin and follow the instruction on getting it to work.

When it is on your system open the web site http://x.x.x.x//phpMyAdmin

logon on with your normal credetials and then choose database

Create new database

The download of OpenPublish at the time of writing was here.

Download and unzip and un-tar

copy the result into the /var/www forlder.

cp -r openpublish /var/www/openpublish

Some of the directories need write privileges for setup these are as follows:

cd /var/www/openpublish/sites/default

chmod -R o+rw files

chmod o+rw default.settings.php

chmod o+rw settings.php

Some of these will need reseting back to a more securesetting when finished

Open a web browser and navigate to http://x.x.x.x/openpublish/install.php

Keep pressing next, it will check various things, as long as you follow the steps above you should not get any errors

Once installed you need to remove the write permissions to the settings files

chmod o-rw default.settings.php

chmod o-rw settings.php



PHP Tit Bits

To find out all about your php installation

create a file in the /var/www directory call phpinfo.php

cd /var/www

vi phpinfo.php

Add the following line

<?php phpinfo(); ?>

Save the file and then open in a web browser

http://x.x.x.x/phpinfo.php


Content Management Solutions (CMS)

My first foray into the world of Content Management Solutions (CMS)

As you will see as the months go on I hope to look at Drupal, Joomla, EZ publish and Liferay

Joomla and Drupal are the two big names out there and pretty much can do anything that you want, EZ publish and Liferay seem to be aimed at the enterprise and even though configurable have the core build in functionality that you need to build a modern web site.

We will look through the functionality of each and any notes with regards to the funny bits of installation.

All of the installations are on ubutnu server 10.04 with LAMP, and openssh server installed.

Just to ensure that everything was upto date apt-get upgrade was run after the installation.


Open Source Software & Userful Software Links

Open Source Software Links

OpenSourceCMS

Digital Asset Management

Razuna

Fedora

with drupal module

OpenEdit

ResourceSpace

CMS

EZ Publish

Squiz

Drupal

Joomla

Liferay

Email Marketing

Interspire

Openemm

Emarketing site topemailmarketingsoftware

Ackura – Commercial tool for marketing to the social arena

Marketing software lists

http://www.topemailmarketingsoftware.com/node?from=10

Business Intelligence

Jaspersoft

Pentaho

SpagoBI

Squidoo Links to opne source BI Software

InfoBright Database and tools for BI

Webmin

Debian: wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=kent

Penn Testing Tools

Security Tools http://sectools.org/

Security Distro http://securitydistro.com/security-distros/

Network Security Tool Kit http://networksecuritytoolkit.org/nst/index.html

NAC

Packet Fence http://sourceforge.net/projects/packetfence/files/

Webinar Tools

Open Meeting

VMukti

italc

Project Management

Project.net

Project-Open

Top Ten Open source project management reviews and links

Classrooms

Moodle

CRM

openCRX

SugarCRM

vTiger

Lab Testing LIMS

Listings

Shopping Carts

Open Cart

Product Lifecycle Management

Aras

Media streaming and Wiki

Flumotion

MediaWiki