Using EasyPhpCalendar with Joyent Facebook Accelerator
Having searched unsuccessfully for a php timeline I stumbled upon Easy PHP Calendar which is a very pretty and full of features.
Running the test script
So to see if it is worth investing in I needed to install it on my Joyent Accelerator, using the test script I found that:
Zend Optimizer: Fail – Zend Optimizer Not Detected
ionCube Loader: Pass
Following the instructions here found the simplest way :http://docs.easyphpcalendar.com/
So IonCube it was, however since Joyent only allow SFTP, the automated installer was of no use. I manually extracted the files using WinRAR, then SFTP’d to the server using WINSCP to copy the calendar directory across ( remembering to force transfer in binary mode).
Now in the instructions it says to go to http://www.YourDomainName.com/calendar/setup/index.php however this throws up an error containing the below:
…”requires the ionCube PHP Loader ioncube_loader_sun_5.2.so to be installed by the site administrator.”
Installing the IonCube loaders
Clearly we need to install the loaders, in the wiki we see this ( clarifications added by me in red:
- Download the latest version of the ionCube loaders from http://www.ioncube.com/loaders.php for Solaris (x86).
- At the time of writing this it was http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_sun_x86.tar.bz2
- Extract the tarball moving the ioncube/ioncube_loader_sun_5.2_ts.so into your ~/php/ directory.
- Do this with:
- tar xjf ioncube_loaders_sun_x86.tar.bz2
- *X means eXtract, J means its a .bz2 and F means the filename follows
- You need to copy the files to a newly created the folder in /usr/local/ with :
- sudo cp -r ioncube /usr/local/ioncube
- *sudo is like “run as administrator” you will need to enter your password. -r means its a directory
- Add an extension=ioncube_loader_sun_5.2_ts.so to your websites php.ini and the ioncube loader should load
- Open up Virtualmin in your browser, click Webmin >Others>PHP configuration>Edit Manually
- paste in extension=ioncube_loader_sun_5.2_ts.so at the bottom of the list of extensions
- Restart your apache Server from the main Virtualmin page
Permissions
Try this link again http://www.YourDomainName.com/calendar/setup/index.php and you should now see a EasyPHPCalendar page informing you permissions are incorrect, so change them:
- Open a secure putty session
- Navigate to calendar folder using cd ~/web/public/calendar
- Change permissions with chmod 646 filename
- config.inc.php
- license.php
- calendar.php
- If you find that it it still missing permissions ( check using ls -l ) try again using
- chmod g+rw filename
- chmod u+rw filename
for these files
Try the link again then follow the onscreen instructions to add password and away you go!