Home > Tracking Campaigns > CPV Lab Pro

Two CPVLab Install Tips: Installing IonCube and "No access to file license.php" (3)


05-31-2013 01:44 PM #1 caurmen (Administrator)
Two CPVLab Install Tips: Installing IonCube and "No access to file license.php"

I've just been installing CPVLab for our upcoming Mahoosive Tracking Tutorial Series. I ran across a couple of problems in the install which weren't immediately obvious, and so I thought I'd document them for anyone else going through the process of installing CPVLab on a bare-metal server for the first time.

All of this assumes you're running a Linux, Apache, MySQL, PHP server.

Tip 1: Installing IonCube

If you don't have the IonCube loader installed, CPVLab won't work - simple as that. It's the only non-obvious requirement for CPVLab.

There's a lot of information on the Web on how to install IonCube, but most of it is wrong or incredibly hard to read. So here's the accurate way to get the damn thing up and running.

Step 1

Copy the address for the right version of the IonCube Loader - you'll probably want the Linux x86-64 version. Don't panic, the installer will tell you if you have the wrong one.

Now download it straight to your server - into a temp directory for the moment. Cd to /usr/local, then use

Code:
wget ADDRESS_OF_INSTALLER
tar -xvf NAME_OF_INSTALLER_PACKAGE
That'll create a directory called "ioncube".

Step 2

Use

Code:
cp ioncube/loader-wizard.php YOUR_ROOT_WEB_DIRECTORY
then go to loader-wizard.php in the root of your server (so, http://www.yourserver.com/loaderwizard.php).

It'll spit out a bunch of info - the line you want is "Required Loader BLAH".

Copy BLAH, which should be a filename ending in .so. Also, make a note of where it says your php.ini file is.

Step 3

Open your PHP.ini file in your favourite text editor - I'd use "nano" - and find the line [zend] by typing CTRL + W and typing [zend].

Below that line, add this line:

Code:
zend_extension = /usr/local/ioncube/BLAH
where BLAH is the filename you copied in step 2.

Restart Apache with "service apache2 restart" or another method, and that's it - you're done, and you now have Ion Cube installed.

Tip 2: "No access to file license.php"

If you're seeing this error immediately after the CPVLab install screen, it could mean one of two things.

You might have simply forgotten to change the permissions on /license/license.php to 666 - if so, change that now.

However, if this error still persists, there's a more obscure potential problem - and this one took some keyboard-bashing to find.

Check that the /license DIRECTORY is set to at least 755 - in other words, that the "execute" flag is set.

If it isn't, CPVLab won't be able to access license.php despite that file's permissions being set correctly - and you'll get the "No access to file license.php" error.

I hope those tips help anyone else going through the CPVLab install out! If you have any comments or suggestions, please do leave 'em below!


02-22-2017 04:29 PM #2 jims456 (Member)

I used another method which (for me) was simpler. Go to the ionCube site and download a Windows app "loader-installer.zip".
This software does the job from your Windows desktop and tests the installation for you.


02-24-2017 12:05 PM #3 caurmen (Administrator)

I believe that installer has cropped up since I wrote this tutorial - and that's great news, because anything that makes IonCube easier to install is tremendously useful.

Thanks for mentioning it!


Home > Tracking Campaigns > CPV Lab Pro