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.
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
wget ADDRESS_OF_INSTALLER tar -xvf NAME_OF_INSTALLER_PACKAGE
That’ll create a directory called "ioncube".
cp ioncube/loader-wizard.php YOUR_ROOT_WEB_DIRECTORY
then go to loader-wizard.php in the root of your server (so, https://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.
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:
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!